svn commit: r13683 - trunk/tests/org/argouml/model/TestModelFacade3.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2007-10-11 01:48:29-0700
New Revision: 13683

Modified:
   trunk/tests/org/argouml/model/TestModelFacade3.java

Log:
Don't instantiate Integers and Booleans

Modified: trunk/tests/org/argouml/model/TestModelFacade3.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/tests/org/argouml/model/TestModelFacade3.java?view=diff&rev=13683&p1=trunk/tests/org/argouml/model/TestModelFacade3.java&p2=trunk/tests/org/argouml/model/TestModelFacade3.java&r1=13682&r2=13683
==============================================================================
--- trunk/tests/org/argouml/model/TestModelFacade3.java	(original)
+++ trunk/tests/org/argouml/model/TestModelFacade3.java	2007-10-11 01:48:29-0700
@@ -119,10 +119,10 @@
                     String primitiveName = params[i]
                                                   .getName();
                     if (primitiveName.equals("int")) {
-                        foo[i] = new Integer(0);
+                        foo[i] = Integer.valueOf(0);
                     }
                     if (primitiveName.equals("boolean")) {
-                        foo[i] = new Boolean(true);
+                        foo[i] = Boolean.TRUE;
                     }
                     if (primitiveName.equals("short")) {
                         foo[i] = new Short("0");
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.