diff options
author | Brian Vosburgh | 2016-06-17 20:22:02 +0000 |
---|---|---|
committer | Brian Vosburgh | 2017-05-18 22:37:16 +0000 |
commit | c1937f9ef0069ffcffddd8b5860ceb0a3ec2195c (patch) | |
tree | c06b821efe9fbe9ac4a188158722f87f4aacefac /common | |
parent | a36a53cc6c994695a43c789491f31a4381b926dc (diff) | |
download | webtools.dali-c1937f9ef0069ffcffddd8b5860ceb0a3ec2195c.tar.gz webtools.dali-c1937f9ef0069ffcffddd8b5860ceb0a3ec2195c.tar.xz webtools.dali-c1937f9ef0069ffcffddd8b5860ceb0a3ec2195c.zip |
tweak DoublePVMs
Diffstat (limited to 'common')
2 files changed, 5 insertions, 4 deletions
diff --git a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/model/value/DoubleModifiablePropertyValueModel.java b/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/model/value/DoubleModifiablePropertyValueModel.java index 78e251f7aa..8b1e39be37 100644 --- a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/model/value/DoubleModifiablePropertyValueModel.java +++ b/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/model/value/DoubleModifiablePropertyValueModel.java @@ -23,7 +23,7 @@ import org.eclipse.jpt.common.utility.model.value.PropertyValueModel; * @param <V> the type of the both the <em>inner</em> and <em>outer</em> * models' values */ -public class DoubleModifiablePropertyValueModel<V> +public final class DoubleModifiablePropertyValueModel<V> extends AbstractDoublePropertyValueModel<V, ModifiablePropertyValueModel<V>> implements ModifiablePropertyValueModel<V> { @@ -39,8 +39,9 @@ public class DoubleModifiablePropertyValueModel<V> * Forward the specified value to the <em>inner</em> model. */ public void setValue(V value) { - if (this.valueModelValue != null) { - this.valueModelValue.setValue(value); + if (this.valueModelValue == null) { + throw new IllegalStateException(); } + this.valueModelValue.setValue(value); } } diff --git a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/model/value/DoublePropertyValueModel.java b/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/model/value/DoublePropertyValueModel.java index b3b96f35a7..522906e88d 100644 --- a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/model/value/DoublePropertyValueModel.java +++ b/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/model/value/DoublePropertyValueModel.java @@ -19,7 +19,7 @@ import org.eclipse.jpt.common.utility.model.value.PropertyValueModel; * @param <V> the type of the both the <em>inner</em> and <em>outer</em> * models' values */ -public class DoublePropertyValueModel<V> +public final class DoublePropertyValueModel<V> extends AbstractDoublePropertyValueModel<V, PropertyValueModel<? extends V>> { /** |