Reduce warnings reported by Eclipse

Closes gh-43269
This commit is contained in:
Andy Wilkinson
2024-11-22 14:42:48 +00:00
parent cf1dadf2e7
commit bb3651b7d1
17 changed files with 148 additions and 117 deletions

View File

@@ -99,6 +99,7 @@ final class ModifiedClassPathClassLoader extends URLClassLoader {
return super.loadClass(name);
}
@SuppressWarnings("resource")
static ModifiedClassPathClassLoader get(Class<?> testClass, Method testMethod, List<Object> arguments) {
Set<AnnotatedElement> candidates = new LinkedHashSet<>();
candidates.add(testClass);