Skip to content

Commit 79fc273

Browse files
committed
java LoadingOptions: fix split logic error
1 parent 09c3d2c commit 79fc273

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

schema_salad/java/main_utils/LoadingOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public String expandUrl(
6565
}
6666

6767
if (!this.vocab.isEmpty() && url.contains(":")) {
68-
String prefix = url.split(":", 1)[0];
68+
String prefix = url.split(":")[0];
6969
if (this.vocab.containsKey(prefix)) {
7070
url = this.vocab.get(prefix) + url.substring(prefix.length() + 1);
7171
}

0 commit comments

Comments
 (0)