Merge branch 'remove_ThreadUtils_compiler_warnings'
Remove compiler warnings from ThreadUtils. Thanks to Pascal Schuhmacher.
This commit is contained in:
commit
48d142dc3b
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue