Update NDCSocketConnectionAutoRun.java

This commit is contained in:
张江玮
2023-09-26 17:47:55 +08:00
parent 68c075a4ce
commit 4c370837b7

View File

@@ -1025,10 +1025,10 @@ public class NDCSocketConnectionAutoRun extends AbstractAutoRunnable {
public static List<String> getNDCFaultInfo(int errorCode) {
if (errorCode == 0) {
return Arrays.asList("正常");
return Collections.singletonList("正常");
} else {
if (errorCode > Math.pow(2, ERROR.length - 1)) {
return Arrays.asList("NDC上报故障代码有误");
return Collections.singletonList("NDC上报故障代码有误");
} else {
int index = 0;
ArrayList<String> faultInfo = new ArrayList<>();