3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-10-06 22:00:08 +02:00

Throw error instead of returning null on a boolean return

Dieser Commit ist enthalten in:
MattBDev 2021-05-11 20:16:32 -04:00
Ursprung bdd3bc26af
Commit 4534154894

Datei anzeigen

@ -73,7 +73,7 @@ public class PrimitiveBindings extends Bindings {
public Boolean getBoolean(String argument) { public Boolean getBoolean(String argument) {
switch (argument.toLowerCase(Locale.ROOT)) { switch (argument.toLowerCase(Locale.ROOT)) {
case "": case "":
return null; throw new InputParseException("Invalid empty string instead of boolean");
case "true": case "true":
case "yes": case "yes":
case "on": case "on":