vvysotskyi commented on a change in pull request #1397: DRILL-6633: Replace 
usage of Guava classes by JDK ones
URL: https://github.com/apache/drill/pull/1397#discussion_r210885761
 
 

 ##########
 File path: 
exec/java-exec/src/main/java/org/apache/drill/exec/planner/fragment/SoftAffinityFragmentParallelizer.java
 ##########
 @@ -137,17 +131,17 @@ public void parallelizeFragment(final Wrapper 
fragmentWrapper, final Paralleliza
     if (endpoints.size() < width) {
       // Get a list of endpoints that are not part of the affinity endpoint 
list
       List<DrillbitEndpoint> endpointsWithNoAffinity;
-      final Set<DrillbitEndpoint> endpointsWithAffinity = 
endpointAffinityMap.keySet();
+      Set<DrillbitEndpoint> endpointsWithAffinity = 
endpointAffinityMap.keySet();
 
       if (endpointAffinityMap.size() > 0) {
-        endpointsWithNoAffinity = Lists.newArrayList();
+        endpointsWithNoAffinity = new ArrayList<>();
         for (DrillbitEndpoint ep : activeEndpoints) {
 
 Review comment:
   Thanks, replaced it with stream and list creation with collect

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


With regards,
Apache Git Services

Reply via email to