You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ga...@apache.org on 2019/02/18 13:28:57 UTC

[flink] 04/09: [hotfix][tests] Fix checkstyle violations in TestingRpcService

This is an automated email from the ASF dual-hosted git repository.

gary pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git

commit ccf509eb9eae46f38f20b5d11b056f0529d3ee66
Author: Gary Yao <ga...@apache.org>
AuthorDate: Sun Feb 17 09:46:22 2019 +0100

    [hotfix][tests] Fix checkstyle violations in TestingRpcService
---
 .../org/apache/flink/runtime/rpc/TestingRpcService.java    | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/flink-runtime/src/test/java/org/apache/flink/runtime/rpc/TestingRpcService.java b/flink-runtime/src/test/java/org/apache/flink/runtime/rpc/TestingRpcService.java
index 85c5707..f42f09c 100644
--- a/flink-runtime/src/test/java/org/apache/flink/runtime/rpc/TestingRpcService.java
+++ b/flink-runtime/src/test/java/org/apache/flink/runtime/rpc/TestingRpcService.java
@@ -34,36 +34,36 @@ import static org.apache.flink.util.Preconditions.checkNotNull;
  * An RPC Service implementation for testing. This RPC service acts as a replacement for
  * the regular RPC service for cases where tests need to return prepared mock gateways instead of
  * proper RPC gateways.
- * 
+ *
  * <p>The TestingRpcService can be used for example in the following fashion,
  * using <i>Mockito</i> for mocks and verification:
- * 
+ *
  * <pre>{@code
  * TestingRpcService rpc = new TestingRpcService();
  *
  * ResourceManagerGateway testGateway = mock(ResourceManagerGateway.class);
  * rpc.registerGateway("myAddress", testGateway);
- * 
+ *
  * MyComponentToTest component = new MyComponentToTest();
  * component.triggerSomethingThatCallsTheGateway();
- * 
+ *
  * verify(testGateway, timeout(1000)).theTestMethod(any(UUID.class), anyString());
  * }</pre>
  */
 public class TestingRpcService extends AkkaRpcService {
 
-	/** Map of pre-registered connections */
+	/** Map of pre-registered connections. */
 	private final ConcurrentHashMap<String, RpcGateway> registeredConnections;
 
 	/**
-	 * Creates a new {@code TestingRpcService}. 
+	 * Creates a new {@code TestingRpcService}.
 	 */
 	public TestingRpcService() {
 		this(new Configuration());
 	}
 
 	/**
-	 * Creates a new {@code TestingRpcService}, using the given configuration. 
+	 * Creates a new {@code TestingRpcService}, using the given configuration.
 	 */
 	public TestingRpcService(Configuration configuration) {
 		super(AkkaUtils.createLocalActorSystem(configuration),