Skip to content

Commit c044eb1

Browse files
committed
added copying to JSONPointer constructor
1 parent 5ae6a66 commit c044eb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

JSONPointer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public JSONPointer(String pointer) {
143143
}
144144

145145
public JSONPointer(List<String> refTokens) {
146-
this.refTokens = refTokens;
146+
this.refTokens = new ArrayList<String>(refTokens);
147147
}
148148

149149
private String unescape(String token) {

0 commit comments

Comments
 (0)