Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Implemented the changes proposed davidhart82

  • Loading branch information...
commit ebb9d7f536a5b1be8364c6cb7367cac8c3849caa 1 parent 0c458a8
Nick Berard authored
6 src/main/java/org/junit/experimental/runners/Enclosed.java
@@ -30,10 +30,10 @@
30 30 * Only called reflectively. Do not use programmatically.
31 31 */
32 32 public Enclosed(Class<?> klass, RunnerBuilder builder) throws Throwable {
33   - super(builder, klass, filterOutAbstractClasses(klass.getClasses()));
  33 + super(builder, klass, filterAbstractClasses(klass.getClasses()));
34 34 }
35 35
36   - private static Class<?>[] filterOutAbstractClasses(final Class<?>[] classes) {
  36 + private static Class<?>[] filterAbstractClasses(final Class<?>[] classes) {
37 37 final Set<Class<?>> filteredSet = new HashSet<Class<?>>();
38 38
39 39 for (final Class<?> clazz : classes) {
@@ -42,6 +42,6 @@ public Enclosed(Class<?> klass, RunnerBuilder builder) throws Throwable {
42 42 }
43 43 }
44 44
45   - return filteredSet.toArray(new Class<?>[] { });
  45 + return filteredSet.toArray(new Class<?>[filteredSet.size()]);
46 46 }
47 47 }

0 comments on commit ebb9d7f

Please sign in to comment.
Something went wrong with that request. Please try again.