mbien commented on code in PR #3558:
URL: https://github.com/apache/netbeans/pull/3558#discussion_r841315326


##########
java/maven.indexer/src/org/netbeans/modules/maven/indexer/NexusRepositoryIndexerImpl.java:
##########
@@ -958,47 +899,39 @@ private void iterate(List<RepositoryInfo> repos, final 
RepoAction action, final
                         LOGGER.log(Level.INFO, "could not process " + 
repo.getId(), x);
                     }
                     return null;
-                }
-            });
+                });
+            }
         }
     }
-    }
 
     private ResultImplementation<String> filterGroupIds(final String prefix, 
final List<RepositoryInfo> repos) {
-        Redo<String> redo = new Redo<String>() {
-            @Override
-            public void run(ResultImpl<String> result) {
-                filterGroupIds(prefix, result, result.getSkipped(), false);
-            }
-        };
-        ResultImpl<String> result = new ResultImpl<String>(redo);
+        ResultImpl<String> result = new ResultImpl<>(
+            (ResultImpl<String> res) -> filterGroupIds(prefix, res, 
res.getSkipped(), false)
+        );
         return filterGroupIds(prefix, result, repos, true);
     }
     
     private ResultImplementation<String> filterGroupIds(final String prefix, 
final ResultImpl<String> result, 
                                                             final 
List<RepositoryInfo> repos, final boolean skipUnIndexed) {
-        final Set<String> groups = new TreeSet<String>(result.getResults());
-        final List<RepositoryInfo> slowCheck = new ArrayList<RepositoryInfo>();
+        final Set<String> groups = new TreeSet<>(result.getResults());
+//        final List<RepositoryInfo> slowCheck = new ArrayList<>();

Review Comment:
   removed 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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Reply via email to