Fix problems found by EmptyBlockTag bug pattern
See https://errorprone.info/bugpattern/EmptyBlockTag for details.
Change-Id: I7566d04c2cf960a7c45393c824b76961c76c3b50
diff --git a/src/main/java/com/googlesource/gerrit/plugins/replication/Nfs.java b/src/main/java/com/googlesource/gerrit/plugins/replication/Nfs.java
index a347f3a..09a632d 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/replication/Nfs.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/replication/Nfs.java
@@ -22,7 +22,6 @@
/**
* Determine if a throwable or a cause in its causal chain is a Stale NFS File Handle
*
- * @param throwable
* @return a boolean true if the throwable or a cause in its causal chain is a Stale NFS File
* Handle
*/
@@ -39,7 +38,6 @@
/**
* Determine if an IOException is a Stale NFS File Handle
*
- * @param ioe
* @return a boolean true if the IOException is a Stale NFS FIle Handle
*/
public static boolean isStaleFileHandle(IOException ioe) {
diff --git a/src/main/java/com/googlesource/gerrit/plugins/replication/PushResultProcessing.java b/src/main/java/com/googlesource/gerrit/plugins/replication/PushResultProcessing.java
index 5450dd5..4f33937 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/replication/PushResultProcessing.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/replication/PushResultProcessing.java
@@ -30,15 +30,7 @@
public interface PushResultProcessing {
public static final PushResultProcessing NO_OP = new PushResultProcessing() {};
- /**
- * Invoked when a ref has been replicated to one node.
- *
- * @param project
- * @param ref
- * @param uri
- * @param status
- * @param refStatus
- */
+ /** Invoked when a ref has been replicated to one node. */
default void onRefReplicatedToOneNode(
String project,
String ref,
@@ -46,20 +38,10 @@
RefPushResult status,
RemoteRefUpdate.Status refStatus) {}
- /**
- * Invoked when a ref has been replicated to all nodes.
- *
- * @param project
- * @param ref
- * @param nodesCount
- */
+ /** Invoked when a ref has been replicated to all nodes */
default void onRefReplicatedToAllNodes(String project, String ref, int nodesCount) {}
- /**
- * Invoked when all refs have been replicated to all nodes.
- *
- * @param totalPushTasksCount
- */
+ /** Invoked when all refs have been replicated to all nodes */
default void onAllRefsReplicatedToAllNodes(int totalPushTasksCount) {}
/**