added copying to JSONPointer constructor

This commit is contained in:
Bence Erős 2016-05-05 15:59:43 +02:00
parent 5ae6a66e38
commit c044eb14dd

View File

@ -143,7 +143,7 @@ public class JSONPointer {
}
public JSONPointer(List<String> refTokens) {
this.refTokens = refTokens;
this.refTokens = new ArrayList<String>(refTokens);
}
private String unescape(String token) {