findepi commented on code in PR #11304:
URL: https://github.com/apache/iceberg/pull/11304#discussion_r1870885597


##########
api/src/main/java/org/apache/iceberg/util/CharSequenceMap.java:
##########
@@ -132,12 +133,12 @@ public Set<CharSequence> keySet() {
       keySet.add(wrapper.get());
     }
 
-    return keySet;
+    return Collections.unmodifiableSet(keySet);

Review Comment:
   > Generally writing a good Map implementation from scratch is super hard.
   
   ... and sometimes not worth the effort
   After all, one can have map-like class without implementing Map interface  
-- https://github.com/apache/iceberg/pull/11704



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to