|
@@ -19,7 +19,7 @@ public class TransUtil {
|
|
private static final String CERTAIN = "必现";
|
|
private static final String CERTAIN = "必现";
|
|
|
|
|
|
|
|
|
|
- public int severityTransFromString(String str) {
|
|
|
|
|
|
+ public static int severityTransFromString(String str) {
|
|
if (UNDETERMINED.equals(str)) {
|
|
if (UNDETERMINED.equals(str)) {
|
|
return 1;
|
|
return 1;
|
|
}
|
|
}
|
|
@@ -38,7 +38,7 @@ public class TransUtil {
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
- public int recurrentTransFromString(String str) {
|
|
|
|
|
|
+ public static int recurrentTransFromString(String str) {
|
|
if (OTHER.equals(str)) {
|
|
if (OTHER.equals(str)) {
|
|
return 1;
|
|
return 1;
|
|
}
|
|
}
|
|
@@ -57,7 +57,7 @@ public class TransUtil {
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
- public String severityTransFromInt(int num) {
|
|
|
|
|
|
+ public static String severityTransFromInt(int num) {
|
|
switch (num) {
|
|
switch (num) {
|
|
case 1:
|
|
case 1:
|
|
return UNDETERMINED;
|
|
return UNDETERMINED;
|
|
@@ -74,7 +74,7 @@ public class TransUtil {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- public String recurrentTransFromInt(int num) {
|
|
|
|
|
|
+ public static String recurrentTransFromInt(int num) {
|
|
switch (num) {
|
|
switch (num) {
|
|
case 1:
|
|
case 1:
|
|
return OTHER;
|
|
return OTHER;
|