Author: thn
Date: 2011-03-25 07:18:27-0700
New Revision: 19133
Modified:
trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/ModelEventPumpEUMLImpl.java
Log:
remove type checking (and throw clause), because unregisterListener(...) works well with any type
Modified: trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/ModelEventPumpEUMLImpl.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/ModelEventPumpEUMLImpl.java?view=diff&pathrev=19133&r1=19132&r2=19133
==============================================================================
--- trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/ModelEventPumpEUMLImpl.java (original)
+++ trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/ModelEventPumpEUMLImpl.java 2011-03-25 07:18:27-0700
@@ -8,6 +8,7 @@
*
* Contributors:
* Bogdan Pistol - initial implementation
+ * Thomas Neustupny
*******************************************************************************/
package org.argouml.model.euml;
@@ -236,9 +237,6 @@
public void removeModelEventListener(PropertyChangeListener listener,
Object modelelement, String[] propertyNames) {
- if (!(modelelement instanceof EObject)) {
- throw new IllegalArgumentException();
- }
unregisterListener(
modelelement, listener, propertyNames, registerForElements);
}
------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2714144
To unsubscribe from this discussion, e-mail: [[email protected]].
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.