Skip to content

Commit 62cef29

Browse files
committed
javacodegen scope check: chop off the correct end of the fragment
1 parent 74e909b commit 62cef29

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
@@ -94,7 +94,7 @@ public String expandUrl(
9494
final ArrayList<String> sp = new ArrayList(Arrays.asList(splitbase.fragment.split("/")));
9595
int n = scopedRef;
9696
while (n > 0 && sp.size() > 0) {
97-
sp.remove(0);
97+
sp.remove(sp.size()-1);
9898
n -= 1;
9999
}
100100
sp.add(url);

0 commit comments

Comments
 (0)