Permalink
Browse files

Remove calls to obj.equals(null) since these will always return false

  • Loading branch information...
1 parent 51f4c2b commit 2b0ec5fcab1848c3eaa8036fd4f9e27887215bdf @mdentremont mdentremont committed with U-dEntremont-PC\Matt Oct 6, 2011
@@ -1374,7 +1374,7 @@ String toString(int indentFactor, int indent) throws JSONException {
* @throws JSONException If the value is or contains an invalid number.
*/
public static String valueToString(Object value) throws JSONException {
- if (value == null || value.equals(null)) {
+ if (value == null) {
return "null"; //$NON-NLS-1$
}
if (value instanceof JSONString) {

0 comments on commit 2b0ec5f

Please sign in to comment.