Kenneth Knowles created BEAM-4526:
-------------------------------------
Summary: FlinkRunner failing errorprone due to mutable enum
Key: BEAM-4526
URL: https://issues.apache.org/jira/browse/BEAM-4526
Project: Beam
Issue Type: Bug
Components: runner-flink
Reporter: Kenneth Knowles
Assignee: Kenneth Knowles
{code}
runners/flink/src/main/java/org/apache/beam/runners/flink/translation/functions/BatchFlinkExecutableStageContext.java:77:
warning: [ImmutableEnumChecker] enums should be immutable: 'BatchFactory' has
field 'cachedContexts' of type
'com.google.common.cache.LoadingCache<org.apache.beam.runners.fnexecution.provisioning.JobInfo,org.apache.beam.runners.flink.translation.functions.BatchFlinkExecutableStageContext>',
the declaration of type
'com.google.common.cache.LoadingCache<org.apache.beam.runners.fnexecution.provisioning.JobInfo,org.apache.beam.runners.flink.translation.functions.BatchFlinkExecutableStageContext>'
is not annotated with @com.google.errorprone.annotations.Immutable or
@javax.annotation.concurrent.Immutable
private final LoadingCache<JobInfo, BatchFlinkExecutableStageContext>
cachedContexts;
^
(see http://errorprone.info/bugpattern/ImmutableEnumChecker)
error: warnings found and -Werror specified
{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)