Github user afs commented on a diff in the pull request:

    https://github.com/apache/jena/pull/114#discussion_r175911878
  
    --- Diff: jena-arq/src/main/java/org/apache/jena/query/Query.java ---
    @@ -515,6 +519,14 @@ public void addHavingCondition(Expr expr)
             havingExprs.add(expr) ;
         }
     
    +    // SELECT JSON
    +
    +    public Map<String, Object> jsonMapping = new LinkedHashMap<>();
    --- End diff --
    
    Preference - don't expose data structures which can be modified. Either 
return a copy (if it is not called repeatedly) or with a 
`Collections.unmodifiableMap` wrapper.



---

Reply via email to