ratis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From szets...@apache.org
Subject [incubator-ratis] branch master updated: RATIS-416. Fix checkstyle warnings in ClientImplUtils. Contributed by Dinesh Chitlangia
Date Fri, 25 Jan 2019 22:33:16 GMT
This is an automated email from the ASF dual-hosted git repository.

szetszwo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ratis.git


The following commit(s) were added to refs/heads/master by this push:
     new e5692f3  RATIS-416. Fix checkstyle warnings in ClientImplUtils.  Contributed by Dinesh
Chitlangia
e5692f3 is described below

commit e5692f3d7d59cdaed6ff4967c4595119996ea48c
Author: Tsz Wo Nicholas Sze <szetszwo@apache.org>
AuthorDate: Fri Jan 25 14:32:40 2019 -0800

    RATIS-416. Fix checkstyle warnings in ClientImplUtils.  Contributed by Dinesh Chitlangia
---
 .../main/java/org/apache/ratis/client/impl/ClientImplUtils.java   | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/ratis-client/src/main/java/org/apache/ratis/client/impl/ClientImplUtils.java
b/ratis-client/src/main/java/org/apache/ratis/client/impl/ClientImplUtils.java
index f2564a9..989c765 100644
--- a/ratis-client/src/main/java/org/apache/ratis/client/impl/ClientImplUtils.java
+++ b/ratis-client/src/main/java/org/apache/ratis/client/impl/ClientImplUtils.java
@@ -21,14 +21,16 @@ import org.apache.ratis.client.RaftClient;
 import org.apache.ratis.client.RaftClientRpc;
 import org.apache.ratis.conf.RaftProperties;
 import org.apache.ratis.protocol.RaftGroup;
-import org.apache.ratis.retry.RetryPolicies;
 import org.apache.ratis.retry.RetryPolicy;
-import org.apache.ratis.util.TimeDuration;
 import org.apache.ratis.protocol.ClientId;
 import org.apache.ratis.protocol.RaftPeerId;
 
 /** Client utilities for internal use. */
-public class ClientImplUtils {
+public final class ClientImplUtils {
+  private ClientImplUtils() {
+
+  }
+
   public static RaftClient newRaftClient(ClientId clientId, RaftGroup group,
       RaftPeerId leaderId, RaftClientRpc clientRpc, RaftProperties properties,
       RetryPolicy retryPolicy) {


Mime
View raw message