viviel opened a new pull request #85:
URL: https://github.com/apache/incubator-tubemq/pull/85


   1. Fixed a bug
   Syntax error
   ```
   map.keySet().iterator(); (1.8 syntax) -> new 
ArrayList<>(map.keySet()).iterator();
   ```
   
   2. Minor changes
   ```
   if (curToken != null && curToken == usedToken) {
       return true;
   }
   
   change to
   
   return curToken != null && curToken == usedToken;
   ```
   
   ```
   if (isReged == null) {
       return true;
   }
   
   change to
   
   return isReged == null;
   ```
   
   ```
   List<String> partKeys = new ArrayList<>();
   partKeys.addAll(partitionUsedMap.keySet());
   
   change to
   
   List<String> partKeys = new ArrayList<>(partitionUsedMap.keySet());
   ```


----------------------------------------------------------------
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]


Reply via email to