Author: rwhitcomb Date: Tue Sep 11 16:31:48 2018 New Revision: 1840590 URL: http://svn.apache.org/viewvc?rev=1840590&view=rev Log: PIVOT-1027: Add the @UnsupportedOperation annotation to all the methods in various packages that throw this exception. Clean up some error messages from this exception and some related Javadoc.
Modified: pivot/trunk/core/src/org/apache/pivot/util/ListenerList.java Modified: pivot/trunk/core/src/org/apache/pivot/util/ListenerList.java URL: http://svn.apache.org/viewvc/pivot/trunk/core/src/org/apache/pivot/util/ListenerList.java?rev=1840590&r1=1840589&r2=1840590&view=diff ============================================================================== --- pivot/trunk/core/src/org/apache/pivot/util/ListenerList.java (original) +++ pivot/trunk/core/src/org/apache/pivot/util/ListenerList.java Tue Sep 11 16:31:48 2018 @@ -20,6 +20,8 @@ import java.util.Arrays; import java.util.Iterator; import java.util.NoSuchElementException; +import org.apache.pivot.annotations.UnsupportedOperation; + /** * Abstract base class for listener lists. <p> NOTE This class is not inherently * thread safe. Subclasses that require thread-safe access should synchronize @@ -51,6 +53,7 @@ public abstract class ListenerList<T> im } @Override + @UnsupportedOperation public void remove() { throw new UnsupportedOperationException(); }