Fix deprecation warnings and checkstyle in benchmarks
[controller.git] / benchmark / ntfbenchmark / src / main / java / ntfbenchmark / impl / AbstractNtfbenchProducer.java
index 5dc6618e9c131933a25351a0a794dc6c2e3938a8..e658580c5ff2517171c89b840bd8ba73075b852f 100644 (file)
@@ -21,7 +21,12 @@ public abstract class AbstractNtfbenchProducer implements Runnable {
     protected final int iterations;
     protected final Ntfbench ntf;
 
+    protected int ntfOk = 0;
+    protected int ntfError = 0;
+
     /**
+     * Return number of successful notifications.
+     *
      * @return the ntfOk
      */
     public int getNtfOk() {
@@ -29,15 +34,14 @@ public abstract class AbstractNtfbenchProducer implements Runnable {
     }
 
     /**
+     * Return number of unsuccessful notifications.
+     *
      * @return the ntfError
      */
     public int getNtfError() {
         return ntfError;
     }
 
-    protected int ntfOk = 0;
-    protected int ntfError = 0;
-
     public AbstractNtfbenchProducer(final NotificationPublishService publishService, final int iterations,
             final int payloadSize) {
         this.publishService = publishService;