Skip to content

Commit eac538d

Browse files
committed
Code Quality Improvement - Objects should be compared with "equals()"
Update
1 parent 86898db commit eac538d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/socket/client/Socket.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ private static Object[] toArray(JSONArray array) {
454454
} catch (JSONException e) {
455455
v = null;
456456
}
457-
data[i] = v == JSONObject.NULL ? null : v;
457+
data[i] = JSONObject.NULL.equals(v) ? null : v;
458458
}
459459
return data;
460460
}

0 commit comments

Comments
 (0)