xutaoustc opened a new pull request, #24444:
URL: https://github.com/apache/doris/pull/24444

   [fix](*): do not use == to compare encapsulate type, use equals instead.
   
   for example, the following sample will lead to hard-to-find bugs
   
   public class Wrapper {
   public static void main(String[] args){
   Integer i1 = 100;
   Integer i2 = 100;
   Integer i3 = 1000;
   Integer i4 = 1000;
   System.out.println(i1 == i2);
   System.out.println(i1 != i2);
   System.out.println(i3 == i4);
   System.out.println(i3 != i4);
   }
   }
   
   true
   false
   false
   true
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to