Merge branch 'remove_ThreadUtils_compiler_warnings'

Remove compiler warnings from ThreadUtils. Thanks to Pascal Schuhmacher.
This commit is contained in:
Benedikt Ritter 2015-05-07 20:02:28 +02:00
commit 48d142dc3b
1 changed files with 3 additions and 3 deletions

View File

@ -128,7 +128,7 @@ public static Collection<Thread> findThreadsByName(final String threadName, fina
final Collection<ThreadGroup> threadGroups = findThreadGroups(new NamePredicate(threadGroupName)); final Collection<ThreadGroup> threadGroups = findThreadGroups(new NamePredicate(threadGroupName));
if(threadGroups.isEmpty()) { if(threadGroups.isEmpty()) {
return Collections.EMPTY_LIST; return Collections.emptyList();
} }
final Collection<Thread> result = new ArrayList<Thread>(); final Collection<Thread> result = new ArrayList<Thread>();
@ -292,12 +292,12 @@ private AlwaysTruePredicate() {
} }
@Override @Override
public boolean test(@SuppressWarnings("unused") final ThreadGroup threadGroup) { public boolean test(final ThreadGroup threadGroup) {
return true; return true;
} }
@Override @Override
public boolean test(@SuppressWarnings("unused") final Thread thread) { public boolean test(final Thread thread) {
return true; return true;
} }
} }