You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2019/03/11 19:24:39 UTC

[GitHub] [accumulo] ctubbsii commented on a change in pull request #1024: Fixes #1023 - Replace loops that iterate over collections with forEach

ctubbsii commented on a change in pull request #1024: Fixes #1023 - Replace loops that iterate over collections with forEach
URL: https://github.com/apache/accumulo/pull/1024#discussion_r264391579
 
 

 ##########
 File path: server/tserver/src/main/java/org/apache/accumulo/tserver/TabletServer.java
 ##########
 @@ -490,7 +490,7 @@ private static long jitter(long ms) {
         return watcher.run(Constants.BULK_ARBITRATOR_TYPE, tid, () -> {
           List<TKeyExtent> failures = new ArrayList<>();
 
-          for (Entry<TKeyExtent,Map<String,MapFileInfo>> entry : files.entrySet()) {
+          files.entrySet().forEach((entry) -> {
 
 Review comment:
   `files.forEach((k,v) -> {})` would be cleaner than `files.entrySet().forEach(entry -> { entry.getKey()... entry.getValue()...})`.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services