nastra commented on code in PR #16881:
URL: https://github.com/apache/iceberg/pull/16881#discussion_r3450274476


##########
core/src/main/java/org/apache/iceberg/BaseFile.java:
##########
@@ -316,79 +316,102 @@ public void put(int i, Object value) {
   @Override
   protected <T> void internalSet(int pos, T value) {
     switch (pos) {
-      case 0:
+      case 0 -> {
         this.content = value != null ? FileContent.fromId((Integer) value) : 
FileContent.DATA;
         return;

Review Comment:
   effectively this can be a single line now: `case 0 -> ...`



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to