tal66 commented on issue #4613:
URL: https://github.com/apache/iceberg/issues/4613#issuecomment-1106883935

   is this what you mean?:
   ```
   <module name="RegexpSinglelineJava">
           <property name="format" value="Objects\.requireNonNull.*\(.*\)"/>
           <property name="message" value="Prefer using 
Preconditions.checkNotNull(Object, String)."/>
   </module>
   ```
   this includes: Objects.requireNonNull() + .requireNonNullElse();
   
   second option: 
   `value="Objects\.(require|)[Nn]onNull.*\(.*\)"` - the above + 
Objects.nonNull().
   
   could add it in line 340. 
   


-- 
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