directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1235374 [9/27] - in /directory/shared/trunk: ldap/model/src/main/java/org/apache/directory/shared/ldap/model/constants/ ldap/model/src/main/java/org/apache/directory/shared/ldap/model/csn/ ldap/model/src/main/java/org/apache/directory/shar...
Date Tue, 24 Jan 2012 17:44:32 GMT
Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/AbstractSchemaObject.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/AbstractSchemaObject.java?rev=1235374&r1=1235373&r2=1235374&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/AbstractSchemaObject.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/AbstractSchemaObject.java
Tue Jan 24 17:44:03 2012
@@ -105,10 +105,10 @@ public abstract class AbstractSchemaObje
 
     /** A map containing the list of supported extensions */
     protected Map<String, List<String>> extensions;
-    
+
     /** A locked to avoid modifications when set to true */
     protected volatile boolean locked;
-    
+
     /** The hashcode for this schemaObject */
     private int h;
 
@@ -170,7 +170,7 @@ public abstract class AbstractSchemaObje
         {
             throw new UnsupportedOperationException( I18n.err( I18n.ERR_04441, getName()
) );
         }
-        
+
         this.oid = oid;
     }
 
@@ -255,7 +255,7 @@ public abstract class AbstractSchemaObje
         {
             throw new UnsupportedOperationException( I18n.err( I18n.ERR_04441, getName()
) );
         }
