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:29:33 UTC

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

jzgithub1 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_r264393439
 
 

 ##########
 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:
   Thanks.  Didn't know that would work.  Do you want me to keep working on this?

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