SteNicholas opened a new pull request, #3169:
URL: https://github.com/apache/celeborn/pull/3169

   ### What changes were proposed in this pull request?
   
   Use `-XepDisableWarningsInGeneratedCode` to disable warnings for 
`openapi-client` module.
   
   ### Why are the changes needed?
   
   There are some warnings in compilation of `openapi-client` module as follows:
   
   ```
   $ mvn clean install -pl openapi/openapi-client -DskipTests 
-Dcheckstyle.skip=true -Drat.skip=true -Dspotless.check.skip=true|grep 
"[WARNING].*java.*"
   [WARNING] 
/Users/nicholasjiang/Github/celeborn/openapi/openapi-client/src/main/java/org/apache/celeborn/rest/v1/worker/invoker/ApiException.java:[100,18]
 [OverrideThrowableToString] To return a custom message with a Throwable class, 
one should override getMessage() instead of toString().
   [WARNING] 
/Users/nicholasjiang/Github/celeborn/openapi/openapi-client/src/main/java/org/apache/celeborn/rest/v1/model/DynamicConfig.java:[55,19]
 [ImmutableEnumChecker] enums should be immutable: 'LevelEnum' has non-final 
field 'value'
   [WARNING] 
/Users/nicholasjiang/Github/celeborn/openapi/openapi-client/src/main/java/org/apache/celeborn/rest/v1/master/invoker/ApiException.java:[100,18]
 [OverrideThrowableToString] To return a custom message with a Throwable class, 
one should override getMessage() instead of toString().
   [WARNING] 
/Users/nicholasjiang/Github/celeborn/openapi/openapi-client/src/main/java/org/apache/celeborn/rest/v1/model/WorkerExitRequest.java:[51,19]
 [ImmutableEnumChecker] enums should be immutable: 'TypeEnum' has non-final 
field 'value'
   [WARNING] 
/Users/nicholasjiang/Github/celeborn/openapi/openapi-client/src/main/java/org/apache/celeborn/rest/v1/model/PartitionLocationData.java:[58,19]
 [ImmutableEnumChecker] enums should be immutable: 'ModeEnum' has non-final 
field 'value'
   [WARNING] 
/Users/nicholasjiang/Github/celeborn/openapi/openapi-client/src/main/java/org/apache/celeborn/rest/v1/model/PartitionLocationData.java:[107,19]
 [ImmutableEnumChecker] enums should be immutable: 'StorageEnum' has non-final 
field 'value'
   [WARNING] 
/Users/nicholasjiang/Github/celeborn/openapi/openapi-client/src/main/java/org/apache/celeborn/rest/v1/model/SendWorkerEventRequest.java:[60,19]
 [ImmutableEnumChecker] enums should be immutable: 'EventTypeEnum' has 
non-final field 'value'
   ```
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   Local test:
   
   ```
   $ mvn clean install -pl openapi/openapi-client -DskipTests 
-Dcheckstyle.skip=true -Drat.skip=true -Dspotless.check.skip=true|grep 
"[WARNING].*java.*"
   ```


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

Reply via email to