summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorJohn Ahlroos <john@vaadin.com>2012-11-13 07:11:02 +0000
committerVaadin Code Review <review@vaadin.com>2012-11-13 07:11:02 +0000
commit32923677e1597400a304e579d2ef132ee4516934 (patch)
treeb7296fe14f39c3c28fc7af9907ded5aab51d78ae /server
parentaa6b57956e11173b98f8da2dda914f62b6d2d884 (diff)
parent817df46c137cccb9112b12fb6a75a4cdc840d94c (diff)
downloadvaadin-framework-32923677e1597400a304e579d2ef132ee4516934.tar.gz
vaadin-framework-32923677e1597400a304e579d2ef132ee4516934.zip
Merge "Do not include classes which cannot be instansiated"
Diffstat (limited to 'server')
-rw-r--r--server/tests/src/com/vaadin/tests/VaadinClasses.java4
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) {