Redundant Collection operation. Use Collections.emptyIterator() (#738)

This commit is contained in:
Arturo Bernal 2021-05-14 15:37:09 +02:00 committed by GitHub
parent 950ab130d6
commit 6e4ed7cd4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1521,7 +1521,7 @@ public class ClassUtils {
final Iterator<Class<?>> wrapped = classes.iterator();
return new Iterator<Class<?>>() {
Iterator<Class<?>> interfaces = Collections.<Class<?>>emptySet().iterator();
Iterator<Class<?>> interfaces = Collections.emptyIterator();
@Override
public boolean hasNext() {