-        
+
         if ( !isReadOnly )
         {
             // We must avoid duplicated names, as names are case insensitive
@@ -264,14 +264,14 @@ public abstract class AbstractSchemaObje
             // Fills a set with all the existing names
             for ( String name : this.names )
             {
-                lowerNames.add( Strings.toLowerCase(name) );
+                lowerNames.add( Strings.toLowerCase( name ) );
             }
 
             for ( String name : namesToAdd )
             {
                 if ( name != null )
                 {
-                    String lowerName = Strings.toLowerCase(name);
+                    String lowerName = Strings.toLowerCase( name );
                     // Check that the lower cased names is not already present
                     if ( !lowerNames.contains( lowerName ) )
                     {
@@ -296,7 +296,7 @@ public abstract class AbstractSchemaObje
         {
             throw new UnsupportedOperationException( I18n.err( I18n.ERR_04441, getName()
) );
         }
-        
+
         if ( names == null )
         {
             return;
@@ -329,7 +329,7 @@ public abstract class AbstractSchemaObje
         {
             throw new UnsupportedOperationException( I18n.err( I18n.ERR_04441, getName()
) );
         }
-        
+
         if ( names == null )
         {
             return;
@@ -338,7 +338,7 @@ public abstract class AbstractSchemaObje
         if ( !isReadOnly )
         {
             this.names.clear();
-            
+
             for ( String name : names )
             {
                 if ( name != null )
@@ -372,7 +372,7 @@ public abstract class AbstractSchemaObje
         {
             throw new UnsupportedOperationException( I18n.err( I18n.ERR_04441, getName()
) );
         }
-        
+
         if ( !isReadOnly )
         {
             this.description = description;
@@ -402,7 +402,7 @@ public abstract class AbstractSchemaObje
         {
             throw new UnsupportedOperationException( I18n.err( I18n.ERR_04441, getName()
) );
         }
-        
+
         if ( !isReadOnly )
         {
             this.specification = specification;
@@ -469,7 +469,7 @@ public abstract class AbstractSchemaObje
         {
             throw new UnsupportedOperationException( I18n.err( I18n.ERR_04441, getName()
) );
         }
-        
+
         this.isReadOnly = readOnly;
     }
 
@@ -499,7 +499,7 @@ public abstract class AbstractSchemaObje
         {
             throw new UnsupportedOperationException( I18n.err( I18n.ERR_04441, getName()
) );
         }
-        
+
         if ( !isReadOnly )
         {
             this.isObsolete = obsolete;
@@ -527,7 +527,7 @@ public abstract class AbstractSchemaObje
         {
             throw new UnsupportedOperationException( I18n.err( I18n.ERR_04441, getName()
) );
         }
-        
+
         if ( !isReadOnly )
         {
             extensions.put( key, values );
@@ -546,7 +546,7 @@ public abstract class AbstractSchemaObje
         {
             throw new UnsupportedOperationException( I18n.err( I18n.ERR_04441, getName()
) );
         }
-        
+
         if ( !isReadOnly && ( extensions != null ) )
         {
             this.extensions = new HashMap<String, List<String>>();
@@ -613,7 +613,7 @@ public abstract class AbstractSchemaObje
         {
             throw new UnsupportedOperationException( I18n.err( I18n.ERR_04441, getName()
) );
         }
-        
+
         if ( !isReadOnly )
         {
             this.schemaName = schemaName;
@@ -898,7 +898,7 @@ public abstract class AbstractSchemaObje
         // Clear the names
         names.clear();
     }
-    
+
 
     /**
      * {@inheritDoc}
@@ -909,7 +909,7 @@ public abstract class AbstractSchemaObje
         {
             return;
         }
-        
+
         h = 37;
 
         // The OID
@@ -957,7 +957,7 @@ public abstract class AbstractSchemaObje
                 }
             }
         }
-        
+
         locked = true;
     }
 }

Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/AttributeTypeOptions.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/AttributeTypeOptions.java?rev=1235374&r1=1235373&r2=1235374&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/AttributeTypeOptions.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/AttributeTypeOptions.java
Tue Jan 24 17:44:03 2012
@@ -105,7 +105,7 @@ public class AttributeTypeOptions
     {
         if ( hasOption() )
         {
-            return options.contains( Strings.toLowerCase(Strings.trim(option)) );
+            return options.contains( Strings.toLowerCase( Strings.trim( option ) ) );
         }
         else
         {
@@ -126,7 +126,7 @@ public class AttributeTypeOptions
             options = new HashSet<String>();
         }
 
-        options.add( Strings.toLowerCase(Strings.trim(option)) );
+        options.add( Strings.toLowerCase( Strings.trim( option ) ) );
     }
 
 

Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/DITContentRule.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/DITContentRule.java?rev=1235374&r1=1235373&r2=1235374&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/DITContentRule.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/DITContentRule.java
Tue Jan 24 17:44:03 2012
@@ -185,7 +185,7 @@ public class DITContentRule extends Abst
         {
             throw new UnsupportedOperationException( I18n.err( I18n.ERR_04441, getName()
) );
         }
-        
+
         if ( !isReadOnly )
         {
             auxObjectClassOids.add( oid );
@@ -204,7 +204,7 @@ public class DITContentRule extends Abst
         {
             throw new UnsupportedOperationException( I18n.err( I18n.ERR_04441, getName()
) );
         }
-        
+
         if ( !isReadOnly && !auxObjectClassOids.contains( objectClass.getOid() )
)
         {
             auxObjectClasses.add( objectClass );
@@ -222,7 +222,7 @@ public class DITContentRule extends Abst
         {
             throw new UnsupportedOperationException( I18n.err( I18n.ERR_04441, getName()
) );
         }
-        
+
         if ( !isReadOnly )
         {
             this.auxObjectClassOids = auxObjectClassOids;
@@ -239,7 +239,7 @@ public class DITContentRule extends Abst
         {
             throw new UnsupportedOperationException( I18n.err( I18n.ERR_04441, getName()
) );
         }
-        
+
         if ( !isReadOnly )
         {
             this.auxObjectClasses = auxObjectClasses;
@@ -284,7 +284,7 @@ public class DITContentRule extends Abst
         {
             throw new UnsupportedOperationException( I18n.err( I18n.ERR_04441, getName()
) );
         }
-        
+
         if ( !isReadOnly )
         {
             mayAttributeTypeOids.add( oid );
@@ -303,7 +303,7 @@ public class DITContentRule extends Abst
         {
             throw new UnsupportedOperationException( I18n.err( I18n.ERR_04441, getName()
) );
         }
-        
+
         if ( !isReadOnly && !mayAttributeTypeOids.contains( attributeType.getOid()
) )
         {
             mayAttributeTypes.add( attributeType );
@@ -321,7 +321,7 @@ public class DITContentRule extends Abst
         {
             throw new UnsupportedOperationException( I18n.err( I18n.ERR_04441, getName()
) );
         }
-        
+
         if ( !isReadOnly )
         {
             this.mayAttributeTypeOids = mayAttributeTypeOids;
@@ -340,7 +340,7 @@ public class DITContentRule extends Abst
         {
             throw new UnsupportedOperationException( I18n.err( I18n.ERR_04441, getName()
) );
         }
-        
+
         if ( !isReadOnly )
         {
             this.mayAttributeTypes = mayAttributeTypes;
@@ -385,7 +385,7 @@ public class DITContentRule extends Abst
         {
             throw new UnsupportedOperationException( I18n.err( I18n.ERR_04441, getName()
) );
         }
-        
+
         if ( !isReadOnly )
         {
             mustAttributeTypeOids.add( oid );
@@ -404,7 +404,7 @@ public class DITContentRule extends Abst
         {
             throw new UnsupportedOperationException( I18n.err( I18n.ERR_04441, getName()
) );
         }
-        
+
         if ( !isReadOnly && !mustAttributeTypeOids.contains( attributeType.getOid()
) )
         {
             mustAttributeTypes.add( attributeType );
@@ -422,7 +422,7 @@ public class DITContentRule extends Abst
         {
             throw new UnsupportedOperationException( I18n.err( I18n.ERR_04441, getName()
) );
         }
-        
+
         if ( !isReadOnly )
         {
             this.mustAttributeTypeOids = mustAttributeTypeOids;
@@ -441,7 +441,7 @@ public class DITContentRule extends Abst
         {
             throw new UnsupportedOperationException( I18n.err( I18n.ERR_04441, getName()
) );
         }
-        
+
         if ( !isReadOnly )
         {
             this.mustAttributeTypes = mustAttributeTypes;
@@ -486,7 +486,7 @@ public class DITContentRule extends Abst
         {
             throw new UnsupportedOperationException( I18n.err( I18n.ERR_04441, getName()
) );
         }
-        
+
         if ( !isReadOnly )
         {
             notAttributeTypeOids.add( oid );
@@ -505,7 +505,7 @@ public class DITContentRule extends Abst
         {
             throw new UnsupportedOperationException( I18n.err( I18n.ERR_04441, getName()
) );
         }
-        
+
         if ( !isReadOnly && !notAttributeTypeOids.contains( attributeType.getOid()
) )
         {
             notAttributeTypes.add( attributeType );
@@ -523,7 +523,7 @@ public class DITContentRule extends Abst
         {
             throw new UnsupportedOperationException( I18n.err( I18n.ERR_04441, getName()
) );
         }
-        
+
         if ( !isReadOnly )
         {
             this.notAttributeTypeOids = notAttributeTypeOids;
@@ -542,7 +542,7 @@ public class DITContentRule extends Abst
         {
             throw new UnsupportedOperationException( I18n.err( I18n.ERR_04441, getName()
) );
         }
-        
+
         if ( !isReadOnly )
         {
             this.notAttributeTypes = notAttributeTypes;
@@ -695,7 +695,8 @@ public class DITContentRule extends Abst
      * @see Object#equals(Object)
      */
     @Override
-    @SuppressWarnings("PMD.UnusedLocalVariable") // Remove me when the TODO is fixed 
+    @SuppressWarnings("PMD.UnusedLocalVariable")
+    // Remove me when the TODO is fixed 
     public boolean equals( Object o )
     {
         if ( !super.equals( o ) )

Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/DescriptionUtils.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/DescriptionUtils.java?rev=1235374&r1=1235373&r2=1235374&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/DescriptionUtils.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/DescriptionUtils.java
Tue Jan 24 17:44:03 2012
@@ -797,7 +797,7 @@ public final class DescriptionUtils
 
     private static void getExtensions( StringBuilder sb, Map<String, List<String>>
extensions )
     {
-        for ( Map.Entry<String, List<String>> extension : extensions.entrySet())
+        for ( Map.Entry<String, List<String>> extension : extensions.entrySet()
)
         {
             sb.append( " " + extension.getKey() ).append( " " );
 

Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/EntityFactory.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/EntityFactory.java?rev=1235374&r1=1235373&r2=1235374&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/EntityFactory.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/EntityFactory.java
Tue Jan 24 17:44:03 2012
@@ -19,6 +19,7 @@
  */
 package org.apache.directory.shared.ldap.model.schema;
 
+
 import org.apache.directory.shared.ldap.model.entry.Entry;
 import org.apache.directory.shared.ldap.model.exception.LdapException;
 import org.apache.directory.shared.ldap.model.schema.parsers.LdapComparatorDescription;
@@ -27,6 +28,7 @@ import org.apache.directory.shared.ldap.
 import org.apache.directory.shared.ldap.model.schema.parsers.SyntaxCheckerDescription;
 import org.apache.directory.shared.ldap.model.schema.registries.Registries;
 
+
 public interface EntityFactory
 {
     /**
@@ -37,8 +39,8 @@ public interface EntityFactory
      * @throws Exception If the instance can't be created
      */
     Schema getSchema( Entry entry ) throws Exception;
-    
-    
+
+
     /**
      * Construct an AttributeType from an entry representing an AttributeType.
      *
@@ -49,9 +51,10 @@ public interface EntityFactory
      * @return An AttributeType SchemaObject
      * @throws LdapException If the AttributeType is invalid
      */
-    AttributeType getAttributeType( SchemaManager schemaManager, Entry entry, Registries
targetRegistries, String schemaName ) throws LdapException;
+    AttributeType getAttributeType( SchemaManager schemaManager, Entry entry, Registries
targetRegistries,
+        String schemaName ) throws LdapException;
+
 
-    
     /**
      * Construct a LdapComparator from a description of a comparator.
      *
@@ -62,11 +65,11 @@ public interface EntityFactory
      * @return A new instance of a LdapComparator
      * @throws Exception If the creation has failed
      */
-    LdapComparator<?> getLdapComparator( SchemaManager schemaManager, 
+    LdapComparator<?> getLdapComparator( SchemaManager schemaManager,
         LdapComparatorDescription comparatorDescription,
         Registries targetRegistries, String schemaName ) throws Exception;
-    
-    
+
+
     /**
      * Retrieve and load a Comparator class from the DIT.
      * 
@@ -77,9 +80,9 @@ public interface EntityFactory
      * @return the loaded Comparator
      * @throws LdapException if anything fails during loading
      */
-    LdapComparator<?> getLdapComparator( SchemaManager schemaManager, Entry entry,

+    LdapComparator<?> getLdapComparator( SchemaManager schemaManager, Entry entry,
         Registries targetRegistries, String schemaName ) throws LdapException;
-    
+
 
     /**
      * Construct an MatchingRule from an entry get from the Dit
@@ -91,7 +94,8 @@ public interface EntityFactory
      * @return A MatchingRule SchemaObject
      * @throws LdapException If the MatchingRule is invalid
      */
-    MatchingRule getMatchingRule( SchemaManager schemaManager, Entry entry, Registries targetRegistries,
String schemaName ) throws LdapException;
+    MatchingRule getMatchingRule( SchemaManager schemaManager, Entry entry, Registries targetRegistries,
+        String schemaName ) throws LdapException;
 
 
     /**
@@ -106,8 +110,8 @@ public interface EntityFactory
      */
     Normalizer getNormalizer( SchemaManager schemaManager, NormalizerDescription normalizerDescription,
         Registries targetRegistries, String schemaName ) throws Exception;
-    
-    
+
+
     /**
      * Retrieve and load a Normalizer class from the DIT.
      * 
@@ -120,8 +124,8 @@ public interface EntityFactory
      */
     Normalizer getNormalizer( SchemaManager schemaManager, Entry entry, Registries targetRegistries,
String schemaName )
         throws LdapException;
-    
-    
+
+
     /**
      * 
      * @param schemaManager The Schema Manager
@@ -131,9 +135,10 @@ public interface EntityFactory
      * @return
      * @throws Exception
      */
-    ObjectClass getObjectClass( SchemaManager schemaManager, Entry entry, Registries targetRegistries,
String schemaName ) throws LdapException;
-    
-    
+    ObjectClass getObjectClass( SchemaManager schemaManager, Entry entry, Registries targetRegistries,
String schemaName )
+        throws LdapException;
+
+
     /**
      * 
      * @param schemaManager The Schema Manager
@@ -143,9 +148,10 @@ public interface EntityFactory
      * @return
      * @throws LdapException
      */
-    LdapSyntax getSyntax( SchemaManager schemaManager, Entry entry, Registries targetRegistries,
String schemaName ) throws LdapException;
-    
-    
+    LdapSyntax getSyntax( SchemaManager schemaManager, Entry entry, Registries targetRegistries,
String schemaName )
+        throws LdapException;
+
+
     /**
      * Retrieve and load a syntaxChecker class from the DIT.
      * 
@@ -156,8 +162,9 @@ public interface EntityFactory
      * @return the loaded SyntaxChecker
      * @throws LdapException if anything fails during loading
      */
-    SyntaxChecker getSyntaxChecker( SchemaManager schemaManager, Entry entry, Registries
targetRegistries, String schemaName ) throws LdapException;
-    
+    SyntaxChecker getSyntaxChecker( SchemaManager schemaManager, Entry entry, Registries
targetRegistries,
+        String schemaName ) throws LdapException;
+
 
     /**
      * Create a new instance of a SyntaxChecker 
@@ -169,6 +176,6 @@ public interface EntityFactory
      * @return A new instance of a syntaxChecker
      * @throws Exception If the creation has failed
      */
-    SyntaxChecker getSyntaxChecker( SchemaManager schemaManager, SyntaxCheckerDescription
syntaxCheckerDescription, 
+    SyntaxChecker getSyntaxChecker( SchemaManager schemaManager, SyntaxCheckerDescription
syntaxCheckerDescription,
         Registries targetRegistries, String schemaName ) throws Exception;
 }

Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/LdapComparator.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/LdapComparator.java?rev=1235374&r1=1235373&r2=1235374&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/LdapComparator.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/LdapComparator.java
Tue Jan 24 17:44:03 2012
@@ -35,6 +35,7 @@ public abstract class LdapComparator<T> 
     /** The serial version UID */
     private static final long serialVersionUID = 2L;
 
+
     /**
      * Create a new instance of a Comparator
      * @param oid The associated OID

Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/LoadableSchemaObject.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/LoadableSchemaObject.java?rev=1235374&r1=1235373&r2=1235374&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/LoadableSchemaObject.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/LoadableSchemaObject.java
Tue Jan 24 17:44:03 2012
@@ -193,7 +193,7 @@ public abstract class LoadableSchemaObje
     {
         String className = this.getClass().getName();
 
-        if ( Strings.isEmpty(fqcn) )
+        if ( Strings.isEmpty( fqcn ) )
         {
             fqcn = className;
             return true;

Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/MatchingRuleEnum.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/MatchingRuleEnum.java?rev=1235374&r1=1235373&r2=1235374&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/MatchingRuleEnum.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/MatchingRuleEnum.java
Tue Jan 24 17:44:03 2012
@@ -19,6 +19,7 @@
  */
 package org.apache.directory.shared.ldap.model.schema;
 
+
 /**
  * Type safe enum for a matching rule's comparator and normalizer component
  * usage string. This can be take one of the following three values:
@@ -33,17 +34,18 @@ package org.apache.directory.shared.ldap
 public enum MatchingRuleEnum
 {
     /** value for ordering usage */
-    ORDERING( 0 ),
+    ORDERING(0),
 
     /** value for equality usage */
-    EQUALITY( 1 ),
+    EQUALITY(1),
 
     /** value for substring usage */
-    SUBSTRING( 2 );
+    SUBSTRING(2);
 
     /** Stores the integer value of each element of the enumeration */
     private int value;
-    
+
+
     /**
      * Private constructor so no other instances can be created other than the
      * public static constants in this class.
@@ -53,10 +55,10 @@ public enum MatchingRuleEnum
      */
     private MatchingRuleEnum( int value )
     {
-       this.value = value;
+        this.value = value;
     }
 
-    
+
     /**
      * @return The value associated with the current element.
      */
@@ -65,6 +67,7 @@ public enum MatchingRuleEnum
         return value;
     }
 
+
     /**
      * Gets the enumeration type for the usage string regardless of case.
      * 

Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/MatchingRuleUse.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/MatchingRuleUse.java?rev=1235374&r1=1235373&r2=1235374&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/MatchingRuleUse.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/MatchingRuleUse.java
Tue Jan 24 17:44:03 2012
@@ -120,7 +120,7 @@ public class MatchingRuleUse extends Abs
         {
             throw new UnsupportedOperationException( I18n.err( I18n.ERR_04441, getName()
) );
         }
-        
+
         if ( registries != null )
         {
             AttributeTypeRegistry atRegistry = registries.getAttributeTypeRegistry();
@@ -167,7 +167,7 @@ public class MatchingRuleUse extends Abs
         {
             throw new UnsupportedOperationException( I18n.err( I18n.ERR_04441, getName()
) );
         }
-        
+
         if ( !isReadOnly )
         {
             this.applicableAttributeOids = applicableAttributeOids;
@@ -186,7 +186,7 @@ public class MatchingRuleUse extends Abs
         {
             throw new UnsupportedOperationException( I18n.err( I18n.ERR_04441, getName()
) );
         }
-        
+
         if ( !isReadOnly )
         {
             this.applicableAttributes = applicableAttributes;
@@ -213,7 +213,7 @@ public class MatchingRuleUse extends Abs
         {
             throw new UnsupportedOperationException( I18n.err( I18n.ERR_04441, getName()
) );
         }
-        
+
         if ( !isReadOnly && !applicableAttributeOids.contains( oid ) )
         {
             applicableAttributeOids.add( oid );
@@ -232,7 +232,7 @@ public class MatchingRuleUse extends Abs
         {
             throw new UnsupportedOperationException( I18n.err( I18n.ERR_04441, getName()
) );
         }
-        
+
         if ( !isReadOnly && !applicableAttributeOids.contains( attributeType.getOid()
) )
         {
             applicableAttributes.add( attributeType );
@@ -280,7 +280,8 @@ public class MatchingRuleUse extends Abs
      * @see Object#equals(Object)
      */
     @Override
-    @SuppressWarnings("PMD.UnusedLocalVariable") // Remove me when the TODO is fixed 
+    @SuppressWarnings("PMD.UnusedLocalVariable")
+    // Remove me when the TODO is fixed 
     public boolean equals( Object o )
     {
         if ( !super.equals( o ) )

Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/Normalizer.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/Normalizer.java?rev=1235374&r1=1235373&r2=1235374&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/Normalizer.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/Normalizer.java
Tue Jan 24 17:44:03 2012
@@ -30,7 +30,8 @@ import org.apache.directory.shared.ldap.
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
 // super.hashCode is final
-@SuppressWarnings({ "PMD.OverrideBothEqualsAndHashcode", "serial" })
+@SuppressWarnings(
+    { "PMD.OverrideBothEqualsAndHashcode", "serial" })
 public abstract class Normalizer extends LoadableSchemaObject
 {
     /**

Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/NormalizerMappingResolver.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/NormalizerMappingResolver.java?rev=1235374&r1=1235373&r2=1235374&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/NormalizerMappingResolver.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/NormalizerMappingResolver.java
Tue Jan 24 17:44:03 2012
@@ -19,6 +19,7 @@
  */
 package org.apache.directory.shared.ldap.model.schema;
 
+
 import java.util.Map;
 
 

Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/ObjectClassTypeEnum.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/ObjectClassTypeEnum.java?rev=1235374&r1=1235373&r2=1235374&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/ObjectClassTypeEnum.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/ObjectClassTypeEnum.java
Tue Jan 24 17:44:03 2012
@@ -19,6 +19,7 @@
  */
 package org.apache.directory.shared.ldap.model.schema;
 
+
 import org.apache.directory.shared.i18n.I18n;
 
 
@@ -36,13 +37,13 @@ import org.apache.directory.shared.i18n.
 public enum ObjectClassTypeEnum
 {
     /** The enumeration constant value for the abstract objectClasses */
-    ABSTRACT( 0 ),
+    ABSTRACT(0),
 
     /** The enumeration constant value for the auxillary objectClasses */
-    AUXILIARY( 1 ),
+    AUXILIARY(1),
 
     /** The enumeration constant value for the structural objectClasses */
-    STRUCTURAL( 2 );
+    STRUCTURAL(2);
 
     /** The int constant value for the abstract objectClasses */
     public static final int ABSTRACT_VAL = 0;
@@ -51,11 +52,12 @@ public enum ObjectClassTypeEnum
     public static final int AUXILIARY_VAL = 1;
 
     /** The int constant value for the structural objectClasses */
-    public static final int STRUCTURAL_VAL=2;
-    
+    public static final int STRUCTURAL_VAL = 2;
+
     /** Stores the integer value of each element of the enumeration */
     private int value;
-    
+
+
     /**
      * Private constructor so no other instances can be created other than the
      * public static constants in this class.
@@ -70,7 +72,7 @@ public enum ObjectClassTypeEnum
         this.value = value;
     }
 
-    
+
     /**
      * @return The value associated with the current element.
      */
@@ -79,6 +81,7 @@ public enum ObjectClassTypeEnum
         return value;
     }
 
+
     /**
      * Gets the objectClass type enumeration of AUXILIARY, STRUCTURAL, or,
      * ABSTRACT.
@@ -104,6 +107,6 @@ public enum ObjectClassTypeEnum
             return ABSTRACT;
         }
 
-        throw new IllegalArgumentException( I18n.err( I18n.ERR_04327, name) );
+        throw new IllegalArgumentException( I18n.err( I18n.ERR_04327, name ) );
     }
 }



Mime
View raw message