We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1eb460d commit cbe6adfCopy full SHA for cbe6adf
src/main/java/com/github/fge/jsonschema/core/util/URIUtils.java
@@ -157,14 +157,10 @@ public URI apply(@Nullable final URI input)
157
@Override
158
public void check(final String argument)
159
{
160
- final String errmsg = BUNDLE.printf("loadingCfg.illegalScheme",
161
- argument);
162
- if (argument.isEmpty())
163
- throw new IllegalArgumentException(errmsg);
164
- if (!ALPHA.matches(argument.charAt(0)))
165
166
- if (!SCHEME_LEGAL.matchesAllOf(argument))
167
+ if (argument.isEmpty() || !ALPHA.matches(argument.charAt(0))
+ || !SCHEME_LEGAL.matchesAllOf(argument))
+ throw new IllegalArgumentException(
+ BUNDLE.printf("loadingCfg.illegalScheme", argument));
168
}
169
};
170
0 commit comments