vrozov commented on a change in pull request #1264:  DRILL-6422: Update guava 
to 23.0 and shade it
URL: https://github.com/apache/drill/pull/1264#discussion_r200170878
 
 

 ##########
 File path: 
common/src/main/java/org/apache/drill/common/collections/MapWithOrdinal.java
 ##########
 @@ -129,22 +128,16 @@ public void clear() {
 
     @Override
     public Collection<V> values() {
-      return Lists.newArrayList(Iterables.transform(secondary.entries(), new 
Function<IntObjectMap.Entry<V>, V>() {
-        @Override
-        public V apply(IntObjectMap.Entry<V> entry) {
-          return Preconditions.checkNotNull(entry).value();
-        }
-      }));
+      return Lists.newArrayList(Iterables.transform(secondary.entries(),
 
 Review comment:
   Why not `secondary.values()`?

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to