diff options
author | Brian Vosburgh | 2016-09-01 19:33:22 +0000 |
---|---|---|
committer | Brian Vosburgh | 2017-05-18 22:39:05 +0000 |
commit | 4e7cb93feda54fb0b90a9b138882a0405d608e31 (patch) | |
tree | 25b1e2f5322c67858ffb2a562812993db1c8c0a4 | |
parent | 0e75bb4a8f19ae75c2a9827ad476c822dd7b8745 (diff) | |
download | webtools.dali-4e7cb93feda54fb0b90a9b138882a0405d608e31.tar.gz webtools.dali-4e7cb93feda54fb0b90a9b138882a0405d608e31.tar.xz webtools.dali-4e7cb93feda54fb0b90a9b138882a0405d608e31.zip |
mark some AspectPropertyValueModelAdapter methods 'final' to smoke out
subclass overrides
-rw-r--r-- | common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/model/value/AspectPropertyValueModelAdapter.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/model/value/AspectPropertyValueModelAdapter.java b/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/model/value/AspectPropertyValueModelAdapter.java index a815d56a1e..bf92258be9 100644 --- a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/model/value/AspectPropertyValueModelAdapter.java +++ b/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/model/value/AspectPropertyValueModelAdapter.java @@ -110,32 +110,32 @@ public abstract class AspectPropertyValueModelAdapter<S, V> // ********** AspectAdapter implementation ********** @Override - protected V getAspectValue() { + protected final V getAspectValue() { return this.value; } @Override - protected Class<? extends EventListener> getListenerClass() { + protected final Class<? extends EventListener> getListenerClass() { return PropertyChangeListener.class; } @Override - protected String getListenerAspectName() { + protected final String getListenerAspectName() { return VALUE; } @Override - public boolean hasListeners() { + public final boolean hasListeners() { return this.hasAnyPropertyChangeListeners(VALUE); } @Override - protected void fireAspectChanged(V oldValue, V newValue) { + protected final void fireAspectChanged(V oldValue, V newValue) { this.firePropertyChanged(VALUE, oldValue, newValue); } @Override - protected void engageSubject() { + protected final void engageSubject() { super.engageSubject(); // sync our value *after* we start listening to the subject, // since its value might change when a listener is added @@ -143,7 +143,7 @@ public abstract class AspectPropertyValueModelAdapter<S, V> } @Override - protected void disengageSubject() { + protected final void disengageSubject() { super.disengageSubject(); // clear out our value when we are not listening to the subject this.value = null; @@ -174,13 +174,13 @@ public abstract class AspectPropertyValueModelAdapter<S, V> * This method can be called by subclasses whenever the subject's aspect * has changed; listeners will be notified appropriately. */ - protected void aspectChanged() { + protected final void aspectChanged() { V old = this.value; this.fireAspectChanged(old, this.value = this.buildValue()); } @Override - public void toString(StringBuilder sb) { + public final void toString(StringBuilder sb) { sb.append(this.value); } } |