Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Implemented the changes proposed by kcooney:

1) Now passing classes.length to the constructor of ArrayList
2) Code style adjustment (no spaces before the = in an assignment)
  • Loading branch information...
commit 45aed05bb9e75bc8228af8ffbb44d39626d02dd5 1 parent 229490b
@nicobn authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/main/java/org/junit/experimental/runners/Enclosed.java
View
2  src/main/java/org/junit/experimental/runners/Enclosed.java
@@ -33,7 +33,7 @@ public Enclosed(Class<?> klass, RunnerBuilder builder) throws Throwable {
}
private static Class<?>[] filterAbstractClasses(final Class<?>[] classes) {
- final List<Class<?>> filteredList = new ArrayList<Class<?>>();
+ final List<Class<?>> filteredList= new ArrayList<Class<?>>(classes.length);
for (final Class<?> clazz : classes) {
if (!Modifier.isAbstract(clazz.getModifiers())) {
Please sign in to comment.
Something went wrong with that request. Please try again.