svn commit: r13186 - trunk/src_new/org/argouml/notation/providers/uml/NotationUtilityUml.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: mvw
Date: 2007-07-30 11:44:17-0700
New Revision: 13186

Modified:
   trunk/src_new/org/argouml/notation/providers/uml/NotationUtilityUml.java

Log:
Use generics.

Modified: trunk/src_new/org/argouml/notation/providers/uml/NotationUtilityUml.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src_new/org/argouml/notation/providers/uml/NotationUtilityUml.java?view=diff&rev=13186&p1=trunk/src_new/org/argouml/notation/providers/uml/NotationUtilityUml.java&p2=trunk/src_new/org/argouml/notation/providers/uml/NotationUtilityUml.java&r1=13185&r2=13186
==============================================================================
--- trunk/src_new/org/argouml/notation/providers/uml/NotationUtilityUml.java	(original)
+++ trunk/src_new/org/argouml/notation/providers/uml/NotationUtilityUml.java	2007-07-30 11:44:17-0700
@@ -448,14 +448,14 @@
     protected static String generatePath(Object modelElement) {
         String s = "";
         Object p = modelElement;
-        Stack stack = new Stack();
+        Stack<String> stack = new Stack<String>();
         Object ns = Model.getFacade().getNamespace(p);
         while (ns != null && !Model.getFacade().isAModel(ns)) {
             stack.push(Model.getFacade().getName(ns));
             ns = Model.getFacade().getNamespace(ns);
         }
         while (!stack.isEmpty()) {
-            s += (String) stack.pop() + "::";
+            s += stack.pop() + "::";
         }
 
         if (s.length() > 0 && !s.endsWith(":")) {
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.