!1084 优化 GifDecoder 类中的一处 equals 判断

Merge pull request !1084 from summertime-wu/v5-dev
This commit is contained in:
Looly 2023-09-20 03:41:50 +00:00 committed by Gitee
commit 2bd8b03c06
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

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