milleruntime commented on code in PR #2638:
URL: https://github.com/apache/accumulo/pull/2638#discussion_r852848258


##########
core/src/test/java/org/apache/accumulo/core/conf/ConfigurationTypeHelperTest.java:
##########
@@ -25,17 +25,17 @@
 import static org.junit.jupiter.api.Assertions.assertEquals;
 import static org.junit.jupiter.api.Assertions.assertThrows;
 
-import java.util.Arrays;
 import java.util.function.Function;
+import java.util.stream.Stream;
 
 import org.junit.jupiter.api.Test;
 
 public class ConfigurationTypeHelperTest {
 
   @Test
   public void testGetMemoryInBytes() {
-    
Arrays.<Function<String,Long>>asList(ConfigurationTypeHelper::getFixedMemoryAsBytes,
-        ConfigurationTypeHelper::getMemoryAsBytes).stream().forEach(memFunc -> 
{
+    
Stream.<Function<String,Long>>of(ConfigurationTypeHelper::getFixedMemoryAsBytes,
+        ConfigurationTypeHelper::getMemoryAsBytes).forEach(memFunc -> {

Review Comment:
   This one is neat. I haven't used it yet.



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