Use constant.equals()

There are some equals() that are not constant.equals(variable), but variable.equals(constant)
This commit is contained in:
AlexCai2019
2025-06-05 01:55:44 +08:00
parent 72a1a48173
commit e800cc349f
4 changed files with 13 additions and 17 deletions

View File

@@ -111,7 +111,7 @@ public class JSONML {
}
} else if (c == '[') {
token = x.nextToken();
if (token.equals("CDATA") && x.next() == '[') {
if ("CDATA".equals(token) && x.next() == '[') {
if (ja != null) {
ja.put(x.nextCDATA());
}