srowen commented on issue #27918: [SPARK-31071][SQL][Follow-up] Support nonnull 
annotation by field directly
URL: https://github.com/apache/spark/pull/27918#issuecomment-599245782
 
 
   @kyrill007 what about this situation:
   ```
   @Nonnull
   private String foo;
   ...
   public String getFoo() {
     if (... some condition ...) {
       return null;
     }
     return foo;
   }
   ```
   The bean property `foo` can't be considered non-null here, but this change 
would cause it to be, right?

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to