jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1742800 - /jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/AbstractOverTimeGraphConsumer.java
Date Sun, 08 May 2016 11:56:59 GMT
Author: sebb
Date: Sun May  8 11:56:59 2016
New Revision: 1742800

URL: http://svn.apache.org/viewvc?rev=1742800&view=rev
Log:
Don't allow override of methods called by a constructor.

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/AbstractOverTimeGraphConsumer.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/AbstractOverTimeGraphConsumer.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/AbstractOverTimeGraphConsumer.java?rev=1742800&r1=1742799&r2=1742800&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/AbstractOverTimeGraphConsumer.java
(original)
+++ jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/AbstractOverTimeGraphConsumer.java
Sun May  8 11:56:59 2016
@@ -52,6 +52,11 @@ public abstract class AbstractOverTimeGr
      */
     // TODO must be final because called by ctor; however currently overridden in a subclass
     public void setGranularity(long granularity) {
+        _setGranularity(granularity);
+    }
+
+    // Called from ctor
+    private final void _setGranularity(long granularity) {
         this.granularity = granularity;
         ((TimeStampKeysSelector) getKeysSelector()).setGranularity(granularity);
     }
@@ -60,7 +65,7 @@ public abstract class AbstractOverTimeGr
      * Instantiates a new abstract over time graph consumer.
      */
     protected AbstractOverTimeGraphConsumer() {
-        setGranularity(1L);
+        _setGranularity(1L);
     }
 
     /**



Mime
View raw message