diff options
author | Artur Signell <artur@vaadin.com> | 2012-11-06 11:17:44 +0200 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-11-06 11:18:32 +0200 |
commit | 817df46c137cccb9112b12fb6a75a4cdc840d94c (patch) | |
tree | ad71d5eb78606ec67a5542136f87005cd5eb06d2 /server | |
parent | 755fe2074bc59ad7079979e11d9a9d809e632857 (diff) | |
download | vaadin-framework-817df46c137cccb9112b12fb6a75a4cdc840d94c.tar.gz vaadin-framework-817df46c137cccb9112b12fb6a75a4cdc840d94c.zip |
Do not include classes which cannot be instansiated
Change-Id: I467993c91754f094e5d55d5c849c718291487754
Diffstat (limited to 'server')
-rw-r--r-- | server/tests/src/com/vaadin/tests/VaadinClasses.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/tests/src/com/vaadin/tests/VaadinClasses.java b/server/tests/src/com/vaadin/tests/VaadinClasses.java index c0e026a5ca..b0d06ea897 100644 --- a/server/tests/src/com/vaadin/tests/VaadinClasses.java +++ b/server/tests/src/com/vaadin/tests/VaadinClasses.java @@ -244,7 +244,9 @@ public class VaadinClasses { Class<?> c = Class.forName(fullyQualifiedClassName); if (baseClass.isAssignableFrom(c) - && !Modifier.isAbstract(c.getModifiers())) { + && !Modifier.isAbstract(c.getModifiers()) + && !c.isAnonymousClass() && !c.isMemberClass() + && !c.isLocalClass()) { result.add((Class<? extends T>) c); } } catch (Exception e) { |