directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r575348 - in /directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries: DefaultOidRegistry.java DefaultRegistries.java
Date Thu, 13 Sep 2007 16:05:10 GMT
Author: elecharny
Date: Thu Sep 13 09:05:10 2007
New Revision: 575348

URL: http://svn.apache.org/viewvc?rev=575348&view=rev
Log:
Removed warnings by using generics, cleaning the antlr .g files from useless imports, removed
useless casts.

Modified:
    directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultOidRegistry.java
    directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultRegistries.java

Modified: directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultOidRegistry.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultOidRegistry.java?rev=575348&r1=575347&r2=575348&view=diff
==============================================================================
--- directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultOidRegistry.java
(original)
+++ directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultOidRegistry.java
Thu Sep 13 09:05:10 2007
@@ -160,7 +160,7 @@
     /**
      * @see org.apache.directory.server.schema.registries.OidRegistry#getNameSet(java.lang.String)
      */
-    public List getNameSet( String oid ) throws NamingException
+    public List<String> getNameSet( String oid ) throws NamingException
     {
         List<String> value = byOid.get( oid );
 
@@ -175,7 +175,7 @@
             log.debug( "looked up names '" + value + "' for OID '" + oid + "'" );
         }
         
-        return ( List ) value;
+        return value;
     }
 
 

Modified: directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultRegistries.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultRegistries.java?rev=575348&r1=575347&r2=575348&view=diff
==============================================================================
--- directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultRegistries.java
(original)
+++ directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultRegistries.java
Thu Sep 13 09:05:10 2007
@@ -176,7 +176,7 @@
      *
      * @return a list of exceptions encountered while resolving entities
      */
-    public List checkRefInteg()
+    public List<Throwable> checkRefInteg()
     {
         ArrayList<Throwable> errors = new ArrayList<Throwable>();
 



Mime
View raw message