Skip to content

Commit

Permalink
Model Apache Flink's RichFunction.open as an @Initializer method (#862)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lazaroclapp authored Nov 17, 2023
1 parent 4b6e672 commit 01aa34e
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 01aa34e

Please sign in to comment.