抽离部分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

@ -123,7 +123,7 @@ public class MessageShareUtils {
if (pinfo != null) {
for (int i = 0; i < pinfo.size(); i++) {
String pn = pinfo.get(i).packageName;
if (pn.equals("com.tencent.mobileqq")) {
if ("com.tencent.mobileqq".equals(pn)) {
return true;
}
}