diff --git a/src/main/java/org/apache/commons/lang3/ThreadUtils.java b/src/main/java/org/apache/commons/lang3/ThreadUtils.java index b3f276c76..1174ff7ad 100644 --- a/src/main/java/org/apache/commons/lang3/ThreadUtils.java +++ b/src/main/java/org/apache/commons/lang3/ThreadUtils.java @@ -128,7 +128,7 @@ public static Collection findThreadsByName(final String threadName, fina final Collection threadGroups = findThreadGroups(new NamePredicate(threadGroupName)); if(threadGroups.isEmpty()) { - return Collections.EMPTY_LIST; + return Collections.emptyList(); } final Collection result = new ArrayList(); @@ -292,12 +292,12 @@ private AlwaysTruePredicate() { } @Override - public boolean test(@SuppressWarnings("unused") final ThreadGroup threadGroup) { + public boolean test(final ThreadGroup threadGroup) { return true; } @Override - public boolean test(@SuppressWarnings("unused") final Thread thread) { + public boolean test(final Thread thread) { return true; } }