dlmarion commented on code in PR #2636:
URL: https://github.com/apache/accumulo/pull/2636#discussion_r852207883


##########
core/src/main/java/org/apache/accumulo/core/metadata/schema/AmpleImpl.java:
##########
@@ -44,7 +44,7 @@ public TabletMetadata readTablet(KeyExtent extent, 
ReadConsistency readConsisten
     builder.readConsistency(readConsistency);
 
     try (TabletsMetadata tablets = builder.build()) {
-      return Iterables.getOnlyElement(tablets);
+      return tablets.stream().collect(onlyElement());

Review Comment:
   Nevermind, the stream is not being returned, it's being collected and the 
collection is returned.



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

Reply via email to