diff options
author | Artur Signell <artur@vaadin.com> | 2011-12-21 09:10:17 +0200 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2011-12-21 09:10:56 +0200 |
commit | 7e594fb40fd2a9ad1759d422a62a5c4045351e6d (patch) | |
tree | ebe018f799472e6e533fe46257b0de7967128c00 /src/com/vaadin/data/util/MethodProperty.java | |
parent | fbfab86bcdde3fbae4df02212e2d100163a30316 (diff) | |
download | vaadin-framework-7e594fb40fd2a9ad1759d422a62a5c4045351e6d.tar.gz vaadin-framework-7e594fb40fd2a9ad1759d422a62a5c4045351e6d.zip |
#8125 Removed Property.ConversionException and String constructor based
conversion from Property classes
Diffstat (limited to 'src/com/vaadin/data/util/MethodProperty.java')
-rw-r--r-- | src/com/vaadin/data/util/MethodProperty.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/com/vaadin/data/util/MethodProperty.java b/src/com/vaadin/data/util/MethodProperty.java index ec9a4e0c0a..bffa2ae94e 100644 --- a/src/com/vaadin/data/util/MethodProperty.java +++ b/src/com/vaadin/data/util/MethodProperty.java @@ -644,8 +644,7 @@ public class MethodProperty<T> extends AbstractProperty<T> { * @see #invokeSetMethod(Object) */ @SuppressWarnings("unchecked") - public void setValue(Object newValue) throws Property.ReadOnlyException, - Property.ConversionException { + public void setValue(Object newValue) throws Property.ReadOnlyException { // Checks the mode if (isReadOnly()) { @@ -654,7 +653,7 @@ public class MethodProperty<T> extends AbstractProperty<T> { // Checks the type of the value if (newValue != null && !type.isAssignableFrom(newValue.getClass())) { - throw new Property.ConversionException( + throw new IllegalArgumentException( "Invalid value type for ObjectProperty."); } |