From 7d5a61ed64315bd6570c5cb55c1f53853a3fffa5 Mon Sep 17 00:00:00 2001 From: Pascal Schumacher Date: Tue, 5 May 2015 23:31:20 +0200 Subject: [PATCH] remove compiler warnings from ThreadUtils --- src/main/java/org/apache/commons/lang3/ThreadUtils.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/ThreadUtils.java b/src/main/java/org/apache/commons/lang3/ThreadUtils.java index a0177ae6e..9239f07b3 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 class ThreadUtils { 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 @@ public class ThreadUtils { } @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; } }