diff options
author | Lázaro Clapp <lazaro@uber.com> | 2023-11-16 19:55:57 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-16 16:55:57 -0800 |
commit | 01aa34ebd4259c4688fc29145914679eb0708651 (patch) | |
tree | 67edec8677a7ca3fc31da96ee22686cb72467efd | |
parent | 4b6e6728e0d0f82307884e333b6df07d501364bf (diff) | |
download | nullaway-01aa34ebd4259c4688fc29145914679eb0708651.tar.gz |
Model Apache Flink's RichFunction.open as an @Initializer method (#862)
From the
[docs](https://nightlies.apache.org/flink/flink-docs-master/api/java/org/apache/flink/api/common/functions/RichFunction.html#open-org.apache.flink.api.common.functions.OpenContext-)
here: `open(...)` should always be called before other methods,
such as `filter(...)`, so it fits our definition of an `@Initializer`
method.
-rw-r--r-- | nullaway/src/main/java/com/uber/nullaway/ErrorProneCLIFlagsConfig.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/nullaway/src/main/java/com/uber/nullaway/ErrorProneCLIFlagsConfig.java b/nullaway/src/main/java/com/uber/nullaway/ErrorProneCLIFlagsConfig.java index 9a189fe..0240d77 100644 --- a/nullaway/src/main/java/com/uber/nullaway/ErrorProneCLIFlagsConfig.java +++ b/nullaway/src/main/java/com/uber/nullaway/ErrorProneCLIFlagsConfig.java @@ -130,7 +130,11 @@ final class ErrorProneCLIFlagsConfig extends AbstractConfig { "androidx.fragment.app.Fragment.onActivityCreated", "androidx.fragment.app.Fragment.onViewCreated", // Multidex app - "android.support.multidex.Application.onCreate"); + "android.support.multidex.Application.onCreate", + // Apache Flink + // See docs: + // https://nightlies.apache.org/flink/flink-docs-master/api/java/org/apache/flink/api/common/functions/RichFunction.html#open-org.apache.flink.api.common.functions.OpenContext- + "org.apache.flink.api.common.functions.RichFunction.open"); static final ImmutableSet<String> DEFAULT_INITIALIZER_ANNOT = ImmutableSet.of( |