This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-pool.git


The following commit(s) were added to refs/heads/master by this push:
     new 9af8e00  Use Stream.of().
9af8e00 is described below

commit 9af8e0032f88b955ad1f92a68a171b03ebd223ec
Author: Gary Gregory <gardgreg...@gmail.com>
AuthorDate: Thu Jul 1 14:57:17 2021 -0400

    Use Stream.of().
---
 .../java/org/apache/commons/pool2/impl/SecurityManagerCallStack.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/src/main/java/org/apache/commons/pool2/impl/SecurityManagerCallStack.java 
b/src/main/java/org/apache/commons/pool2/impl/SecurityManagerCallStack.java
index 0e65634..a43b076 100644
--- a/src/main/java/org/apache/commons/pool2/impl/SecurityManagerCallStack.java
+++ b/src/main/java/org/apache/commons/pool2/impl/SecurityManagerCallStack.java
@@ -49,7 +49,7 @@ public class SecurityManagerCallStack implements CallStack {
          * @return class stack
          */
         private List<WeakReference<Class<?>>> getCallStack() {
-            final Stream<WeakReference<Class<?>>> map = 
Arrays.stream(getClassContext()).map(WeakReference::new);
+            final Stream<WeakReference<Class<?>>> map = 
Stream.of(getClassContext()).map(WeakReference::new);
             return map.collect(Collectors.toList());
         }
     }

Reply via email to