mirror of
https://github.com/processing/processing4.git
synced 2026-02-11 17:40:48 +01:00
Use valueOf factory method instead of constructor
This commit is contained in:
@@ -1492,7 +1492,7 @@ public class JSONObject {
|
||||
return d;
|
||||
}
|
||||
} else {
|
||||
Long myLong = new Long(string);
|
||||
Long myLong = Long.valueOf(string);
|
||||
if (myLong.longValue() == myLong.intValue()) {
|
||||
return Integer.valueOf(myLong.intValue());
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user