Skip to content

Commit 857f077

Browse files
committed
bug fixed
1 parent 16d5dca commit 857f077

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/com/alibaba/fastjson/parser/deserializer/StackTraceElementDeserializer.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,39 +47,39 @@ public <T> T deserialze(DefaultJSONParser parser, Type type, Object fieldName) {
4747
}
4848

4949
lexer.nextTokenWithColon(JSONToken.LITERAL_STRING);
50-
if (key == "className") {
50+
if ("className".equals(key)) {
5151
if (lexer.token() == JSONToken.NULL) {
5252
declaringClass = null;
5353
} else if (lexer.token() == JSONToken.LITERAL_STRING) {
5454
declaringClass = lexer.stringVal();
5555
} else {
5656
throw new JSONException("syntax error");
5757
}
58-
} else if (key == "methodName") {
58+
} else if ("methodName".equals(key)) {
5959
if (lexer.token() == JSONToken.NULL) {
6060
methodName = null;
6161
} else if (lexer.token() == JSONToken.LITERAL_STRING) {
6262
methodName = lexer.stringVal();
6363
} else {
6464
throw new JSONException("syntax error");
6565
}
66-
} else if (key == "fileName") {
66+
} else if ("fileName".equals(key)) {
6767
if (lexer.token() == JSONToken.NULL) {
6868
fileName = null;
6969
} else if (lexer.token() == JSONToken.LITERAL_STRING) {
7070
fileName = lexer.stringVal();
7171
} else {
7272
throw new JSONException("syntax error");
7373
}
74-
} else if (key == "lineNumber") {
74+
} else if ("lineNumber".equals(key)) {
7575
if (lexer.token() == JSONToken.NULL) {
7676
lineNumber = 0;
7777
} else if (lexer.token() == JSONToken.LITERAL_INT) {
7878
lineNumber = lexer.intValue();
7979
} else {
8080
throw new JSONException("syntax error");
8181
}
82-
} else if (key == "nativeMethod") {
82+
} else if ("nativeMethod".equals(key)) {
8383
if (lexer.token() == JSONToken.NULL) {
8484
lexer.nextToken(JSONToken.COMMA);
8585
} else if (lexer.token() == JSONToken.TRUE) {

0 commit comments

Comments
 (0)