svn commit: r13665 - trunk/src_new/org/argouml/cognitive/ResolvedCritic.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2007-10-10 18:17:06-0700
New Revision: 13665

Modified:
   trunk/src_new/org/argouml/cognitive/ResolvedCritic.java

Log:
Throw IllegalArgumentException instead of NullPointerException

Modified: trunk/src_new/org/argouml/cognitive/ResolvedCritic.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src_new/org/argouml/cognitive/ResolvedCritic.java?view=diff&rev=13665&p1=trunk/src_new/org/argouml/cognitive/ResolvedCritic.java&p2=trunk/src_new/org/argouml/cognitive/ResolvedCritic.java&r1=13664&r2=13665
==============================================================================
--- trunk/src_new/org/argouml/cognitive/ResolvedCritic.java	(original)
+++ trunk/src_new/org/argouml/cognitive/ResolvedCritic.java	2007-10-10 18:17:06-0700
@@ -113,7 +113,7 @@
     public ResolvedCritic(Critic c, ListSet offs, boolean canCreate)
 	throws UnresolvableException {
 	if (c == null) {
-	    throw new NullPointerException();
+	    throw new IllegalArgumentException();
 	}
 
 	//LOG.debug("Adding resolution for: " + c.getClass() + " " + canCreate);
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.