device-mgt-core/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main
Timo Briddigkeit ed07774552 Fixed literal string comparison.
This line is in the form of
String str = ...
str.equals("someOtherString");
//or
str.compareTo("someOtherString");

A NullPointerException may occur if the String variable str is null. If instead the code was restructured to
String str = ...
"someOtherString".equals(str);
//or
"someOtherString".compareTo(str);
that is, call equals() or compareTo() on the string literal, passing the variable as an argument, this exception could never happen as both equals() and compareTo() check for null.
2016-07-15 16:25:31 +02:00
..
java/org/wso2/carbon/device/mgt/jaxrs Fixed literal string comparison. 2016-07-15 16:25:31 +02:00
webapp Added missing end-point to the permissions.xml 2016-07-12 10:24:05 +05:30