Fix checkstyle reported by odlparent-3.0.0
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / sharding / LookupTask.java
index ca33e31a87f3d5e882709ffa8b860e0557a7b9c6..232983e4e8c36f2a3397a693b0158e61c8f08222 100644 (file)
@@ -23,7 +23,7 @@ import javax.annotation.concurrent.NotThreadSafe;
 abstract class LookupTask implements Runnable {
     private final int maxRetries;
     private final ActorRef replyTo;
-    private int retries = 0;
+    private int retried = 0;
 
     LookupTask(final ActorRef replyTo, final int maxRetries) {
         this.replyTo = replyTo;
@@ -33,9 +33,9 @@ abstract class LookupTask implements Runnable {
     abstract void reschedule(int retries);
 
     void tryReschedule(@Nullable final Throwable throwable) {
-        if (retries <= maxRetries) {
-            retries++;
-            reschedule(retries);
+        if (retried <= maxRetries) {
+            retried++;
+            reschedule(retried);
         } else {
             fail(throwable);
         }