Skip to content

Commit

Permalink
fix checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveTeng0 committed May 22, 2024
1 parent eae5ae0 commit 19abc56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
*/
package org.apache.ratis.shell.cli;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.net.ssl.TrustManager;
import javax.net.ssl.TrustManagerFactory;
import javax.net.ssl.X509TrustManager;
Expand All @@ -33,7 +30,7 @@
import java.security.cert.X509Certificate;
import java.util.Arrays;

public class SecurityUtils {
public final class SecurityUtils {
private SecurityUtils() {
// prevent instantiation
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ public int run(CommandLine cl) throws IOException {
peerId = null;
}
RaftClientReply reply = raftClient.getSnapshotManagementApi(peerId).create(timeout);
processReply(reply, this::println, String.format("Failed to take snapshot of peerId %s", peerId != null ? peerId.toString() : null));
processReply(reply, this::println, String.format("Failed to take snapshot of peerId %s",
peerId != null ? peerId.toString() : null));
printf(String.format("Successful take snapshot on peerId %s, the latest snapshot index is %d",
peerId, reply.getLogIndex()));
}
Expand Down

0 comments on commit 19abc56

Please sign in to comment.