dugenkui03 opened a new pull request #2158:
URL: https://github.com/apache/hudi/pull/2158


   Two minor optimization for `Option`:
   
   #### 1. Keep consistency with `map` method in `Optional` 
   
   Ensure `mapper` is not null, even `val` is null and `mapper` will not be 
invoked.
   
   #### 2. Rewrite `toString()` method
   
   Code below will print same thing:
   ```java
           System.out.println(Option.of("null").toString());
           System.out.println(Option.empty().toString());
   
   // Option{val=null}
   // Option{val=null}
   ```
   


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to