Feat: add static analytic of code
This commit is contained in:
@@ -74,8 +74,7 @@ public class SettingsLoader {
|
||||
this.propertyName = prop;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
@Override public String toString() {
|
||||
return propertyName;
|
||||
}
|
||||
|
||||
@@ -476,8 +475,7 @@ public class SettingsLoader {
|
||||
if (config.getComputeMethod() == null && computeMethod == null) {
|
||||
config.setComputeMethod(ComputeType.CPU);
|
||||
}
|
||||
else if ((config.getComputeMethod() == null && computeMethod != null) || (computeMethod != null && config.getComputeMethod() != ComputeType
|
||||
.valueOf(computeMethod.getValue()))) {
|
||||
else if ((config.getComputeMethod() == null && computeMethod != null) || (computeMethod != null && config.getComputeMethod() != ComputeType.valueOf(computeMethod.getValue()))) {
|
||||
if (config.getComputeMethod() == null) {
|
||||
config.setComputeMethod(ComputeType.valueOf(computeMethod.getValue()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user