directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r542197 - in /directory/apacheds/trunk/core-plugin/src/main/resources/org/apache/directory/server/core/tools/schema: AttributeTypes.template ObjectClasses.template Schema.template
Date Mon, 28 May 2007 11:14:25 GMT
Author: elecharny
Date: Mon May 28 04:14:24 2007
New Revision: 542197

URL: http://svn.apache.org/viewvc?view=rev&rev=542197
Log:
Removed the useless String[] casts to remove thousands of warnings in generated classes 

Modified:
    directory/apacheds/trunk/core-plugin/src/main/resources/org/apache/directory/server/core/tools/schema/AttributeTypes.template
    directory/apacheds/trunk/core-plugin/src/main/resources/org/apache/directory/server/core/tools/schema/ObjectClasses.template
    directory/apacheds/trunk/core-plugin/src/main/resources/org/apache/directory/server/core/tools/schema/Schema.template

Modified: directory/apacheds/trunk/core-plugin/src/main/resources/org/apache/directory/server/core/tools/schema/AttributeTypes.template
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-plugin/src/main/resources/org/apache/directory/server/core/tools/schema/AttributeTypes.template?view=diff&rev=542197&r1=542196&r2=542197
==============================================================================
--- directory/apacheds/trunk/core-plugin/src/main/resources/org/apache/directory/server/core/tools/schema/AttributeTypes.template
(original)
+++ directory/apacheds/trunk/core-plugin/src/main/resources/org/apache/directory/server/core/tools/schema/AttributeTypes.template
Mon May 28 04:14:24 2007
@@ -88,7 +88,7 @@
 names.clear();
        #foreach ( $name in $attrType.getNames() ) names.add( "$name" );
        #end
- attributeType.setNames( ( String[] ) names.toArray( EMPTY ) );
+ attributeType.setNames( names.toArray( EMPTY ) );
         #else
  attributeType.setNames( EMPTY );
         #end

Modified: directory/apacheds/trunk/core-plugin/src/main/resources/org/apache/directory/server/core/tools/schema/ObjectClasses.template
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-plugin/src/main/resources/org/apache/directory/server/core/tools/schema/ObjectClasses.template?view=diff&rev=542197&r1=542196&r2=542197
==============================================================================
--- directory/apacheds/trunk/core-plugin/src/main/resources/org/apache/directory/server/core/tools/schema/ObjectClasses.template
(original)
+++ directory/apacheds/trunk/core-plugin/src/main/resources/org/apache/directory/server/core/tools/schema/ObjectClasses.template
Mon May 28 04:14:24 2007
@@ -87,7 +87,7 @@
 array.clear();
        #foreach ( $id in $objectClass.getSuperiors() ) array.add( "$id" );
        #end
- objectClass.setSuperClassIds( ( String[] ) array.toArray( EMPTY ) );
+ objectClass.setSuperClassIds( array.toArray( EMPTY ) );
         #else
  objectClass.setSuperClassIds( EMPTY );
         #end
@@ -97,7 +97,7 @@
 array.clear();
        #foreach ( $id in $objectClass.getMust() ) array.add( "$id" );
        #end
- objectClass.setMustListIds( ( String[] ) array.toArray( EMPTY ) );
+ objectClass.setMustListIds( array.toArray( EMPTY ) );
         #else
  objectClass.setMustListIds( EMPTY );
         #end
@@ -107,7 +107,7 @@
 array.clear();
        #foreach ( $id in $objectClass.getMay() ) array.add( "$id" );
        #end
- objectClass.setMayListIds( ( String[] ) array.toArray( EMPTY ) );
+ objectClass.setMayListIds( array.toArray( EMPTY ) );
         #else
  objectClass.setMayListIds( EMPTY );
         #end
@@ -117,7 +117,7 @@
 array.clear();
        #foreach ( $id in $objectClass.getNames() ) array.add( "$id" );
        #end
- objectClass.setNames( ( String[] ) array.toArray( EMPTY ) );
+ objectClass.setNames( array.toArray( EMPTY ) );
         #else
  objectClass.setNames( EMPTY );
         #end

Modified: directory/apacheds/trunk/core-plugin/src/main/resources/org/apache/directory/server/core/tools/schema/Schema.template
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-plugin/src/main/resources/org/apache/directory/server/core/tools/schema/Schema.template?view=diff&rev=542197&r1=542196&r2=542197
==============================================================================
--- directory/apacheds/trunk/core-plugin/src/main/resources/org/apache/directory/server/core/tools/schema/Schema.template
(original)
+++ directory/apacheds/trunk/core-plugin/src/main/resources/org/apache/directory/server/core/tools/schema/Schema.template
Mon May 28 04:14:24 2007
@@ -45,7 +45,7 @@
 list.clear();
        #foreach ( $name in $deps ) list.add( "$name" );
        #end
- setDependencies( ( String[] ) list.toArray( DEFAULT_DEPS ) );#else
+ setDependencies( list.toArray( DEFAULT_DEPS ) );#else
  setDependencies( DEFAULT_DEPS );#end
 
     }



Mime
View raw message