1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-06-13 23:24:50 +02:00

Use true/false instead of 1/0 in boolean type FormFields

This commit is contained in:
Florian Schmaus 2018-02-23 11:50:54 +01:00
parent 793d3c47ad
commit 20014d56b4

View file

@ -235,7 +235,7 @@ public class Form {
if (field.getType() != FormField.Type.bool) { if (field.getType() != FormField.Type.bool) {
throw new IllegalArgumentException("This field is not of type boolean."); throw new IllegalArgumentException("This field is not of type boolean.");
} }
setAnswer(field, (value ? "1" : "0")); setAnswer(field, Boolean.toString(value));
} }
/** /**