You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ch...@apache.org on 2019/02/22 10:38:52 UTC
[flink] branch master updated: [hotfix][runtime] Consistent enum
implementation
This is an automated email from the ASF dual-hosted git repository.
chesnay pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/master by this push:
new 971c563 [hotfix][runtime] Consistent enum implementation
971c563 is described below
commit 971c5633b63724c6627c3d2b344172889a72aa75
Author: ZiLi Chen <wa...@gmail.com>
AuthorDate: Fri Feb 22 18:38:45 2019 +0800
[hotfix][runtime] Consistent enum implementation
---
.../flink/runtime/dispatcher/VoidHistoryServerArchivist.java | 10 +++++-----
.../factories/UnregisteredJobManagerJobMetricGroupFactory.java | 10 +++++-----
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/dispatcher/VoidHistoryServerArchivist.java b/flink-runtime/src/main/java/org/apache/flink/runtime/dispatcher/VoidHistoryServerArchivist.java
index 2d34d83..7c9c6a1 100644
--- a/flink-runtime/src/main/java/org/apache/flink/runtime/dispatcher/VoidHistoryServerArchivist.java
+++ b/flink-runtime/src/main/java/org/apache/flink/runtime/dispatcher/VoidHistoryServerArchivist.java
@@ -27,10 +27,10 @@ import java.util.concurrent.CompletableFuture;
* No-op implementation of the {@link HistoryServerArchivist}.
*/
public enum VoidHistoryServerArchivist implements HistoryServerArchivist {
- INSTANCE {
- @Override
- public CompletableFuture<Acknowledge> archiveExecutionGraph(AccessExecutionGraph executionGraph) {
- return CompletableFuture.completedFuture(Acknowledge.get());
- }
+ INSTANCE;
+
+ @Override
+ public CompletableFuture<Acknowledge> archiveExecutionGraph(AccessExecutionGraph executionGraph) {
+ return CompletableFuture.completedFuture(Acknowledge.get());
}
}
diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/jobmaster/factories/UnregisteredJobManagerJobMetricGroupFactory.java b/flink-runtime/src/main/java/org/apache/flink/runtime/jobmaster/factories/UnregisteredJobManagerJobMetricGroupFactory.java
index 20c7e88..00345fa 100644
--- a/flink-runtime/src/main/java/org/apache/flink/runtime/jobmaster/factories/UnregisteredJobManagerJobMetricGroupFactory.java
+++ b/flink-runtime/src/main/java/org/apache/flink/runtime/jobmaster/factories/UnregisteredJobManagerJobMetricGroupFactory.java
@@ -28,10 +28,10 @@ import javax.annotation.Nonnull;
* {@link JobManagerJobMetricGroupFactory} which returns an unregistered {@link JobManagerJobMetricGroup}.
*/
public enum UnregisteredJobManagerJobMetricGroupFactory implements JobManagerJobMetricGroupFactory {
- INSTANCE {
- @Override
- public JobManagerJobMetricGroup create(@Nonnull JobGraph jobGraph) {
- return UnregisteredMetricGroups.createUnregisteredJobManagerJobMetricGroup();
- }
+ INSTANCE;
+
+ @Override
+ public JobManagerJobMetricGroup create(@Nonnull JobGraph jobGraph) {
+ return UnregisteredMetricGroups.createUnregisteredJobManagerJobMetricGroup();
}
}