Fokko commented on code in PR #3379:
URL: https://github.com/apache/parquet-java/pull/3379#discussion_r2687588856
##########
parquet-column/src/main/java/org/apache/parquet/schema/LogicalTypeAnnotation.java:
##########
@@ -822,8 +819,7 @@ PrimitiveStringifier valueStringifier(PrimitiveType
primitiveType) {
}
public static class IntLogicalTypeAnnotation extends LogicalTypeAnnotation {
- private static final Set<Integer> VALID_BIT_WIDTH =
- Collections.unmodifiableSet(new HashSet<>(asList(8, 16, 32, 64)));
+ private static final Set<Integer> VALID_BIT_WIDTH = Set.of(8, 16, 32, 64);
Review Comment:
`Set.of` is also immutable 👍
--
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]