HarisAdzemovic commented on issue #15: Strings and Boxed types should be compared using "equals()" URL: https://github.com/apache/sling-org-apache-sling-feature/pull/15#issuecomment-551771185 They differ in how they handle null: ``` Integer a = new Integer(10); Integer b = null; a == b; --> False a.equals(b); --> False Integer.compare(a, b); --> NPE a.compareTo(b); --> NPE ``` .equals() mirrors the previous behaviour but you know better than me what's actually preferable.
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
