diff options
Diffstat (limited to 'nullaway/src/main/java/com/uber/nullaway/handlers/Handler.java')
-rw-r--r-- | nullaway/src/main/java/com/uber/nullaway/handlers/Handler.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/nullaway/src/main/java/com/uber/nullaway/handlers/Handler.java b/nullaway/src/main/java/com/uber/nullaway/handlers/Handler.java index 835c01f..b2018ee 100644 --- a/nullaway/src/main/java/com/uber/nullaway/handlers/Handler.java +++ b/nullaway/src/main/java/com/uber/nullaway/handlers/Handler.java @@ -174,6 +174,16 @@ public interface Handler { Nullness returnNullness); /** + * Called to potentially override the nullability of a field which is not annotated as @Nullable. + * If the field is decided to be @Nullable by this handler, the field should be treated + * as @Nullable anyway. + * + * @param field The symbol for the field in question. + * @return true if the field should be treated as @Nullable, false otherwise. + */ + boolean onOverrideFieldNullability(Symbol field); + + /** * Called after the analysis determines the nullability of a method's arguments, allowing handlers * to override. * |