抽离部分java代码中的字符串,equals判断常量放在前面

This commit is contained in:
kehaoyuan
2017-10-14 15:52:15 +08:00
parent 4290846698
commit 52433ba347
36 changed files with 75 additions and 60 deletions

View File

@ -228,9 +228,9 @@ public class DownloadManager implements DownloadStatusListener {
}
}
downloadEntity.setInstalled(installed);
if (method.equals("更新")) {
if ("更新".equals(method)) {
downloadEntity.setUpdate(true);
} else if (method.equals("插件化")) {
} else if ("插件化".equals(method)) {
downloadEntity.setPluggable(true);
}
downloadEntity.setPlugin(gameEntity.getTag() != null && gameEntity.getTag().size() != 0);