srdo commented on a change in pull request #3055: STORM-3440: client: fix all 
checkstyle warnings
URL: https://github.com/apache/storm/pull/3055#discussion_r299127261
 
 

 ##########
 File path: storm-client/src/jvm/org/apache/storm/metric/SystemBolt.java
 ##########
 @@ -35,18 +35,19 @@
 // TaskID is always -1, therefore you can only send-unanchored tuples to 
co-located SystemBolt.
 // This bolt was conceived to export worker stats via metrics api.
 public class SystemBolt implements IBolt {
-    private static boolean _prepareWasCalled = false;
+    private static boolean prepareWasCalled = false;
 
     @SuppressWarnings({ "unchecked" })
     @Override
     public void prepare(final Map<String, Object> topoConf, TopologyContext 
context, OutputCollector collector) {
-        if (_prepareWasCalled && 
!"local".equals(topoConf.get(Config.STORM_CLUSTER_MODE))) {
+        if (prepareWasCalled && 
!"local".equals(topoConf.get(Config.STORM_CLUSTER_MODE))) {
             throw new RuntimeException("A single worker should have 1 
SystemBolt instance.");
         }
-        _prepareWasCalled = true;
+        prepareWasCalled = true;
 
         int bucketSize = 
ObjectReader.getInt(topoConf.get(Config.TOPOLOGY_BUILTIN_METRICS_BUCKET_SIZE_SECS));
 
+        @SuppressWarnings("checkstyle:AbbreviationAsWordInName")
         final RuntimeMXBean jvmRT = ManagementFactory.getRuntimeMXBean();
 
 Review comment:
   This is not part of the API, so we can rename it

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to