Author: akarasulu Date: Wed Apr 8 04:36:21 2009 New Revision: 763101 URL: http://svn.apache.org/viewvc?rev=763101&view=rev Log: warnings cleanup in core-entry Modified: directory/apacheds/branches/ldif-partition/core-entry/pom.xml directory/apacheds/branches/ldif-partition/core-entry/src/main/java/org/apache/directory/server/core/entry/DefaultServerEntry.java directory/apacheds/branches/ldif-partition/core-entry/src/main/java/org/apache/directory/server/core/entry/ServerBinaryValue.java directory/apacheds/branches/ldif-partition/core-entry/src/main/java/org/apache/directory/server/core/entry/ServerEntryUtils.java directory/apacheds/branches/ldif-partition/core-entry/src/main/java/org/apache/directory/server/core/entry/ServerStringValue.java directory/apacheds/branches/ldif-partition/core-entry/src/main/java/org/apache/directory/server/core/entry/TestServerEntryUtils.java directory/apacheds/branches/ldif-partition/core-entry/src/test/java/org/apache/directory/server/core/entry/ServerStringValueTest.java Modified: directory/apacheds/branches/ldif-partition/core-entry/pom.xml URL: http://svn.apache.org/viewvc/directory/apacheds/branches/ldif-partition/core-entry/pom.xml?rev=763101&r1=763100&r2=763101&view=diff ============================================================================== --- directory/apacheds/branches/ldif-partition/core-entry/pom.xml (original) +++ directory/apacheds/branches/ldif-partition/core-entry/pom.xml Wed Apr 8 04:36:21 2009 @@ -55,13 +55,6 @@ apacheds-schema-extras test - - - ${pom.groupId} - ${pom.version} - apacheds-jdbm - - Modified: directory/apacheds/branches/ldif-partition/core-entry/src/main/java/org/apache/directory/server/core/entry/DefaultServerEntry.java URL: http://svn.apache.org/viewvc/directory/apacheds/branches/ldif-partition/core-entry/src/main/java/org/apache/directory/server/core/entry/DefaultServerEntry.java?rev=763101&r1=763100&r2=763101&view=diff ============================================================================== --- directory/apacheds/branches/ldif-partition/core-entry/src/main/java/org/apache/directory/server/core/entry/DefaultServerEntry.java (original) +++ directory/apacheds/branches/ldif-partition/core-entry/src/main/java/org/apache/directory/server/core/entry/DefaultServerEntry.java Wed Apr 8 04:36:21 2009 @@ -2264,6 +2264,7 @@ * the original object won't affect the cloned object, as a modification * on the cloned object has no impact on the original object */ + @SuppressWarnings("unchecked") public Entry clone() { // First, clone the structure Modified: directory/apacheds/branches/ldif-partition/core-entry/src/main/java/org/apache/directory/server/core/entry/ServerBinaryValue.java URL: http://svn.apache.org/viewvc/directory/apacheds/branches/ldif-partition/core-entry/src/main/java/org/apache/directory/server/core/entry/ServerBinaryValue.java?rev=763101&r1=763100&r2=763101&view=diff ============================================================================== --- directory/apacheds/branches/ldif-partition/core-entry/src/main/java/org/apache/directory/server/core/entry/ServerBinaryValue.java (original) +++ directory/apacheds/branches/ldif-partition/core-entry/src/main/java/org/apache/directory/server/core/entry/ServerBinaryValue.java Wed Apr 8 04:36:21 2009 @@ -382,6 +382,7 @@ * @throws IllegalStateException on failures to extract the comparator, or the * normalizers needed to perform the required comparisons based on the schema */ + @SuppressWarnings("unchecked") public int compareTo( Value value ) { if ( isNull() ) @@ -497,6 +498,7 @@ * @throws IllegalStateException on failures to extract the comparator, or the * normalizers needed to perform the required comparisons based on the schema */ + @SuppressWarnings("unchecked") public boolean equals( Object obj ) { if ( this == obj ) @@ -608,6 +610,7 @@ * @return a comparator associated with the attributeType or null if one cannot be found * @throws NamingException if resolution of schema entities fail */ + @SuppressWarnings("unchecked") private Comparator getComparator() throws NamingException { MatchingRule mr = getMatchingRule(); Modified: directory/apacheds/branches/ldif-partition/core-entry/src/main/java/org/apache/directory/server/core/entry/ServerEntryUtils.java URL: http://svn.apache.org/viewvc/directory/apacheds/branches/ldif-partition/core-entry/src/main/java/org/apache/directory/server/core/entry/ServerEntryUtils.java?rev=763101&r1=763100&r2=763101&view=diff ============================================================================== --- directory/apacheds/branches/ldif-partition/core-entry/src/main/java/org/apache/directory/server/core/entry/ServerEntryUtils.java (original) +++ directory/apacheds/branches/ldif-partition/core-entry/src/main/java/org/apache/directory/server/core/entry/ServerEntryUtils.java Wed Apr 8 04:36:21 2009 @@ -205,6 +205,7 @@ String attributeId = attr.getID(); String id = SchemaUtils.stripOptions( attributeId ); + @SuppressWarnings("unused") Set options = SchemaUtils.getOptions( attributeId ); // TODO : handle options. AttributeType attributeType = registries.getAttributeTypeRegistry().lookup( id ); @@ -448,6 +449,7 @@ String attributeId = modification.getAttribute().getId(); String id = stripOptions( attributeId ); modification.getAttribute().setId( id ); + @SuppressWarnings("unused") Set options = getOptions( attributeId ); // ------------------------------------------------------------------- @@ -495,6 +497,7 @@ { String attributeId = modification.getAttribute().getID(); String id = stripOptions( attributeId ); + @SuppressWarnings("unused") Set options = getOptions( attributeId ); // ------------------------------------------------------------------- Modified: directory/apacheds/branches/ldif-partition/core-entry/src/main/java/org/apache/directory/server/core/entry/ServerStringValue.java URL: http://svn.apache.org/viewvc/directory/apacheds/branches/ldif-partition/core-entry/src/main/java/org/apache/directory/server/core/entry/ServerStringValue.java?rev=763101&r1=763100&r2=763101&view=diff ============================================================================== --- directory/apacheds/branches/ldif-partition/core-entry/src/main/java/org/apache/directory/server/core/entry/ServerStringValue.java (original) +++ directory/apacheds/branches/ldif-partition/core-entry/src/main/java/org/apache/directory/server/core/entry/ServerStringValue.java Wed Apr 8 04:36:21 2009 @@ -549,7 +549,8 @@ * @return a comparator associated with the attributeType or null if one cannot be found * @throws NamingException if resolution of schema entities fail */ - private Comparator getComparator() throws NamingException + @SuppressWarnings("unchecked") + private Comparator getComparator() throws NamingException { MatchingRule mr = getMatchingRule(); Modified: directory/apacheds/branches/ldif-partition/core-entry/src/main/java/org/apache/directory/server/core/entry/TestServerEntryUtils.java URL: http://svn.apache.org/viewvc/directory/apacheds/branches/ldif-partition/core-entry/src/main/java/org/apache/directory/server/core/entry/TestServerEntryUtils.java?rev=763101&r1=763100&r2=763101&view=diff ============================================================================== --- directory/apacheds/branches/ldif-partition/core-entry/src/main/java/org/apache/directory/server/core/entry/TestServerEntryUtils.java (original) +++ directory/apacheds/branches/ldif-partition/core-entry/src/main/java/org/apache/directory/server/core/entry/TestServerEntryUtils.java Wed Apr 8 04:36:21 2009 @@ -128,6 +128,7 @@ { private static final long serialVersionUID = 0L; Syntax syntax; + @SuppressWarnings("unchecked") Comparator comparator; Normalizer normalizer; @@ -141,6 +142,7 @@ return syntax; } + @SuppressWarnings("unchecked") public Comparator getComparator() throws NamingException { return comparator; @@ -245,6 +247,7 @@ ( o2 == null ? 1 : o1.compareTo( o2 ) ) ); } + @SuppressWarnings("unused") int getValue( String val ) { if ( val.equals( "LOW" ) ) Modified: directory/apacheds/branches/ldif-partition/core-entry/src/test/java/org/apache/directory/server/core/entry/ServerStringValueTest.java URL: http://svn.apache.org/viewvc/directory/apacheds/branches/ldif-partition/core-entry/src/test/java/org/apache/directory/server/core/entry/ServerStringValueTest.java?rev=763101&r1=763100&r2=763101&view=diff ============================================================================== --- directory/apacheds/branches/ldif-partition/core-entry/src/test/java/org/apache/directory/server/core/entry/ServerStringValueTest.java (original) +++ directory/apacheds/branches/ldif-partition/core-entry/src/test/java/org/apache/directory/server/core/entry/ServerStringValueTest.java Wed Apr 8 04:36:21 2009 @@ -631,6 +631,7 @@ Comparator c = new Comparator() { + @SuppressWarnings("unchecked") public int compare( ServerStringValue o1, ServerStringValue o2 ) { String n1 = null;