equals()规范吧,常量已经写在前面,避免null异常

This commit is contained in:
hanshuai 2020-09-27 11:48:51 +08:00
parent 467865e02c
commit 73cd33450a

View File

@ -606,10 +606,11 @@ public class GifDecoder {
for (int i = 0; i < 11; i++) {
app.append((char) block[i]);
}
if (app.toString().equals("NETSCAPE2.0")) {
if ("NETSCAPE2.0".equals(app.toString())) {
readNetscapeExt();
} else
} else {
skip(); // don't care
}
break;
default: // uninteresting extension