Merge remote-tracking branch 'remotes/origin/dev' into test

yun-zuoyi
汪云昊 5 years ago
commit 6c96460739

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

Loading…
Cancel
Save