[MOBY-guts] biomoby commit

Paul Gordon gordonp at dev.open-bio.org
Thu Dec 6 16:52:51 UTC 2007


gordonp
Thu Dec  6 11:52:50 EST 2007
Update of /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/util
In directory dev.open-bio.org:/tmp/cvs-serv25244/src/main/ca/ucalgary/seahawk/util

Modified Files:
	NamespaceContextImpl.java 
Log Message:
Added typechecking
moby-live/Java/src/main/ca/ucalgary/seahawk/util NamespaceContextImpl.java,1.2,1.3
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/util/NamespaceContextImpl.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/util/NamespaceContextImpl.java	2007/02/08 16:59:58	1.2
+++ /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/util/NamespaceContextImpl.java	2007/12/06 16:52:50	1.3
@@ -14,21 +14,21 @@
  * in the Seahawk data mapping rules file.
  */
 public class NamespaceContextImpl implements NamespaceContext, PrefixResolver{
-    private Map prefixes;
-    private Map nsURIs;
+    private Map<String, String> prefixes;
+    private Map<String, String> nsURIs;
 
     public NamespaceContextImpl(){
-	prefixes = new HashMap();
-	nsURIs = new HashMap();
+	prefixes = new HashMap<String, String>();
+	nsURIs = new HashMap<String, String>();
     }
 
     // JAX NamespaceContext requirements
     public String getNamespaceURI(String prefix){
-	return (String) nsURIs.get(prefix);
+	return nsURIs.get(prefix);
     }
 
     public String getPrefix(String namespaceURI){
-	return (String) prefixes.get(namespaceURI);
+	return prefixes.get(namespaceURI);
     }
 
     public void setPrefix(String namespaceURI, String prefix){




More information about the MOBY-guts mailing list