Skip to content

Commit

Permalink
Remove calls to obj.equals(null) since these will always return false
Browse files Browse the repository at this point in the history
  • Loading branch information
mdentremont authored and U-dEntremont-PC\Matt committed Oct 6, 2011
1 parent 51f4c2b commit 2b0ec5f
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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) {
Expand Down

0 comments on commit 2b0ec5f

Please sign in to comment.