...
| Code Block |
|---|
public class TestWrapper2 {
 public static void main(String[] args) {
 Â
  Integer i1 = 100;
    Integer i2 = 100;
    Integer i3 = 1000;
    Integer i4 = 1000;
    System.out.println(i1.equals(i2));
    System.out.println(i3.equals(i4));   Â
 }
}Â
|
Now, the results are all truesresults will be true, as we expected.
Noncompliant Code Example
...