mirror of
https://github.com/stleary/JSON-java.git
synced 2026-05-21 00:00:47 -04:00
Use constant.equals()
There are some equals() that are not constant.equals(variable), but variable.equals(constant)
This commit is contained in:
@@ -127,7 +127,7 @@ public class JSONPointer {
|
||||
if (pointer == null) {
|
||||
throw new NullPointerException("pointer cannot be null");
|
||||
}
|
||||
if (pointer.isEmpty() || pointer.equals("#")) {
|
||||
if (pointer.isEmpty() || "#".equals(pointer)) {
|
||||
this.refTokens = Collections.emptyList();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user