Invert logic
@@ -79,7 +79,7 @@ public abstract class IdString {
}
private static void validateTextString(String id) {
- if (Text.isValidTextString(id)) {
+ if ( ! Text.isValidTextString(id)) {
throw new IllegalArgumentException("Unparseable id '" + id + "': Contains illegal code point 0x" +
Integer.toHexString(Text.validateTextString(id).getAsInt()).toUpperCase());
}
