summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAutomerge <automerge@vaadin.com>2012-05-21 17:06:20 +0000
committerAutomerge <automerge@vaadin.com>2012-05-21 17:06:20 +0000
commit12e35f034db98f5351c58c03b5277d4657e2ab28 (patch)
treea3ce0d64b28f4fe6c0c89bed385d90c30b564371 /src
parentac7031059125b41aef98d7920670022befeb55a6 (diff)
downloadvaadin-framework-12e35f034db98f5351c58c03b5277d4657e2ab28.tar.gz
vaadin-framework-12e35f034db98f5351c58c03b5277d4657e2ab28.zip
[merge from 6.7] Remove duplicate code in constructor
svn changeset:23779/svn branch:6.8
Diffstat (limited to 'src')
-rw-r--r--src/com/vaadin/terminal/ClassResource.java8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/com/vaadin/terminal/ClassResource.java b/src/com/vaadin/terminal/ClassResource.java
index fa196e90d9..e7419576f1 100644
--- a/src/com/vaadin/terminal/ClassResource.java
+++ b/src/com/vaadin/terminal/ClassResource.java
@@ -60,13 +60,7 @@ public class ClassResource implements ApplicationResource, Serializable {
* the application this resource will be added to.
*/
public ClassResource(String resourceName, Application application) {
- associatedClass = application.getClass();
- this.resourceName = resourceName;
- this.application = application;
- if (resourceName == null) {
- throw new NullPointerException();
- }
- application.addResource(this);
+ this(application.getClass(), resourceName, application);
}
/**