svn commit: r13703 - trunk/src/model-euml/src/org/argouml/model/euml/XmiReaderEUMLImpl.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2007-11-03 17:12:36-0700
New Revision: 13703

Modified:
   trunk/src/model-euml/src/org/argouml/model/euml/XmiReaderEUMLImpl.java

Log:
Clean up some warnings

Modified: trunk/src/model-euml/src/org/argouml/model/euml/XmiReaderEUMLImpl.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/model-euml/src/org/argouml/model/euml/XmiReaderEUMLImpl.java?view=diff&rev=13703&p1=trunk/src/model-euml/src/org/argouml/model/euml/XmiReaderEUMLImpl.java&p2=trunk/src/model-euml/src/org/argouml/model/euml/XmiReaderEUMLImpl.java&r1=13702&r2=13703
==============================================================================
--- trunk/src/model-euml/src/org/argouml/model/euml/XmiReaderEUMLImpl.java	(original)
+++ trunk/src/model-euml/src/org/argouml/model/euml/XmiReaderEUMLImpl.java	2007-11-03 17:12:36-0700
@@ -57,7 +57,7 @@
      */
     private EUMLModelImplementation modelImpl;
     
-    private static Set<String> searchDirs = new HashSet();
+    private static Set<String> searchDirs = new HashSet<String>();
     
     private Resource resource;
 
@@ -72,21 +72,20 @@
     }
 
     public int getIgnoredElementCount() {
-        // TODO Auto-generated method stub
+        // TODO: Auto-generated method stub
         return 0;
     }
 
     public String[] getIgnoredElements() {
-        // TODO Auto-generated method stub
+        // TODO: Auto-generated method stub
         return new String[0];
     }
 
-    @SuppressWarnings("unchecked")
     public Map getXMIUUIDToObjectMap() {
         if (resource == null) {
             throw new IllegalStateException();
         }
-        HashMap map = new HashMap();
+        Map<String, EObject> map = new HashMap<String, EObject>();
         Iterator<EObject> it = resource.getAllContents();
         while (it.hasNext()) {
             EObject o  = it.next();
@@ -102,7 +101,8 @@
     public Collection parse(InputSource inputSource, boolean profile)
             throws UmlException {
         if (inputSource == null) {
-            throw new NullPointerException("The input source must be non-null."); //$NON-NLS-1$
+            throw new NullPointerException(
+                    "The input source must be non-null."); //$NON-NLS-1$
         }
         InputStream is = null;
         boolean needsClosing = false;
@@ -155,7 +155,7 @@
     }
 
     public boolean setIgnoredElements(String[] elementNames) {
-        // TODO Auto-generated method stub
+        // TODO: Auto-generated method stub
         return false;
     }
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.