From 6e4ed7cd4f43d1ec3b3c644333e7fd0ec638b84f Mon Sep 17 00:00:00 2001 From: Arturo Bernal Date: Fri, 14 May 2021 15:37:09 +0200 Subject: [PATCH] Redundant Collection operation. Use Collections.emptyIterator() (#738) --- src/main/java/org/apache/commons/lang3/ClassUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/lang3/ClassUtils.java b/src/main/java/org/apache/commons/lang3/ClassUtils.java index 6a864efdf..de71e91a8 100644 --- a/src/main/java/org/apache/commons/lang3/ClassUtils.java +++ b/src/main/java/org/apache/commons/lang3/ClassUtils.java @@ -1521,7 +1521,7 @@ public class ClassUtils { final Iterator> wrapped = classes.iterator(); return new Iterator>() { - Iterator> interfaces = Collections.>emptySet().iterator(); + Iterator> interfaces = Collections.emptyIterator(); @Override public boolean hasNext() {