资源导入优化

yun-zuoyi
汪云昊 5 years ago
parent 2fb79b8354
commit b674087ffc

@ -146,11 +146,12 @@ public class CommonEnumUtil {
} }
return null; return null;
} }
public static int descriptionOfValue(String desc) { public synchronized static int descriptionOfValue(String desc) {
int tmp = IMPP.value; int tmp = IMPP.value;
for (int i = 0; i < values().length; i++) { for (int i = 0; i < values().length; i++) {
if (values()[i].name().equals(desc)) { if (values()[i].description.equals(desc)) {
tmp = values()[i].value; tmp = values()[i].value;
break;
} }
} }
return tmp; return tmp;

Loading…
Cancel
Save