You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2021/12/01 18:32:23 UTC
[GitHub] [iceberg] jackye1995 commented on a change in pull request #3638: Ensure MetricsConfig is immutable
jackye1995 commented on a change in pull request #3638:
URL: https://github.com/apache/iceberg/pull/3638#discussion_r760467624
##########
File path: core/src/main/java/org/apache/iceberg/MetricsConfig.java
##########
@@ -20,12 +20,15 @@
package org.apache.iceberg;
import java.io.Serializable;
+import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
+import javax.annotation.concurrent.Immutable;
Review comment:
We have used `javax.annotation.Nullable` in `mr` and `spark` modules.
Based on https://stackoverflow.com/questions/27101978/what-is-the-advantage-of-annotating-an-immutable-java-class-with-immutable, looks like the main benefit is documentation and findbug.
So I think this should be fine.
--
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-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org