a few drop downs have "3" option which only confuses users #5942
preparation
This commit is contained in:
parent
79af8c6411
commit
c0a576f8a3
|
@ -22,8 +22,6 @@ public class PinoutLogic {
|
||||||
|
|
||||||
private static final String NONE = "NONE";
|
private static final String NONE = "NONE";
|
||||||
private static final String QUOTED_NONE = quote(NONE);
|
private static final String QUOTED_NONE = quote(NONE);
|
||||||
private static final String INVALID = "INVALID";
|
|
||||||
public static final String QUOTED_INVALID = quote(INVALID);
|
|
||||||
|
|
||||||
private final ArrayList<PinState> globalList = new ArrayList<>();
|
private final ArrayList<PinState> globalList = new ArrayList<>();
|
||||||
private final Map</*id*/String, /*tsName*/String> tsNameById = new TreeMap<>();
|
private final Map</*id*/String, /*tsName*/String> tsNameById = new TreeMap<>();
|
||||||
|
@ -114,7 +112,7 @@ public class PinoutLogic {
|
||||||
if (key.equals(nothingName)) {
|
if (key.equals(nothingName)) {
|
||||||
arrayFormat.append(QUOTED_NONE);
|
arrayFormat.append(QUOTED_NONE);
|
||||||
} else if (value == null) {
|
} else if (value == null) {
|
||||||
arrayFormat.append(QUOTED_INVALID);
|
arrayFormat.append(InvalidConstant.QUOTED_INVALID);
|
||||||
} else {
|
} else {
|
||||||
String quotedValue = quote(value);
|
String quotedValue = quote(value);
|
||||||
arrayFormat.append(quotedValue);
|
arrayFormat.append(quotedValue);
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
package com.rusefi;
|
||||||
|
|
||||||
|
import static com.rusefi.output.JavaSensorsConsumer.quote;
|
||||||
|
|
||||||
|
public class InvalidConstant {
|
||||||
|
private static final String INVALID = "INVALID";
|
||||||
|
public static final String QUOTED_INVALID = quote(INVALID);
|
||||||
|
}
|
Loading…
Reference in New Issue