adutra commented on code in PR #1663:
URL: https://github.com/apache/polaris/pull/1663#discussion_r2104830387


##########
codestyle/errorprone-rules.properties:
##########
@@ -227,6 +227,12 @@ UseCorrectAssertInTests=ERROR
 ConstantPatternCompile=ERROR
 # Variables initialized with Pattern#compile calls on constants can be 
constants
 
+ObjectsHashCodePrimitive=ERROR
+# Objects.hashCode(Object o) should not be passed a primitive value
+
+OptionalMapToOptional=ERROR
+# Mapping to another Optional will yield a nested Optional. Did you mean 
flatMap?

Review Comment:
   I agree with @dimas-b; and in the unlikely case where there is a compelling 
reason to have `Optional<Optional<...>>`, we can also add a `@SuppressWarnings` 
annotation.



-- 
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...@polaris.apache.org

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

Reply via email to