directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1235364 [7/27] - in /directory/shared/trunk: asn1/api/src/main/java/org/apache/directory/shared/asn1/util/ asn1/api/src/test/java/org/apache/directory/shared/asn1/util/ asn1/ber/src/main/java/org/apache/directory/shared/asn1/actions/ asn1/...
Date Tue, 24 Jan 2012 17:27:12 GMT
Modified: directory/shared/trunk/integ/src/test/java/org/apache/directory/shared/ldap/model/name/SchemaAwareAvaSerializationTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/integ/src/test/java/org/apache/directory/shared/ldap/model/name/SchemaAwareAvaSerializationTest.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/integ/src/test/java/org/apache/directory/shared/ldap/model/name/SchemaAwareAvaSerializationTest.java (original)
+++ directory/shared/trunk/integ/src/test/java/org/apache/directory/shared/ldap/model/name/SchemaAwareAvaSerializationTest.java Tue Jan 24 17:27:00 2012
@@ -54,12 +54,13 @@ public class SchemaAwareAvaSerialization
 
     private static SchemaManager schemaManager;
 
+
     @BeforeClass
     public static void setup() throws Exception
     {
         schemaManager = new DefaultSchemaManager();
     }
-    
+
 
     /**
      * Test serialization of a simple ATAV
@@ -89,7 +90,7 @@ public class SchemaAwareAvaSerialization
     @Test
     public void testBinaryAtavSerialization() throws LdapException, IOException, ClassNotFoundException
     {
-        byte[] normValue = Strings.getBytesUtf8("Test");
+        byte[] normValue = Strings.getBytesUtf8( "Test" );
 
         Ava atav = new Ava( schemaManager, "userPKCS12", normValue );
 
@@ -136,7 +137,7 @@ public class SchemaAwareAvaSerialization
     @Test
     public void testNullUpValueSerialization() throws LdapException, IOException, ClassNotFoundException
     {
-        Ava atav = new Ava( schemaManager, "dc", (String)null );
+        Ava atav = new Ava( schemaManager, "dc", ( String ) null );
 
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
         ObjectOutputStream out = new ObjectOutputStream( baos );
@@ -204,7 +205,7 @@ public class SchemaAwareAvaSerialization
     @Test
     public void testBinaryAtavStaticSerialization() throws LdapException, IOException, ClassNotFoundException
     {
-        byte[] upValue = Strings.getBytesUtf8("  Test  ");
+        byte[] upValue = Strings.getBytesUtf8( "  Test  " );
 
         Ava atav = new Ava( schemaManager, "userPKCS12", upValue );
 
@@ -248,10 +249,10 @@ public class SchemaAwareAvaSerialization
     }
 
 
-    @Test( expected = IOException.class )
+    @Test(expected = IOException.class)
     public void testNullNormValueStaticSerialization() throws LdapException, IOException, ClassNotFoundException
     {
-        Ava atav = new Ava( schemaManager, "DC", (String)null );
+        Ava atav = new Ava( schemaManager, "DC", ( String ) null );
 
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
         ObjectOutputStream out = new ObjectOutputStream( baos );
@@ -264,7 +265,7 @@ public class SchemaAwareAvaSerialization
     @Test
     public void testEmptyNormValueStaticSerialization() throws LdapException, IOException, ClassNotFoundException
     {
-        Ava atav = new Ava( schemaManager, "DC", (String)"" );
+        Ava atav = new Ava( schemaManager, "DC", ( String ) "" );
 
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
         ObjectOutputStream out = new ObjectOutputStream( baos );

Modified: directory/shared/trunk/integ/src/test/java/org/apache/directory/shared/ldap/model/name/SchemaAwareDnSerializationTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/integ/src/test/java/org/apache/directory/shared/ldap/model/name/SchemaAwareDnSerializationTest.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/integ/src/test/java/org/apache/directory/shared/ldap/model/name/SchemaAwareDnSerializationTest.java (original)
+++ directory/shared/trunk/integ/src/test/java/org/apache/directory/shared/ldap/model/name/SchemaAwareDnSerializationTest.java Tue Jan 24 17:27:00 2012
@@ -19,6 +19,7 @@
  */
 package org.apache.directory.shared.ldap.model.name;
 
+
 import static org.junit.Assert.assertEquals;
 
 import java.io.ByteArrayInputStream;
@@ -38,6 +39,7 @@ import org.junit.runner.RunWith;
 import com.mycila.junit.concurrent.Concurrency;
 import com.mycila.junit.concurrent.ConcurrentJunitRunner;
 
+
 /**
  * Test the Dn Serialization
  * 
@@ -49,6 +51,7 @@ public class SchemaAwareDnSerializationT
 {
     private static SchemaManager schemaManager;
 
+
     /**
      * Initialize OIDs maps for normalization
      */
@@ -58,17 +61,17 @@ public class SchemaAwareDnSerializationT
         schemaManager = new DefaultSchemaManager();
     }
 
-    
+
     @Test
     public void testDnFullSerialization() throws IOException, LdapException, ClassNotFoundException
     {
         Dn dn1 = new Dn( schemaManager, "gn=john + cn=doe, dc=example, dc=com" );
-        
+
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
         ObjectOutputStream out = new ObjectOutputStream( baos );
 
         dn1.writeExternal( out );
-        
+
         ObjectInputStream in = null;
 
         byte[] data = baos.toByteArray();
@@ -85,12 +88,12 @@ public class SchemaAwareDnSerializationT
     public void testDnEmptySerialization() throws IOException, LdapException, ClassNotFoundException
     {
         Dn dn1 = new Dn( schemaManager );
-        
+
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
         ObjectOutputStream out = new ObjectOutputStream( baos );
 
         dn1.writeExternal( out );
-        
+
         ObjectInputStream in = null;
 
         byte[] data = baos.toByteArray();
@@ -107,12 +110,12 @@ public class SchemaAwareDnSerializationT
     public void testDnSimpleSerialization() throws IOException, LdapException, ClassNotFoundException
     {
         Dn dn1 = new Dn( schemaManager, "Cn = Doe" );
-        
+
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
         ObjectOutputStream out = new ObjectOutputStream( baos );
 
         dn1.writeExternal( out );
-        
+
         ObjectInputStream in = null;
 
         byte[] data = baos.toByteArray();
@@ -125,6 +128,8 @@ public class SchemaAwareDnSerializationT
         assertEquals( "Cn = Doe", dn2.getName() );
         assertEquals( "2.5.4.3=doe", dn2.getNormName() );
     }
+
+
     /**
      * Test the serialization of a Dn
      *
@@ -143,7 +148,7 @@ public class SchemaAwareDnSerializationT
 
         byte[] data = baos.toByteArray();
         ObjectInputStream in = new ObjectInputStream( new ByteArrayInputStream( data ) );
-        
+
         Dn dn2 = new Dn( schemaManager );
         dn2.readExternal( in );
 
@@ -163,7 +168,7 @@ public class SchemaAwareDnSerializationT
 
         byte[] data = baos.toByteArray();
         ObjectInputStream in = new ObjectInputStream( new ByteArrayInputStream( data ) );
-        
+
         Dn dn2 = new Dn( schemaManager );
         dn2.readExternal( in );
 
@@ -189,7 +194,7 @@ public class SchemaAwareDnSerializationT
 
         byte[] data = baos.toByteArray();
         ObjectInputStream in = new ObjectInputStream( new ByteArrayInputStream( data ) );
-        
+
         Dn dn2 = new Dn( schemaManager );
         dn2.readExternal( in );
 
@@ -198,7 +203,8 @@ public class SchemaAwareDnSerializationT
 
 
     @Ignore
-    @Test public void testSerializationPerfs() throws Exception
+    @Test
+    public void testSerializationPerfs() throws Exception
     {
         Dn dn = new Dn( "ou= Some   People   + dc=  And   Some anImAls,dc = eXample,dc= cOm" );
         dn.apply( schemaManager );
@@ -221,7 +227,7 @@ public class SchemaAwareDnSerializationT
 
         long t1 = System.currentTimeMillis();
 
-        System.out.println( "delta :" + ( t1 - t0) );
+        System.out.println( "delta :" + ( t1 - t0 ) );
 
         long t2 = System.currentTimeMillis();
 
@@ -243,11 +249,12 @@ public class SchemaAwareDnSerializationT
 
         long t3 = System.currentTimeMillis();
 
-        System.out.println( "delta :" + ( t3 - t2) );
+        System.out.println( "delta :" + ( t3 - t2 ) );
 
         //assertEquals( dn, DnSerializer.deserialize( in ) );
     }
 
+
     @Test
     public void testStaticSerializeEmptyDN() throws Exception
     {
@@ -260,7 +267,7 @@ public class SchemaAwareDnSerializationT
 
         byte[] data = baos.toByteArray();
         ObjectInputStream in = new ObjectInputStream( new ByteArrayInputStream( data ) );
-        
+
         Dn dn2 = new Dn( schemaManager );
         dn2.readExternal( in );
 

Modified: directory/shared/trunk/integ/src/test/java/org/apache/directory/shared/ldap/model/name/SchemaAwareRdnSerializationTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/integ/src/test/java/org/apache/directory/shared/ldap/model/name/SchemaAwareRdnSerializationTest.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/integ/src/test/java/org/apache/directory/shared/ldap/model/name/SchemaAwareRdnSerializationTest.java (original)
+++ directory/shared/trunk/integ/src/test/java/org/apache/directory/shared/ldap/model/name/SchemaAwareRdnSerializationTest.java Tue Jan 24 17:27:00 2012
@@ -19,6 +19,7 @@
  */
 package org.apache.directory.shared.ldap.model.name;
 
+
 import static org.junit.Assert.assertEquals;
 
 import java.io.ByteArrayInputStream;
@@ -38,6 +39,7 @@ import org.junit.runner.RunWith;
 import com.mycila.junit.concurrent.Concurrency;
 import com.mycila.junit.concurrent.ConcurrentJunitRunner;
 
+
 /**
  * Test the Rdn Serialization
  * 
@@ -49,6 +51,7 @@ public class SchemaAwareRdnSerialization
 {
     private static SchemaManager schemaManager;
 
+
     /**
      * Initialize OIDs maps for normalization
      */
@@ -58,17 +61,17 @@ public class SchemaAwareRdnSerialization
         schemaManager = new DefaultSchemaManager();
     }
 
-    
+
     @Test
     public void testRdnFullSerialization() throws IOException, LdapException, ClassNotFoundException
     {
         Rdn rdn1 = new Rdn( schemaManager, "gn=john + cn=doe" );
-        
+
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
         ObjectOutputStream out = new ObjectOutputStream( baos );
 
         rdn1.writeExternal( out );
-        
+
         ObjectInputStream in = null;
 
         byte[] data = baos.toByteArray();
@@ -85,12 +88,12 @@ public class SchemaAwareRdnSerialization
     public void testRdnEmptySerialization() throws IOException, LdapException, ClassNotFoundException
     {
         Rdn rdn1 = new Rdn( schemaManager );
-        
+
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
         ObjectOutputStream out = new ObjectOutputStream( baos );
 
         rdn1.writeExternal( out );
-        
+
         ObjectInputStream in = null;
 
         byte[] data = baos.toByteArray();
@@ -107,12 +110,12 @@ public class SchemaAwareRdnSerialization
     public void testRdnSimpleSerialization() throws IOException, LdapException, ClassNotFoundException
     {
         Rdn rdn1 = new Rdn( schemaManager, "cn=Doe" );
-        
+
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
         ObjectOutputStream out = new ObjectOutputStream( baos );
 
         rdn1.writeExternal( out );
-        
+
         ObjectInputStream in = null;
 
         byte[] data = baos.toByteArray();

Modified: directory/shared/trunk/integ/src/test/java/org/apache/directory/shared/ldap/model/name/SchemaAwareRdnTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/integ/src/test/java/org/apache/directory/shared/ldap/model/name/SchemaAwareRdnTest.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/integ/src/test/java/org/apache/directory/shared/ldap/model/name/SchemaAwareRdnTest.java (original)
+++ directory/shared/trunk/integ/src/test/java/org/apache/directory/shared/ldap/model/name/SchemaAwareRdnTest.java Tue Jan 24 17:27:00 2012
@@ -56,13 +56,14 @@ public class SchemaAwareRdnTest
 {
     /** A null schemaManager used in tests */
     private static SchemaManager schemaManager;
-    
+
+
     @BeforeClass
     public static void setup() throws Exception
     {
         schemaManager = new DefaultSchemaManager();
     }
-    
+
 
     /**
      * Test a null Rdn
@@ -230,9 +231,9 @@ public class SchemaAwareRdnTest
     @Test
     public void testRdnPairCharAttributeValue() throws LdapException
     {
-        String rdn = Strings.utf8ToString(new byte[]
-                {'l', '=', '\\', ',', '=', '\\', '+', '\\', '<', '\\', '>', '#', '\\', ';', '\\', '\\', '\\', '"', '\\',
-                        'C', '3', '\\', 'A', '9'});
+        String rdn = Strings.utf8ToString( new byte[]
+            { 'l', '=', '\\', ',', '=', '\\', '+', '\\', '<', '\\', '>', '#', '\\', ';', '\\', '\\', '\\', '"', '\\',
+                'C', '3', '\\', 'A', '9' } );
         assertEquals( "2.5.4.7=\\,=\\+\\<\\>#\\;\\\\\\\"\u00E9", new Rdn( schemaManager, rdn ).getNormName() );
     }
 
@@ -246,6 +247,7 @@ public class SchemaAwareRdnTest
         assertEquals( "2.5.4.36=#0010A0AAFF", new Rdn( schemaManager, "userCertificate = #0010A0AAFF" ).getNormName() );
     }
 
+
     /**
      * test exception from illegal hexString attribute value : cn=#zz.
      */
@@ -263,6 +265,7 @@ public class SchemaAwareRdnTest
         }
     }
 
+
     /**
      * test a simple Rdn with quoted attribute value : cn = "quoted \"value"
      * 
@@ -285,7 +288,7 @@ public class SchemaAwareRdnTest
     {
         Rdn rdn = new Rdn( schemaManager, "CN", "B" );
 
-        Rdn rdnClone = (Rdn) rdn.clone();
+        Rdn rdnClone = ( Rdn ) rdn.clone();
 
         rdn = new Rdn( schemaManager, "cn=d" );
 
@@ -317,10 +320,10 @@ public class SchemaAwareRdnTest
     {
         Rdn rdn = new Rdn( schemaManager, "cn = b + sn = bb" );
 
-        Rdn rdnClone = (Rdn) rdn.clone();
+        Rdn rdnClone = ( Rdn ) rdn.clone();
 
         rdn.clear();
-         rdn = new Rdn( schemaManager, "l=d" );
+        rdn = new Rdn( schemaManager, "l=d" );
 
         assertEquals( "b", rdnClone.getValue( "2.5.4.3" ) );
         assertEquals( "bb", rdnClone.getValue( "SN" ) );
@@ -427,20 +430,20 @@ public class SchemaAwareRdnTest
     public void testCompareSecondAtav() throws LdapException
     {
         // the second ATAV differs
-        Rdn rdn1 = new Rdn( schemaManager,  " cn = b + sn = d " );
-        Rdn rdn2 = new Rdn( schemaManager,  " cn = b + sn = y " );
+        Rdn rdn1 = new Rdn( schemaManager, " cn = b + sn = d " );
+        Rdn rdn2 = new Rdn( schemaManager, " cn = b + sn = y " );
         assertFalse( rdn1.equals( rdn2 ) );
         assertFalse( rdn2.equals( rdn1 ) );
 
         // the third ATAV differs
-        Rdn rdn3 = new Rdn( schemaManager,  " cn = b + sn = d + l = f " );
-        Rdn rdn4 = new Rdn( schemaManager,  " cn = b + sn = d + l = y " );
+        Rdn rdn3 = new Rdn( schemaManager, " cn = b + sn = d + l = f " );
+        Rdn rdn4 = new Rdn( schemaManager, " cn = b + sn = d + l = y " );
         assertFalse( rdn3.equals( rdn4 ) );
         assertFalse( rdn4.equals( rdn3 ) );
 
         // the second ATAV differs in value only
-        Rdn rdn5 = new Rdn( schemaManager,  " cn = b + sn = c " );
-        Rdn rdn6 = new Rdn( schemaManager,  " cn = b + sn = y " );
+        Rdn rdn5 = new Rdn( schemaManager, " cn = b + sn = c " );
+        Rdn rdn6 = new Rdn( schemaManager, " cn = b + sn = y " );
         assertFalse( rdn5.equals( rdn6 ) );
         assertFalse( rdn6.equals( rdn5 ) );
     }
@@ -456,17 +459,17 @@ public class SchemaAwareRdnTest
     @Test
     public void testCompareIndependentFromOrder() throws LdapException
     {
-        Rdn rdn1 = new Rdn( schemaManager,  " cn = b + sn = d " );
-        Rdn rdn2 = new Rdn( schemaManager,  " sn = d + cn = b " );
+        Rdn rdn1 = new Rdn( schemaManager, " cn = b + sn = d " );
+        Rdn rdn2 = new Rdn( schemaManager, " sn = d + cn = b " );
         assertTrue( rdn1.equals( rdn2 ) );
 
-        rdn1 = new Rdn( schemaManager,  " cn = b + sn = e " );
-        rdn2 = new Rdn( schemaManager,  " sn = d + cn = b " );
+        rdn1 = new Rdn( schemaManager, " cn = b + sn = e " );
+        rdn2 = new Rdn( schemaManager, " sn = d + cn = b " );
         assertFalse( rdn1.equals( rdn2 ) );
         assertFalse( rdn2.equals( rdn1 ) );
 
-        rdn1 = new Rdn( schemaManager,  " cn = b + sn = d " );
-        rdn2 = new Rdn( schemaManager,  " l = f + gn = h " );
+        rdn1 = new Rdn( schemaManager, " cn = b + sn = d " );
+        rdn2 = new Rdn( schemaManager, " l = f + gn = h " );
         assertFalse( rdn1.equals( rdn2 ) );
         assertFalse( rdn2.equals( rdn1 ) );
     }
@@ -481,8 +484,8 @@ public class SchemaAwareRdnTest
     @Test
     public void testCompareInvertableNC2NC() throws LdapException
     {
-        Rdn rdn1 = new Rdn( schemaManager,  " cn = b " );
-        Rdn rdn2 = new Rdn( schemaManager,  " cn = c " );
+        Rdn rdn1 = new Rdn( schemaManager, " cn = b " );
+        Rdn rdn2 = new Rdn( schemaManager, " cn = c " );
         assertFalse( rdn1.equals( rdn2 ) );
         assertFalse( rdn2.equals( rdn1 ) );
 
@@ -498,8 +501,8 @@ public class SchemaAwareRdnTest
     @Test
     public void testCompareInvertableNCS2NCSDifferentValues() throws LdapException
     {
-        Rdn rdn1 = new Rdn( schemaManager,  " cn = b + sn = c " );
-        Rdn rdn2 = new Rdn( schemaManager,  " cn = b + sn = y " );
+        Rdn rdn1 = new Rdn( schemaManager, " cn = b + sn = c " );
+        Rdn rdn2 = new Rdn( schemaManager, " cn = b + sn = y " );
         assertFalse( rdn1.equals( rdn2 ) );
         assertFalse( rdn2.equals( rdn1 ) );
     }
@@ -514,8 +517,8 @@ public class SchemaAwareRdnTest
     @Test
     public void testCompareInvertableNCS2NCSDifferentTypes() throws LdapException
     {
-        Rdn rdn1 = new Rdn( schemaManager,  " cn = b + sn = d  " );
-        Rdn rdn2 = new Rdn( schemaManager,  " l = f + gn = h " );
+        Rdn rdn1 = new Rdn( schemaManager, " cn = b + sn = d  " );
+        Rdn rdn2 = new Rdn( schemaManager, " l = f + gn = h " );
         assertFalse( rdn1.equals( rdn2 ) );
         assertFalse( rdn2.equals( rdn1 ) );
     }
@@ -530,8 +533,8 @@ public class SchemaAwareRdnTest
     @Test
     public void testCompareInvertableNCS2NCSUnordered() throws LdapException
     {
-        Rdn rdn1 = new Rdn( schemaManager,  " sn = d + cn = b " );
-        Rdn rdn2 = new Rdn( schemaManager,  " cn = b + l = f " );
+        Rdn rdn1 = new Rdn( schemaManager, " sn = d + cn = b " );
+        Rdn rdn2 = new Rdn( schemaManager, " cn = b + l = f " );
         assertFalse( rdn1.equals( rdn2 ) );
         assertFalse( rdn2.equals( rdn1 ) );
     }
@@ -545,7 +548,7 @@ public class SchemaAwareRdnTest
     @Test
     public void testRDNCompareToNullRdn() throws LdapException
     {
-        Rdn rdn1 = new Rdn( schemaManager,  " cn = b " );
+        Rdn rdn1 = new Rdn( schemaManager, " cn = b " );
 
         assertFalse( rdn1.equals( null ) );
     }
@@ -559,8 +562,8 @@ public class SchemaAwareRdnTest
     @Test
     public void testRDNCompareToNC2NC() throws LdapException
     {
-        Rdn rdn1 = new Rdn( schemaManager,  " cn = b " );
-        Rdn rdn2 = new Rdn( schemaManager,  " cn = b " );
+        Rdn rdn1 = new Rdn( schemaManager, " cn = b " );
+        Rdn rdn2 = new Rdn( schemaManager, " cn = b " );
 
         assertTrue( rdn1.equals( rdn2 ) );
     }
@@ -574,8 +577,8 @@ public class SchemaAwareRdnTest
     @Test
     public void testRDNCompareToNC2NCUperCase() throws LdapException
     {
-        Rdn rdn1 = new Rdn( schemaManager,  " cn = b " );
-        Rdn rdn2 = new Rdn( schemaManager,  " CN = b " );
+        Rdn rdn1 = new Rdn( schemaManager, " cn = b " );
+        Rdn rdn2 = new Rdn( schemaManager, " CN = b " );
 
         assertTrue( rdn1.equals( rdn2 ) );
     }
@@ -589,8 +592,8 @@ public class SchemaAwareRdnTest
     @Test
     public void testRDNCompareToNC2NCNotEquals() throws LdapException
     {
-        Rdn rdn1 = new Rdn( schemaManager,  " cn = b " );
-        Rdn rdn2 = new Rdn( schemaManager,  " CN = d " );
+        Rdn rdn1 = new Rdn( schemaManager, " cn = b " );
+        Rdn rdn2 = new Rdn( schemaManager, " CN = d " );
 
         assertFalse( rdn1.equals( rdn2 ) );
     }
@@ -605,7 +608,7 @@ public class SchemaAwareRdnTest
     @Test
     public void testGetValue() throws LdapException
     {
-        Rdn rdn = new Rdn( schemaManager,  " cn = b + sn = f + gn = h + l = d " );
+        Rdn rdn = new Rdn( schemaManager, " cn = b + sn = f + gn = h + l = d " );
 
         assertEquals( "b", rdn.getNormValue().getString() );
     }
@@ -620,7 +623,7 @@ public class SchemaAwareRdnTest
     @Test
     public void testGetType() throws LdapException
     {
-        Rdn rdn = new Rdn( schemaManager,  " cn = b + sn = f + gn = h + l = d " );
+        Rdn rdn = new Rdn( schemaManager, " cn = b + sn = f + gn = h + l = d " );
 
         assertEquals( "2.5.4.3", rdn.getNormType() );
     }
@@ -634,7 +637,7 @@ public class SchemaAwareRdnTest
     @Test
     public void testGetSize() throws LdapException
     {
-        Rdn rdn = new Rdn( schemaManager,  " cn = b + sn = f + gn = h + l = d " );
+        Rdn rdn = new Rdn( schemaManager, " cn = b + sn = f + gn = h + l = d " );
 
         assertEquals( 4, rdn.size() );
     }
@@ -661,27 +664,27 @@ public class SchemaAwareRdnTest
     @Test
     public void testEquals() throws LdapException
     {
-        Rdn rdn = new Rdn( schemaManager,  "cn=b + sn=d + gn=f" );
+        Rdn rdn = new Rdn( schemaManager, "cn=b + sn=d + gn=f" );
 
         assertFalse( rdn.equals( null ) );
         assertFalse( rdn.equals( "test" ) );
-        assertFalse( rdn.equals( new Rdn( schemaManager,  "cn=c + sn=d + gn=f" ) ) );
-        assertFalse( rdn.equals( new Rdn( schemaManager,  "cn=b" ) ) );
-        assertTrue( rdn.equals( new Rdn( schemaManager,  "cn=b + sn=d + gn=f" ) ) );
-        assertTrue( rdn.equals( new Rdn( schemaManager,  "cn=b + SN=d + GN=f" ) ) );
-        assertTrue( rdn.equals( new Rdn( schemaManager,  "sn=d + gn=f + CN=b" ) ) );
+        assertFalse( rdn.equals( new Rdn( schemaManager, "cn=c + sn=d + gn=f" ) ) );
+        assertFalse( rdn.equals( new Rdn( schemaManager, "cn=b" ) ) );
+        assertTrue( rdn.equals( new Rdn( schemaManager, "cn=b + sn=d + gn=f" ) ) );
+        assertTrue( rdn.equals( new Rdn( schemaManager, "cn=b + SN=d + GN=f" ) ) );
+        assertTrue( rdn.equals( new Rdn( schemaManager, "sn=d + gn=f + CN=b" ) ) );
     }
 
 
     @Test
     public void testUnescapeValueHexa()
     {
-        byte[] res = ( byte[] ) Rdn.unescapeValue("#fF");
+        byte[] res = ( byte[] ) Rdn.unescapeValue( "#fF" );
 
-        assertEquals( "0xFF ", Strings.dumpBytes(res) );
+        assertEquals( "0xFF ", Strings.dumpBytes( res ) );
 
-        res = ( byte[] ) Rdn.unescapeValue("#0123456789aBCDEF");
-        assertEquals( "0x01 0x23 0x45 0x67 0x89 0xAB 0xCD 0xEF ", Strings.dumpBytes(res) );
+        res = ( byte[] ) Rdn.unescapeValue( "#0123456789aBCDEF" );
+        assertEquals( "0x01 0x23 0x45 0x67 0x89 0xAB 0xCD 0xEF ", Strings.dumpBytes( res ) );
     }
 
 
@@ -690,7 +693,7 @@ public class SchemaAwareRdnTest
     {
         try
         {
-            Rdn.unescapeValue("#fF1");
+            Rdn.unescapeValue( "#fF1" );
             fail(); // Should not happen
         }
         catch ( IllegalArgumentException iae )
@@ -703,7 +706,7 @@ public class SchemaAwareRdnTest
     @Test
     public void testUnescapeValueString()
     {
-        String res = ( String ) Rdn.unescapeValue("azerty");
+        String res = ( String ) Rdn.unescapeValue( "azerty" );
 
         assertEquals( "azerty", res );
     }
@@ -712,7 +715,7 @@ public class SchemaAwareRdnTest
     @Test
     public void testUnescapeValueStringSpecial()
     {
-        String res = ( String ) Rdn.unescapeValue("\\\\\\#\\,\\+\\;\\<\\>\\=\\\"\\ ");
+        String res = ( String ) Rdn.unescapeValue( "\\\\\\#\\,\\+\\;\\<\\>\\=\\\"\\ " );
 
         assertEquals( "\\#,+;<>=\" ", res );
     }
@@ -721,7 +724,7 @@ public class SchemaAwareRdnTest
     @Test
     public void testUnescapeValueStringWithSpaceInTheMiddle()
     {
-        String res = ( String ) Rdn.unescapeValue("a b");
+        String res = ( String ) Rdn.unescapeValue( "a b" );
 
         assertEquals( "a b", res );
     }
@@ -730,7 +733,7 @@ public class SchemaAwareRdnTest
     @Test
     public void testUnescapeValueStringWithSpaceInAtTheBeginning()
     {
-        String res = ( String ) Rdn.unescapeValue("\\ a b");
+        String res = ( String ) Rdn.unescapeValue( "\\ a b" );
 
         assertEquals( " a b", res );
     }
@@ -739,34 +742,34 @@ public class SchemaAwareRdnTest
     @Test
     public void testUnescapeValueStringWithSpaceInAtTheEnd()
     {
-        String res = ( String ) Rdn.unescapeValue("a b\\ ");
+        String res = ( String ) Rdn.unescapeValue( "a b\\ " );
 
         assertEquals( "a b ", res );
     }
-    
-    
+
+
     @Test
     public void testUnescapeValueStringWithPoundInTheMiddle()
     {
-        String res = ( String ) Rdn.unescapeValue("a#b");
+        String res = ( String ) Rdn.unescapeValue( "a#b" );
 
         assertEquals( "a#b", res );
     }
-    
-    
+
+
     @Test
     public void testUnescapeValueStringWithPoundAtTheEnd()
     {
-        String res = ( String ) Rdn.unescapeValue("ab#");
+        String res = ( String ) Rdn.unescapeValue( "ab#" );
 
         assertEquals( "ab#", res );
     }
-    
-    
+
+
     @Test
     public void testEscapeValueString()
     {
-        String res = Rdn.escapeValue(Strings.getBytesUtf8("azerty"));
+        String res = Rdn.escapeValue( Strings.getBytesUtf8( "azerty" ) );
 
         assertEquals( "azerty", res );
     }
@@ -775,7 +778,7 @@ public class SchemaAwareRdnTest
     @Test
     public void testEscapeValueStringSpecial()
     {
-        String res = Rdn.escapeValue(Strings.getBytesUtf8("\\#,+;<>=\" "));
+        String res = Rdn.escapeValue( Strings.getBytesUtf8( "\\#,+;<>=\" " ) );
 
         assertEquals( "\\\\#\\,\\+\\;\\<\\>\\=\\\"\\ ", res );
     }
@@ -784,8 +787,8 @@ public class SchemaAwareRdnTest
     @Test
     public void testEscapeValueNumeric()
     {
-        String res = Rdn.escapeValue(new byte[]
-                {'-', 0x00, '-', 0x1F, '-', 0x7F, '-'});
+        String res = Rdn.escapeValue( new byte[]
+            { '-', 0x00, '-', 0x1F, '-', 0x7F, '-' } );
 
         assertEquals( "-\\00-\\1F-\\7F-", res );
     }
@@ -794,8 +797,8 @@ public class SchemaAwareRdnTest
     @Test
     public void testEscapeValueMix()
     {
-        String res = Rdn.escapeValue(new byte[]
-                {'\\', 0x00, '-', '+', '#', 0x7F, '-'});
+        String res = Rdn.escapeValue( new byte[]
+            { '\\', 0x00, '-', '+', '#', 0x7F, '-' } );
 
         assertEquals( "\\\\\\00-\\+#\\7F-", res );
     }
@@ -804,7 +807,7 @@ public class SchemaAwareRdnTest
     @Test
     public void testDIRSERVER_703() throws LdapException
     {
-        Rdn rdn = new Rdn( schemaManager,  "cn=Kate Bush+sn=Bush" );
+        Rdn rdn = new Rdn( schemaManager, "cn=Kate Bush+sn=Bush" );
         assertEquals( "cn=Kate Bush+sn=Bush", rdn.getName() );
     }
 
@@ -812,7 +815,7 @@ public class SchemaAwareRdnTest
     @Test
     public void testMultiValuedIterator() throws LdapException
     {
-        Rdn rdn = new Rdn( schemaManager,  "cn=Kate Bush+sn=Bush" );
+        Rdn rdn = new Rdn( schemaManager, "cn=Kate Bush+sn=Bush" );
         Iterator<Ava> iterator = rdn.iterator();
         assertNotNull( iterator );
         assertTrue( iterator.hasNext() );
@@ -826,7 +829,7 @@ public class SchemaAwareRdnTest
     @Test
     public void testSingleValuedIterator() throws LdapException
     {
-        Rdn rdn = new Rdn( schemaManager,  "cn=Kate Bush" );
+        Rdn rdn = new Rdn( schemaManager, "cn=Kate Bush" );
         Iterator<Ava> iterator = rdn.iterator();
         assertNotNull( iterator );
         assertTrue( iterator.hasNext() );
@@ -848,7 +851,7 @@ public class SchemaAwareRdnTest
     @Test
     public void testRdnWithSpaces() throws LdapException
     {
-        Rdn rdn = new Rdn( schemaManager,  "cn=a\\ b\\ c" );
+        Rdn rdn = new Rdn( schemaManager, "cn=a\\ b\\ c" );
         assertEquals( "2.5.4.3=a b c", rdn.getNormName() );
     }
 
@@ -856,14 +859,14 @@ public class SchemaAwareRdnTest
     @Test
     public void testEscapedSpaceInValue() throws LdapException
     {
-        Rdn rdn1 = new Rdn( schemaManager,  "cn=a b c" );
-        Rdn rdn2 = new Rdn( schemaManager,  "cn=a\\ b\\ c" );
+        Rdn rdn1 = new Rdn( schemaManager, "cn=a b c" );
+        Rdn rdn2 = new Rdn( schemaManager, "cn=a\\ b\\ c" );
         assertEquals( "2.5.4.3=a b c", rdn1.getNormName() );
         assertEquals( "2.5.4.3=a b c", rdn2.getNormName() );
         assertTrue( rdn1.equals( rdn2 ) );
 
-        Rdn rdn3 = new Rdn( schemaManager,  "cn=\\ a b c\\ " );
-        Rdn rdn4 = new Rdn( schemaManager,  "cn=\\ a\\ b\\ c\\ " );
+        Rdn rdn3 = new Rdn( schemaManager, "cn=\\ a b c\\ " );
+        Rdn rdn4 = new Rdn( schemaManager, "cn=\\ a\\ b\\ c\\ " );
         assertEquals( "2.5.4.3=a b c", rdn3.getNormName() );
         assertEquals( "cn=\\ a b c\\ ", rdn3.getName() );
         assertEquals( "2.5.4.3=a b c", rdn4.getNormName() );
@@ -875,14 +878,14 @@ public class SchemaAwareRdnTest
     @Test
     public void testEscapedHashInValue() throws LdapException
     {
-        Rdn rdn1 = new Rdn( schemaManager,  "cn=a#b#c" );
-        Rdn rdn2 = new Rdn( schemaManager,  "cn=a\\#b\\#c" );
+        Rdn rdn1 = new Rdn( schemaManager, "cn=a#b#c" );
+        Rdn rdn2 = new Rdn( schemaManager, "cn=a\\#b\\#c" );
         assertEquals( "2.5.4.3=a#b#c", rdn1.getNormName() );
         assertEquals( "2.5.4.3=a#b#c", rdn2.getNormName() );
         assertTrue( rdn1.equals( rdn2 ) );
 
-        Rdn rdn3 = new Rdn( schemaManager,  "cn=\\#a#b#c\\#" );
-        Rdn rdn4 = new Rdn( schemaManager,  "cn=\\#a\\#b\\#c\\#" );
+        Rdn rdn3 = new Rdn( schemaManager, "cn=\\#a#b#c\\#" );
+        Rdn rdn4 = new Rdn( schemaManager, "cn=\\#a\\#b\\#c\\#" );
         assertEquals( "2.5.4.3=\\#a#b#c#", rdn3.getNormName() );
         assertEquals( "2.5.4.3=\\#a#b#c#", rdn4.getNormName() );
         assertTrue( rdn3.equals( rdn4 ) );
@@ -893,27 +896,27 @@ public class SchemaAwareRdnTest
     public void testEscapedAttributeValue()
     {
         // space doesn't need to be escaped in the middle of a string
-        assertEquals( "a b", Rdn.escapeValue("a b") );
-        assertEquals( "a b c", Rdn.escapeValue("a b c") );
-        assertEquals( "a b c d", Rdn.escapeValue("a b c d") );
+        assertEquals( "a b", Rdn.escapeValue( "a b" ) );
+        assertEquals( "a b c", Rdn.escapeValue( "a b c" ) );
+        assertEquals( "a b c d", Rdn.escapeValue( "a b c d" ) );
 
         // space must be escaped at the beginning and the end of a string
-        assertEquals( "\\ a b", Rdn.escapeValue(" a b") );
-        assertEquals( "a b\\ ", Rdn.escapeValue("a b ") );
-        assertEquals( "\\ a b\\ ", Rdn.escapeValue(" a b ") );
-        assertEquals( "\\  a  b \\ ", Rdn.escapeValue("  a  b  ") );
+        assertEquals( "\\ a b", Rdn.escapeValue( " a b" ) );
+        assertEquals( "a b\\ ", Rdn.escapeValue( "a b " ) );
+        assertEquals( "\\ a b\\ ", Rdn.escapeValue( " a b " ) );
+        assertEquals( "\\  a  b \\ ", Rdn.escapeValue( "  a  b  " ) );
 
         // hash doesn't need to be escaped in the middle and the end of a string
-        assertEquals( "a#b", Rdn.escapeValue("a#b") );
-        assertEquals( "a#b#", Rdn.escapeValue("a#b#") );
-        assertEquals( "a#b#c", Rdn.escapeValue("a#b#c") );
-        assertEquals( "a#b#c#", Rdn.escapeValue("a#b#c#") );
-        assertEquals( "a#b#c#d", Rdn.escapeValue("a#b#c#d") );
-        assertEquals( "a#b#c#d#", Rdn.escapeValue("a#b#c#d#") );
+        assertEquals( "a#b", Rdn.escapeValue( "a#b" ) );
+        assertEquals( "a#b#", Rdn.escapeValue( "a#b#" ) );
+        assertEquals( "a#b#c", Rdn.escapeValue( "a#b#c" ) );
+        assertEquals( "a#b#c#", Rdn.escapeValue( "a#b#c#" ) );
+        assertEquals( "a#b#c#d", Rdn.escapeValue( "a#b#c#d" ) );
+        assertEquals( "a#b#c#d#", Rdn.escapeValue( "a#b#c#d#" ) );
 
         // hash must be escaped at the beginning of a string
-        assertEquals( "\\#a#b", Rdn.escapeValue("#a#b") );
-        assertEquals( "\\##a#b", Rdn.escapeValue("##a#b") );
+        assertEquals( "\\#a#b", Rdn.escapeValue( "#a#b" ) );
+        assertEquals( "\\##a#b", Rdn.escapeValue( "##a#b" ) );
     }
 
 
@@ -925,7 +928,7 @@ public class SchemaAwareRdnTest
     @Test
     public void testEmptyRDNSerialization() throws LdapException, IOException, ClassNotFoundException
     {
-        Rdn rdn = new Rdn( schemaManager,  "" );
+        Rdn rdn = new Rdn( schemaManager, "" );
 
         rdn.normalize();
 
@@ -939,7 +942,7 @@ public class SchemaAwareRdnTest
         byte[] data = baos.toByteArray();
         in = new ObjectInputStream( new ByteArrayInputStream( data ) );
 
-        Rdn rdn2 = (Rdn)in.readObject();
+        Rdn rdn2 = ( Rdn ) in.readObject();
 
         assertEquals( rdn, rdn2 );
     }
@@ -962,7 +965,7 @@ public class SchemaAwareRdnTest
         byte[] data = baos.toByteArray();
         in = new ObjectInputStream( new ByteArrayInputStream( data ) );
 
-        Rdn rdn2 = (Rdn)in.readObject();
+        Rdn rdn2 = ( Rdn ) in.readObject();
 
         assertEquals( rdn, rdn2 );
     }
@@ -974,7 +977,7 @@ public class SchemaAwareRdnTest
     @Test
     public void testSimpleRdnSerialization() throws LdapException, IOException, ClassNotFoundException
     {
-        Rdn rdn = new Rdn( schemaManager,  "cn=b" );
+        Rdn rdn = new Rdn( schemaManager, "cn=b" );
         rdn.normalize();
 
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
@@ -1000,7 +1003,7 @@ public class SchemaAwareRdnTest
     @Test
     public void testSimpleRdn2Serialization() throws LdapException, IOException, ClassNotFoundException
     {
-        Rdn rdn = new Rdn( schemaManager,  " CN  = DEF " );
+        Rdn rdn = new Rdn( schemaManager, " CN  = DEF " );
         rdn.normalize();
 
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
@@ -1026,7 +1029,7 @@ public class SchemaAwareRdnTest
     @Test
     public void testSimpleRdnNoValueSerialization() throws LdapException, IOException, ClassNotFoundException
     {
-        Rdn rdn = new Rdn( schemaManager,  " CN  =" );
+        Rdn rdn = new Rdn( schemaManager, " CN  =" );
         rdn.normalize();
 
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
@@ -1052,7 +1055,7 @@ public class SchemaAwareRdnTest
     @Test
     public void testSimpleRdnOneValueSerialization() throws LdapException, IOException, ClassNotFoundException
     {
-        Rdn rdn = new Rdn( schemaManager,  " CN  = def " );
+        Rdn rdn = new Rdn( schemaManager, " CN  = def " );
         rdn.normalize();
 
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
@@ -1078,7 +1081,7 @@ public class SchemaAwareRdnTest
     @Test
     public void testSimpleRdnThreeValuesSerialization() throws LdapException, IOException, ClassNotFoundException
     {
-        Rdn rdn = new Rdn( schemaManager,  " CN = a + SN = b + GN = c " );
+        Rdn rdn = new Rdn( schemaManager, " CN = a + SN = b + GN = c " );
         rdn.normalize();
 
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
@@ -1105,7 +1108,7 @@ public class SchemaAwareRdnTest
     public void testSimpleRdnThreeValuesUnorderedSerialization() throws LdapException, IOException,
         ClassNotFoundException
     {
-        Rdn rdn = new Rdn( schemaManager,  " CN = b + SN = a + GN = c " );
+        Rdn rdn = new Rdn( schemaManager, " CN = b + SN = a + GN = c " );
         rdn.normalize();
 
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
@@ -1131,10 +1134,10 @@ public class SchemaAwareRdnTest
     @Test
     public void testRdnWithEmptyValue() throws LdapException
     {
-        assertTrue( Rdn.isValid("cn=") );
+        assertTrue( Rdn.isValid( "cn=" ) );
         assertTrue( Rdn.isValid( "cn=\"\"" ) );
-        assertEquals( "2.5.4.3=", new Rdn( schemaManager,  "cn=\"\"" ).getNormName() );
-        assertEquals( "2.5.4.3=", new Rdn( schemaManager,  "cn=" ).getNormName() );
+        assertEquals( "2.5.4.3=", new Rdn( schemaManager, "cn=\"\"" ).getNormName() );
+        assertEquals( "2.5.4.3=", new Rdn( schemaManager, "cn=" ).getNormName() );
     }
 
 
@@ -1145,14 +1148,14 @@ public class SchemaAwareRdnTest
     public void testRdnWithEscapedComa() throws LdapException
     {
         assertTrue( Rdn.isValid( "cn=b\\,c" ) );
-        assertEquals( "2.5.4.3=b\\,c", new Rdn( schemaManager,  "cn=b\\,c" ).getNormName() );
+        assertEquals( "2.5.4.3=b\\,c", new Rdn( schemaManager, "cn=b\\,c" ).getNormName() );
 
         assertTrue( Rdn.isValid( "cn=\"b,c\"" ) );
-        assertEquals( "2.5.4.3=b\\,c", new Rdn( schemaManager,  "cn=\"b,c\"" ).getNormName() );
-        assertEquals( "cn=\"b,c\"", new Rdn( schemaManager,  "cn=\"b,c\"" ).getName() );
+        assertEquals( "2.5.4.3=b\\,c", new Rdn( schemaManager, "cn=\"b,c\"" ).getNormName() );
+        assertEquals( "cn=\"b,c\"", new Rdn( schemaManager, "cn=\"b,c\"" ).getName() );
 
         assertTrue( Rdn.isValid( "cn=\"b\\,c\"" ) );
-        Rdn rdn = new Rdn( schemaManager,  "cn=\"b\\,c\"" );
+        Rdn rdn = new Rdn( schemaManager, "cn=\"b\\,c\"" );
         assertEquals( "cn=\"b\\,c\"", rdn.getName() );
         assertEquals( "2.5.4.3=b\\,c", rdn.getNormName() );
     }
@@ -1169,8 +1172,8 @@ public class SchemaAwareRdnTest
     {
         // Use upper case attribute types to test if normalized types are used 
         // for comparison
-        Rdn rdn = new Rdn( schemaManager,  " CN = b + SN = d" );
-        Rdn clonedRdn = (Rdn) rdn.clone();
+        Rdn rdn = new Rdn( schemaManager, " CN = b + SN = d" );
+        Rdn clonedRdn = ( Rdn ) rdn.clone();
 
         assertTrue( rdn.equals( clonedRdn ) );
     }
@@ -1187,7 +1190,7 @@ public class SchemaAwareRdnTest
     {
         // Use upper case attribute types to test if normalized types are used 
         // for comparison
-        Rdn rdn = new Rdn( schemaManager,  " CN = b + SN = d" );
+        Rdn rdn = new Rdn( schemaManager, " CN = b + SN = d" );
         Rdn copiedRdn = new Rdn( rdn );
 
         assertTrue( rdn.equals( copiedRdn ) );
@@ -1197,20 +1200,20 @@ public class SchemaAwareRdnTest
     /**
      * test the UpName method on a Rdn with more than one atav
      */
-    @Test 
+    @Test
     public void testGetUpNameMultipleAtav() throws LdapException
     {
-        Rdn rdn = new Rdn( schemaManager,  " CN = b + SN = d " );
-        
+        Rdn rdn = new Rdn( schemaManager, " CN = b + SN = d " );
+
         assertEquals( " CN = b + SN = d ", rdn.getName() );
     }
-    
-    
+
+
     @Test
     public void testSchemaAware() throws LdapException
     {
         Rdn rdn = new Rdn( "cn=John" );
-        
+
         assertFalse( rdn.isSchemaAware() );
 
         rdn.apply( schemaManager );

Modified: directory/shared/trunk/integ/src/test/java/org/apache/directory/shared/ldap/schema/syntaxCheckers/ACIItemSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/integ/src/test/java/org/apache/directory/shared/ldap/schema/syntaxCheckers/ACIItemSyntaxCheckerTest.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/integ/src/test/java/org/apache/directory/shared/ldap/schema/syntaxCheckers/ACIItemSyntaxCheckerTest.java (original)
+++ directory/shared/trunk/integ/src/test/java/org/apache/directory/shared/ldap/schema/syntaxCheckers/ACIItemSyntaxCheckerTest.java Tue Jan 24 17:27:00 2012
@@ -19,6 +19,7 @@
  */
 package org.apache.directory.shared.ldap.schema.syntaxCheckers;
 
+
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertTrue;
@@ -46,6 +47,7 @@ public class ACIItemSyntaxCheckerTest
 {
     private static ACIItemSyntaxChecker checker;
 
+
     @BeforeClass
     public static void init() throws Exception
     {
@@ -56,6 +58,7 @@ public class ACIItemSyntaxCheckerTest
         checker.setSchemaManager( schemaManager );
     }
 
+
     @Test
     public void testNullString()
     {
@@ -69,17 +72,20 @@ public class ACIItemSyntaxCheckerTest
         assertFalse( checker.isValidSyntax( "" ) );
     }
 
+
     @Test
     public void testOid()
     {
         assertEquals( "1.3.6.1.4.1.1466.115.121.1.1", checker.getOid() );
     }
 
+
     @Test
     public void testCorrectCase()
     {
     }
 
+
     /**
      * Tests the checker with an ACIItem of ItemFirst main component.
      */
@@ -247,7 +253,7 @@ public class ACIItemSyntaxCheckerTest
     public void testInvalidAttributeValue()
     {
         String spec;
-        
+
         // no name-value-pair
         spec = "{ identificationTag \"id2\"   , precedence 14, authenticationLevel none  , "
             + "itemOrUserFirst userFirst:  { userPermissions { { protectedItems{ entry  , attributeType { cn  , ou }  , attributeValue { must_be_a_name_value_pair } , "
@@ -255,7 +261,7 @@ public class ACIItemSyntaxCheckerTest
             + "subtree {{ minimum 7, maximum 9, base \"ou=system\" }, { base \"ou=ORGANIZATIONUNIT\","
             + " maximum   2, minimum  1 } } }  }  }   ";
         assertFalse( checker.isValidSyntax( spec ) );
-        
+
         // no name-value-pair
         spec = "{ identificationTag \"id2\"   , precedence 14, authenticationLevel none  , "
             + "itemOrUserFirst userFirst:  { userPermissions { { protectedItems{ entry  , attributeType { cn  , ou }  , attributeValue { x=y,m=n,k=l,x } , "
@@ -264,8 +270,8 @@ public class ACIItemSyntaxCheckerTest
             + " maximum   2, minimum  1 } } }  }  }   ";
         assertFalse( checker.isValidSyntax( spec ) );
     }
-    
-    
+
+
     /**
      * Test case for DIRSERVER-891
      */
@@ -273,16 +279,16 @@ public class ACIItemSyntaxCheckerTest
     public void testIncomplete()
     {
         String spec;
-        
+
         spec = "{ }";
         assertFalse( checker.isValidSyntax( spec ) );
-        
+
         spec = "{ identificationTag \"id2\" }";
         assertFalse( checker.isValidSyntax( spec ) );
-        
+
         spec = "{ identificationTag \"id2\", precedence 14 } ";
         assertFalse( checker.isValidSyntax( spec ) );
-        
+
         spec = "{ identificationTag \"id2\", precedence 14, authenticationLevel none } ";
         assertFalse( checker.isValidSyntax( spec ) );
     }

Modified: directory/shared/trunk/integ/src/test/java/org/apache/directory/shared/ldap/schema/syntaxCheckers/SubtreeSpecificationSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/integ/src/test/java/org/apache/directory/shared/ldap/schema/syntaxCheckers/SubtreeSpecificationSyntaxCheckerTest.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/integ/src/test/java/org/apache/directory/shared/ldap/schema/syntaxCheckers/SubtreeSpecificationSyntaxCheckerTest.java (original)
+++ directory/shared/trunk/integ/src/test/java/org/apache/directory/shared/ldap/schema/syntaxCheckers/SubtreeSpecificationSyntaxCheckerTest.java Tue Jan 24 17:27:00 2012
@@ -19,6 +19,7 @@
  */
 package org.apache.directory.shared.ldap.schema.syntaxCheckers;
 
+
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertTrue;
@@ -33,6 +34,7 @@ import org.junit.BeforeClass;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 
+
 /**
  * Test cases for SubtreeSpecificationSyntaxChecker.
  *
@@ -42,7 +44,7 @@ import org.junit.runner.RunWith;
 @Concurrency()
 public class SubtreeSpecificationSyntaxCheckerTest
 {
-    private static SubtreeSpecificationSyntaxChecker checker ;
+    private static SubtreeSpecificationSyntaxChecker checker;
 
 
     /**
@@ -53,13 +55,14 @@ public class SubtreeSpecificationSyntaxC
     {
         JarLdifSchemaLoader loader = new JarLdifSchemaLoader();
         SchemaManager schemaManager = new DefaultSchemaManager( loader );
-        
+
         schemaManager.loadAllEnabled();
 
         checker = new SubtreeSpecificationSyntaxChecker();
         checker.setSchemaManager( schemaManager );
     }
-        
+
+
     @Test
     public void testNullString()
     {
@@ -73,17 +76,19 @@ public class SubtreeSpecificationSyntaxC
         assertFalse( checker.isValidSyntax( "" ) );
     }
 
+
     @Test
     public void testOid()
     {
         assertEquals( "1.3.6.1.4.1.1466.115.121.1.45", checker.getOid() );
     }
 
+
     @Test
     public void testCorrectCase()
     {
     }
-    
+
     /** A valid empty specification with single white space between brackets */
     private static final String EMPTY_SPEC = "{ }";
 
@@ -130,10 +135,11 @@ public class SubtreeSpecificationSyntaxC
 
     /** An invalid specification with completely unrelated content */
     private static final String INVALID_SILLY_THING = "How much wood would a wood chuck chuck if a wood chuck would chuck wood?";
-    
+
     /** A valid specification with filter expression */
     private static final String SPEC_WITH_FILTER = "{ base \"ou=system\", specificationFilter (&(cn=test)(sn=test)) }";
-    
+
+
     /**
      * Tests the parser with a valid empty specification.
      */
@@ -141,7 +147,7 @@ public class SubtreeSpecificationSyntaxC
     public void testEmptySpec() throws Exception
     {
         assertTrue( checker.isValidSyntax( EMPTY_SPEC ) );
-       
+
         // try a second time
         assertTrue( checker.isValidSyntax( EMPTY_SPEC ) );
 
@@ -267,6 +273,7 @@ public class SubtreeSpecificationSyntaxC
         assertTrue( checker.isValidSyntax( SPEC_ORDER_OF_COMPONENTS_DOES_NOT_MATTER ) );
     }
 
+
     /**
      * Tests the parser with a valid specification with unordinary component
      * order.
@@ -276,8 +283,8 @@ public class SubtreeSpecificationSyntaxC
     {
         assertFalse( checker.isValidSyntax( INVALID_SILLY_THING ) );
     }
-    
-    
+
+
     /**
      * Tests the parser with a valid specification with refinement set.
      */

Modified: directory/shared/trunk/integ/src/test/java/org/apache/directory/shared/ldap/subtree/SubtreeSpecificationParserTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/integ/src/test/java/org/apache/directory/shared/ldap/subtree/SubtreeSpecificationParserTest.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/integ/src/test/java/org/apache/directory/shared/ldap/subtree/SubtreeSpecificationParserTest.java (original)
+++ directory/shared/trunk/integ/src/test/java/org/apache/directory/shared/ldap/subtree/SubtreeSpecificationParserTest.java Tue Jan 24 17:27:00 2012
@@ -50,6 +50,7 @@ import org.junit.runner.RunWith;
 import com.mycila.junit.concurrent.Concurrency;
 import com.mycila.junit.concurrent.ConcurrentJunitRunner;
 
+
 /**
  * Unit tests class for Subtree Specification parser (wrapper).
  *
@@ -116,10 +117,11 @@ public class SubtreeSpecificationParserT
     private static SchemaManager schemaManager;
 
     /** Some global OC */
-    private static ObjectClass TOP_OC;      // 2.5.6.0
-    private static ObjectClass ALIAS_OC;    // 2.5.6.1
-    private static ObjectClass COUNTRY_OC;  // 2.5.6.2
-    private static ObjectClass PERSON_OC;   // 2.5.6.6
+    private static ObjectClass TOP_OC; // 2.5.6.0
+    private static ObjectClass ALIAS_OC; // 2.5.6.1
+    private static ObjectClass COUNTRY_OC; // 2.5.6.2
+    private static ObjectClass PERSON_OC; // 2.5.6.6
+
 
     /**
      * Initialization
@@ -332,7 +334,8 @@ public class SubtreeSpecificationParserT
         ss.getRefinement().printRefinementToBuffer( buffer );
 
         //assertEquals( outerAndRefinement.toString(), buffer );
-        assertEquals( "and: { and: { item: 2.5.6.0, or: { item: 2.5.6.1, item: person } }, not: item: 2.5.6.2 }", buffer.toString() );
+        assertEquals( "and: { and: { item: 2.5.6.0, or: { item: 2.5.6.1, item: person } }, not: item: 2.5.6.2 }",
+            buffer.toString() );
     }
 
 
@@ -400,13 +403,13 @@ public class SubtreeSpecificationParserT
         String firstExclusion = "{ specificExclusions { chopAfter:\"cn=l\" } }";
         SubtreeSpecification firstSpec = parser.parse( firstExclusion );
         assertEquals( 1, firstSpec.getChopAfterExclusions().size() );
-        assertEquals(firstDn, firstSpec.getChopAfterExclusions().iterator().next() );
+        assertEquals( firstDn, firstSpec.getChopAfterExclusions().iterator().next() );
 
         Dn secondDn = new Dn( schemaManager, "l=y" );
         String secondExclusion = "{ specificExclusions { chopAfter:\"l=y\" } }";
         SubtreeSpecification secondSpec = parser.parse( secondExclusion );
         assertEquals( 1, secondSpec.getChopAfterExclusions().size() );
-        assertEquals(secondDn, secondSpec.getChopAfterExclusions().iterator().next() );
+        assertEquals( secondDn, secondSpec.getChopAfterExclusions().iterator().next() );
 
     }
 
@@ -463,7 +466,7 @@ public class SubtreeSpecificationParserT
         SubtreeSpecification result;
 
 
-        public ParseSpecification(String specStr)
+        public ParseSpecification( String specStr )
         {
             this.specStr = specStr;
         }

Modified: directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/ConnectionClosedEventListener.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/ConnectionClosedEventListener.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/ConnectionClosedEventListener.java (original)
+++ directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/ConnectionClosedEventListener.java Tue Jan 24 17:27:00 2012
@@ -20,6 +20,7 @@
 
 package org.apache.directory.ldap.client.api;
 
+
 /**
  * A listener class intended for notifying the classes using LdapNetworkConnection
  * in the event of any network failure

Modified: directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/EntryCursorImpl.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/EntryCursorImpl.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/EntryCursorImpl.java (original)
+++ directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/EntryCursorImpl.java Tue Jan 24 17:27:00 2012
@@ -51,6 +51,7 @@ public class EntryCursorImpl extends Abs
     /** The underlying messageId */
     private int messageId;
 
+
     /**
      * Instantiates a new search cursor, embedding a SearchCursor.
      *
@@ -61,7 +62,7 @@ public class EntryCursorImpl extends Abs
         this.searchCursor = searchCursor;
         messageId = -1;
     }
-    
+
 
     /**
      * {@inheritDoc}
@@ -75,7 +76,7 @@ public class EntryCursorImpl extends Abs
 
         try
         {
-            
+
             do
             {
                 response = searchCursor.get();
@@ -93,7 +94,7 @@ public class EntryCursorImpl extends Abs
                 }
             }
             while ( !( response instanceof SearchResultDone ) );
-            
+
             return false;
         }
         catch ( Exception e )
@@ -123,11 +124,11 @@ public class EntryCursorImpl extends Abs
         {
             if ( response instanceof SearchResultEntry )
             {
-                return ((SearchResultEntry)response).getEntry();
+                return ( ( SearchResultEntry ) response ).getEntry();
             }
         }
         while ( next() && !( response instanceof SearchResultDone ) );
-        
+
         return null;
     }
 

Modified: directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/Krb5LoginConfiguration.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/Krb5LoginConfiguration.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/Krb5LoginConfiguration.java (original)
+++ directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/Krb5LoginConfiguration.java Tue Jan 24 17:27:00 2012
@@ -48,7 +48,7 @@ public class Krb5LoginConfiguration exte
 
         // TODO: this only works for Sun JVM
         options.put( "refreshKrb5Config", "true" );
-        
+
         LoginModuleControlFlag flag = LoginModuleControlFlag.REQUIRED;
         configList[0] = new AppConfigurationEntry( loginModule, flag, options );
     }

Modified: directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapConnection.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapConnection.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapConnection.java (original)
+++ directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapConnection.java Tue Jan 24 17:27:00 2012
@@ -671,8 +671,8 @@ public interface LdapConnection
      * @throws LdapException if some error occurred
      */
     boolean exists( Dn dn ) throws LdapException;
-    
-    
+
+
     /**
      * Get back the RooDSE from the connected server. We only return the user attributes.
      * 
@@ -680,8 +680,8 @@ public interface LdapConnection
      * @throws LdapException If the rootDSE can't be read
      */
     Entry getRootDse() throws LdapException;
-    
-    
+
+
     /**
      * Get back the RooDSE from the connected server. The user can provide the
      * list of attributes he wants to get back. Sending "*" will return all the
@@ -739,7 +739,6 @@ public interface LdapConnection
     Entry lookup( Dn dn, Control[] controls, String... attributes ) throws LdapException;
 
 
-
     /**
      * Searches for an entry having the given Dn.
      *
@@ -797,7 +796,7 @@ public interface LdapConnection
      */
     SchemaManager getSchemaManager();
 
-    
+
     /**
      * Gets the LDAP CODEC service responsible for encoding and decoding
      * messages.
@@ -805,8 +804,8 @@ public interface LdapConnection
      * @return The LDAP CODEC service.
      */
     LdapApiService getCodecService();
-    
-    
+
+
     /**
      * Checks if there is a ResponseFuture associated with the given message ID.
      *

Modified: directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapConnectionConfig.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapConnectionConfig.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapConnectionConfig.java (original)
+++ directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapConnectionConfig.java Tue Jan 24 17:27:00 2012
@@ -94,13 +94,14 @@ public class LdapConnectionConfig
     private String sslProtocol = DEFAULT_SSL_PROTOCOL;
 
     private static final Logger LOG = LoggerFactory.getLogger( LdapConnectionConfig.class );
-    
+
+
     public LdapConnectionConfig()
     {
         setDefaultTrustManager();
     }
 
-    
+
     /**
      * sets the default trust manager based on the SunX509 trustManagement algorithm
      */
@@ -119,23 +120,24 @@ public class LdapConnectionConfig
             {
                 if ( factoryTrustManagers[i] instanceof X509TrustManager )
                 {
-                    trustManagers = new TrustManager[] { factoryTrustManagers[i] };
+                    trustManagers = new TrustManager[]
+                        { factoryTrustManagers[i] };
                     LOG.debug( "found X509TrustManager {}", factoryTrustManagers[i] );
                     break;
                 }
             }
         }
-        catch( NoSuchAlgorithmException e )
+        catch ( NoSuchAlgorithmException e )
         {
             LOG.warn( "couldn't find any default X509 TrustManager with algorithm {}", trustMgmtAlgo );
         }
-        catch( KeyStoreException e )
+        catch ( KeyStoreException e )
         {
             LOG.warn( "couldn't initialize TrustManagerFactory with keystore {}", KeyStore.getDefaultType() );
         }
     }
-    
-    
+
+
     /**
      * Checks if SSL (ldaps://) is used.
      *

Modified: directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java (original)
+++ directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java Tue Jan 24 17:27:00 2012
@@ -231,7 +231,7 @@ public class LdapNetworkConnection exten
 
     /** the SslFilter key */
     private static final String SSL_FILTER_KEY = "sslFilter";
-    
+
     /** The exception stored in the session if we've got one */
     private static final String EXCEPTION_KEY = "sessionException";
 
@@ -527,7 +527,7 @@ public class LdapNetworkConnection exten
 
         // Wait until it's established
         connectionFuture.awaitUninterruptibly();
-        
+
         boolean isConnected = connectionFuture.isConnected();
 
         if ( !isConnected )
@@ -665,13 +665,13 @@ public class LdapNetworkConnection exten
         // And close the connector if it has been created locally
         // Release the connector
         connectorMutex.lock();
-        
+
         if ( connector != null )
         {
             connector.dispose();
             connector = null;
         }
-        
+
         connectorMutex.unlock();
 
         // Reset the messageId
@@ -1206,7 +1206,6 @@ public class LdapNetworkConnection exten
     }
 
 
-
     /**
      * Create a complete BindRequest ready to be sent.
      */
@@ -1807,7 +1806,7 @@ public class LdapNetworkConnection exten
                 response.setCause( realCause );
             }
         }
-        
+
         session.close( true );
     }
 
@@ -3639,7 +3638,7 @@ public class LdapNetworkConnection exten
         messageId.set( 0 );
 
         connectorMutex.lock();
-        
+
         if ( connector != null )
         {
             connector.dispose();
@@ -3653,7 +3652,7 @@ public class LdapNetworkConnection exten
         if ( conCloseListeners != null )
         {
             LOG.debug( "notifying the registered ConnectionClosedEventListeners.." );
-            
+
             for ( ConnectionClosedEventListener listener : conCloseListeners )
             {
                 listener.connectionClosed();
@@ -3912,8 +3911,8 @@ public class LdapNetworkConnection exten
             throw new LdapException( e );
         }
     }
-    
-    
+
+
     /**
      * a reusable code block to be used in various bind methods
      */
@@ -3923,7 +3922,7 @@ public class LdapNetworkConnection exten
         WriteFuture writeFuture = ldapSession.write( request );
 
         long localTimeout = timeout;
-        
+
         while ( localTimeout > 0 )
         {
             // Wait only 100 ms
@@ -3933,33 +3932,33 @@ public class LdapNetworkConnection exten
             {
                 return;
             }
-            
+
             // Wait for the message to be sent to the server
             if ( !ldapSession.isConnected() )
             {
                 // We didn't received anything : this is an error
                 LOG.error( "Message failed : something wrong has occured" );
-                
-                Exception exception = (Exception)ldapSession.removeAttribute( EXCEPTION_KEY );
-    
+
+                Exception exception = ( Exception ) ldapSession.removeAttribute( EXCEPTION_KEY );
+
                 if ( exception != null )
                 {
                     if ( exception instanceof LdapException )
                     {
-                        throw (LdapException)exception;
+                        throw ( LdapException ) exception;
                     }
                     else
                     {
                         throw new InvalidConnectionException( exception.getMessage() );
                     }
                 }
-                
+
                 throw new InvalidConnectionException( "Error while sending some message : the session has been closed" );
             }
-            
+
             localTimeout -= 100;
         }
-        
+
         LOG.error( "TimeOut has occured" );
         throw new LdapException( TIME_OUT_ERROR );
     }

Modified: directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/SearchCursorImpl.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/SearchCursorImpl.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/SearchCursorImpl.java (original)
+++ directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/SearchCursorImpl.java Tue Jan 24 17:27:00 2012
@@ -311,7 +311,7 @@ public class SearchCursorImpl extends Ab
     {
         if ( isReferral() )
         {
-            return ((SearchResultReference)response).getReferral();
+            return ( ( SearchResultReference ) response ).getReferral();
         }
 
         throw new LdapException();
@@ -334,7 +334,7 @@ public class SearchCursorImpl extends Ab
     {
         if ( isEntry() )
         {
-            return ((SearchResultEntry)response).getEntry();
+            return ( ( SearchResultEntry ) response ).getEntry();
         }
 
         throw new LdapException();
@@ -357,7 +357,7 @@ public class SearchCursorImpl extends Ab
     {
         if ( isEntry() )
         {
-            return (IntermediateResponse)response;
+            return ( IntermediateResponse ) response;
         }
 
         throw new LdapException();

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/AttributeValueAssertion.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/AttributeValueAssertion.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/AttributeValueAssertion.java (original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/AttributeValueAssertion.java Tue Jan 24 17:27:00 2012
@@ -50,6 +50,7 @@ public class AttributeValueAssertion
     /** The assertion value */
     private Value<?> assertionValue;
 
+
     /**
      *
      * Helper method to render an object which can be a String or a byte[]
@@ -62,19 +63,19 @@ public class AttributeValueAssertion
         {
             if ( object instanceof String )
             {
-                return (String) object;
+                return ( String ) object;
             }
             else if ( object instanceof byte[] )
             {
-                return Strings.dumpBytes((byte[]) object);
+                return Strings.dumpBytes( ( byte[] ) object );
             }
-            else if ( object instanceof StringValue)
+            else if ( object instanceof StringValue )
             {
-                return ( (StringValue) object ).getValue();
+                return ( ( StringValue ) object ).getValue();
             }
             else if ( object instanceof BinaryValue )
             {
-                return Strings.dumpBytes(((BinaryValue) object).getValue());
+                return Strings.dumpBytes( ( ( BinaryValue ) object ).getValue() );
             }
             else
             {
@@ -149,7 +150,7 @@ public class AttributeValueAssertion
         sb.append( tabs ).append( "    Assertion description : '" );
         sb.append( attributeDesc != null ? attributeDesc : "null" );
         sb.append( "'\n" );
-        sb.append( tabs ).append( "    Assertion value : '" ).append( dumpObject(assertionValue) ).append( "'\n" );
+        sb.append( tabs ).append( "    Assertion value : '" ).append( dumpObject( assertionValue ) ).append( "'\n" );
 
         return sb.toString();
     }
@@ -187,7 +188,7 @@ public class AttributeValueAssertion
                 break;
         }
 
-        sb.append( dumpObject(assertionValue) );
+        sb.append( dumpObject( assertionValue ) );
 
         return sb.toString();
     }

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/BasicControlDecorator.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/BasicControlDecorator.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/BasicControlDecorator.java (original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/BasicControlDecorator.java Tue Jan 24 17:27:00 2012
@@ -65,7 +65,7 @@ public class BasicControlDecorator<E> ex
         return null;
     }
 
-    
+
     /**
      * {@inheritDoc}
      */
@@ -80,7 +80,7 @@ public class BasicControlDecorator<E> ex
         {
             valueLength = getValue().length;
         }
-        
+
         return valueLength;
     }
 

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/LdapMessageGrammar.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/LdapMessageGrammar.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/LdapMessageGrammar.java (original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/LdapMessageGrammar.java Tue Jan 24 17:27:00 2012
@@ -146,7 +146,8 @@ import org.slf4j.LoggerFactory;
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public final class LdapMessageGrammar<E> extends AbstractGrammar<LdapMessageContainer<MessageDecorator<? extends Message>>>
+public final class LdapMessageGrammar<E> extends
+    AbstractGrammar<LdapMessageContainer<MessageDecorator<? extends Message>>>
 {
     /** The logger */
     static final Logger LOG = LoggerFactory.getLogger( LdapMessageGrammar.class );
@@ -155,13 +156,16 @@ public final class LdapMessageGrammar<E>
     static final boolean IS_DEBUG = LOG.isDebugEnabled();
 
     /** The instance of grammar. LdapMessageGrammar is a singleton */
-    @SuppressWarnings({ "unchecked", "rawtypes" })
+    @SuppressWarnings(
+        { "unchecked", "rawtypes" })
     private static Grammar<LdapMessageContainer<MessageDecorator<? extends Message>>> instance = new LdapMessageGrammar();
 
+
     /**
      * Creates a new LdapMessageGrammar object.
      */
-    @SuppressWarnings({ "unchecked", "rawtypes" })
+    @SuppressWarnings(
+        { "unchecked", "rawtypes" })
     private LdapMessageGrammar()
     {
 
@@ -4853,7 +4857,8 @@ public final class LdapMessageGrammar<E>
         // Store the matching rule ID
         super.transitions[LdapStatesEnum.EXTENSIBLE_MATCH_STATE.ordinal()][LdapConstants.MATCHING_RULE_ID_TAG] = new GrammarTransition(
             LdapStatesEnum.EXTENSIBLE_MATCH_STATE, LdapStatesEnum.MATCHING_RULE_STATE,
-            LdapConstants.MATCHING_RULE_ID_TAG, new GrammarAction<LdapMessageContainer<SearchRequestDecorator>>( "Store matching rule Value" )
+            LdapConstants.MATCHING_RULE_ID_TAG, new GrammarAction<LdapMessageContainer<SearchRequestDecorator>>(
+                "Store matching rule Value" )
             {
                 public void action( LdapMessageContainer<SearchRequestDecorator> container ) throws DecoderException
                 {
@@ -4863,7 +4868,7 @@ public final class LdapMessageGrammar<E>
 
                     // Store the value.
                     ExtensibleMatchFilter extensibleMatchFilter = ( ExtensibleMatchFilter )
-                            searchRequest.getTerminalFilter();
+                        searchRequest.getTerminalFilter();
 
                     if ( tlv.getLength() == 0 )
                     {
@@ -4875,7 +4880,7 @@ public final class LdapMessageGrammar<E>
                     }
                     else
                     {
-                        extensibleMatchFilter.setMatchingRule( Strings.utf8ToString(tlv.getValue().getData()) );
+                        extensibleMatchFilter.setMatchingRule( Strings.utf8ToString( tlv.getValue().getData() ) );
                     }
                 }
             } );

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/LdapStatesEnum.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/LdapStatesEnum.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/LdapStatesEnum.java (original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/LdapStatesEnum.java Tue Jan 24 17:27:00 2012
@@ -153,7 +153,6 @@ public enum LdapStatesEnum implements St
     INTERMEDIATE_RESPONSE_VALUE_STATE,
     LAST_LDAP_STATE;
 
-
     /**
      * Get the grammar name
      *

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/CheckLengthNotNull.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/CheckLengthNotNull.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/CheckLengthNotNull.java (original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/CheckLengthNotNull.java Tue Jan 24 17:27:00 2012
@@ -41,6 +41,7 @@ public class CheckLengthNotNull extends 
     /** The logger */
     private static final Logger LOG = LoggerFactory.getLogger( CheckLengthNotNull.class );
 
+
     /**
      * Instantiates the action.
      */

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/abandonRequest/InitAbandonRequest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/abandonRequest/InitAbandonRequest.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/abandonRequest/InitAbandonRequest.java (original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/abandonRequest/InitAbandonRequest.java Tue Jan 24 17:27:00 2012
@@ -52,6 +52,7 @@ public class InitAbandonRequest extends 
     /** Speedup for logs */
     private static final boolean IS_DEBUG = LOG.isDebugEnabled();
 
+
     /**
      * Instantiates a new action.
      */
@@ -108,7 +109,7 @@ public class InitAbandonRequest extends 
         catch ( IntegerDecoderException ide )
         {
             LOG.error( I18n
-                .err( I18n.ERR_04076, Strings.dumpBytes(value.getData()), ide.getMessage() ) );
+                .err( I18n.ERR_04076, Strings.dumpBytes( value.getData() ), ide.getMessage() ) );
 
             // This will generate a PROTOCOL_ERROR
             throw new DecoderException( ide.getMessage(), ide );

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/addRequest/AddAddRequestAttributeType.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/addRequest/AddAddRequestAttributeType.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/addRequest/AddAddRequestAttributeType.java (original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/addRequest/AddAddRequestAttributeType.java Tue Jan 24 17:27:00 2012
@@ -52,6 +52,7 @@ public class AddAddRequestAttributeType 
     /** Speedup for logs */
     private static final boolean IS_DEBUG = LOG.isDebugEnabled();
 
+
     /**
      * Instantiates a new action.
      */

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/addRequest/AddAttributeValue.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/addRequest/AddAttributeValue.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/addRequest/AddAttributeValue.java (original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/addRequest/AddAttributeValue.java Tue Jan 24 17:27:00 2012
@@ -82,23 +82,23 @@ public class AddAttributeValue extends G
                 if ( container.isBinary( addRequest.getCurrentAttributeType() ) )
                 {
                     value = tlv.getValue().getData();
-    
+
                     if ( IS_DEBUG )
                     {
-                        LOG.debug( "Adding value {}", Strings.dumpBytes((byte[]) value) );
+                        LOG.debug( "Adding value {}", Strings.dumpBytes( ( byte[] ) value ) );
                     }
-    
+
                     addRequest.addAttributeValue( ( byte[] ) value );
                 }
                 else
                 {
-                    value = Strings.utf8ToString(tlv.getValue().getData());
-    
+                    value = Strings.utf8ToString( tlv.getValue().getData() );
+
                     if ( IS_DEBUG )
                     {
                         LOG.debug( "Adding value {}" + value );
                     }
-    
+
                     addRequest.addAttributeValue( ( String ) value );
                 }
             }

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/addRequest/InitAddRequest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/addRequest/InitAddRequest.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/addRequest/InitAddRequest.java (original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/addRequest/InitAddRequest.java Tue Jan 24 17:27:00 2012
@@ -45,6 +45,7 @@ public class InitAddRequest extends Gram
     /** The logger */
     private static final Logger LOG = LoggerFactory.getLogger( InitAddRequest.class );
 
+
     /**
      * Instantiates a new action.
      */

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/addRequest/StoreAddRequestEntryName.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/addRequest/StoreAddRequestEntryName.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/addRequest/StoreAddRequestEntryName.java (original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/addRequest/StoreAddRequestEntryName.java Tue Jan 24 17:27:00 2012
@@ -50,6 +50,7 @@ public class StoreAddRequestEntryName ex
     /** The logger */
     private static final Logger LOG = LoggerFactory.getLogger( StoreAddRequestEntryName.class );
 
+
     /**
      * Instantiates a new action.
      */
@@ -85,7 +86,7 @@ public class StoreAddRequestEntryName ex
         {
             Dn entryDn = null;
             byte[] dnBytes = tlv.getValue().getData();
-            String dnStr = Strings.utf8ToString(dnBytes);
+            String dnStr = Strings.utf8ToString( dnBytes );
 
             try
             {
@@ -93,7 +94,7 @@ public class StoreAddRequestEntryName ex
             }
             catch ( LdapInvalidDnException ine )
             {
-                String msg = "Invalid Dn given : " + dnStr + " (" + Strings.dumpBytes(dnBytes)
+                String msg = "Invalid Dn given : " + dnStr + " (" + Strings.dumpBytes( dnBytes )
                     + ") is invalid";
                 LOG.error( "{} : {}", msg, ine.getMessage() );
 

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/addResponse/InitAddResponse.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/addResponse/InitAddResponse.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/addResponse/InitAddResponse.java (original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/addResponse/InitAddResponse.java Tue Jan 24 17:27:00 2012
@@ -44,6 +44,7 @@ public class InitAddResponse extends Gra
     /** The logger */
     private static final Logger LOG = LoggerFactory.getLogger( InitAddResponse.class );
 
+
     /**
      * Instantiates a new action.
      */

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/bindRequest/InitBindRequest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/bindRequest/InitBindRequest.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/bindRequest/InitBindRequest.java (original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/bindRequest/InitBindRequest.java Tue Jan 24 17:27:00 2012
@@ -45,6 +45,7 @@ public class InitBindRequest extends Gra
     /** The logger */
     private static final Logger LOG = LoggerFactory.getLogger( InitBindRequest.class );
 
+
     /**
      * Instantiates a new action.
      */

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/bindRequest/StoreSaslCredentials.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/bindRequest/StoreSaslCredentials.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/bindRequest/StoreSaslCredentials.java (original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/bindRequest/StoreSaslCredentials.java Tue Jan 24 17:27:00 2012
@@ -85,8 +85,8 @@ public class StoreSaslCredentials extend
 
         if ( IS_DEBUG )
         {
-            LOG.debug( "The credentials are : {}", Strings.dumpBytes(bindRequestMessage
-                    .getCredentials()) );
+            LOG.debug( "The credentials are : {}", Strings.dumpBytes( bindRequestMessage
+                .getCredentials() ) );
         }
     }
 }

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/bindRequest/StoreSaslMechanism.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/bindRequest/StoreSaslMechanism.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/bindRequest/StoreSaslMechanism.java (original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/bindRequest/StoreSaslMechanism.java Tue Jan 24 17:27:00 2012
@@ -73,7 +73,7 @@ public class StoreSaslMechanism extends 
         }
         else
         {
-            bindRequestMessage.setSaslMechanism( Strings.utf8ToString(tlv.getValue().getData()) );
+            bindRequestMessage.setSaslMechanism( Strings.utf8ToString( tlv.getValue().getData() ) );
         }
 
         // We can have an END transition

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/bindRequest/StoreSimpleAuth.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/bindRequest/StoreSimpleAuth.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/bindRequest/StoreSimpleAuth.java (original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/bindRequest/StoreSimpleAuth.java Tue Jan 24 17:27:00 2012
@@ -91,8 +91,8 @@ public class StoreSimpleAuth extends Gra
 
         if ( IS_DEBUG )
         {
-            LOG.debug( "The simple authentication is : {}", Strings.dumpBytes(bindRequestMessage
-                    .getCredentials()) );
+            LOG.debug( "The simple authentication is : {}", Strings.dumpBytes( bindRequestMessage
+                .getCredentials() ) );
         }
     }
 }

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/bindRequest/StoreVersion.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/bindRequest/StoreVersion.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/bindRequest/StoreVersion.java (original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/bindRequest/StoreVersion.java Tue Jan 24 17:27:00 2012
@@ -89,7 +89,7 @@ public class StoreVersion extends Gramma
         catch ( IntegerDecoderException ide )
         {
             LOG.error( I18n
-                .err( I18n.ERR_04078, Strings.dumpBytes(value.getData()), ide.getMessage() ) );
+                .err( I18n.ERR_04078, Strings.dumpBytes( value.getData() ), ide.getMessage() ) );
 
             // This will generate a PROTOCOL_ERROR
             throw new DecoderException( ide.getMessage() );

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/bindResponse/StoreServerSASLCreds.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/bindResponse/StoreServerSASLCreds.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/bindResponse/StoreServerSASLCreds.java (original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/bindResponse/StoreServerSASLCreds.java Tue Jan 24 17:27:00 2012
@@ -88,7 +88,7 @@ public class StoreServerSASLCreds extend
 
         if ( IS_DEBUG )
         {
-            LOG.debug( "The SASL credentials value is : {}", Strings.dumpBytes(serverSaslCreds) );
+            LOG.debug( "The SASL credentials value is : {}", Strings.dumpBytes( serverSaslCreds ) );
         }
     }
 }

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/compareRequest/InitCompareRequest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/compareRequest/InitCompareRequest.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/compareRequest/InitCompareRequest.java (original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/compareRequest/InitCompareRequest.java Tue Jan 24 17:27:00 2012
@@ -44,6 +44,7 @@ public class InitCompareRequest extends 
     /** The logger */
     private static final Logger LOG = LoggerFactory.getLogger( InitCompareRequest.class );
 
+
     /**
      * Instantiates a new action.
      */

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/compareRequest/StoreCompareRequestAssertionValue.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/compareRequest/StoreCompareRequestAssertionValue.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/compareRequest/StoreCompareRequestAssertionValue.java (original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/compareRequest/StoreCompareRequestAssertionValue.java Tue Jan 24 17:27:00 2012
@@ -53,6 +53,7 @@ public class StoreCompareRequestAssertio
     /** Speedup for logs */
     private static final boolean IS_DEBUG = LOG.isDebugEnabled();
 
+
     /**
      * Instantiates a new action.
      */
@@ -86,13 +87,13 @@ public class StoreCompareRequestAssertio
 
                 if ( IS_DEBUG )
                 {
-                    LOG.debug( "Comparing attribute value {}", Strings.dumpBytes(compareRequest
-                            .getAssertionValue().getBytes()) );
+                    LOG.debug( "Comparing attribute value {}", Strings.dumpBytes( compareRequest
+                        .getAssertionValue().getBytes() ) );
                 }
             }
             else
             {
-                compareRequest.setAssertionValue( Strings.utf8ToString(tlv.getValue().getData()) );
+                compareRequest.setAssertionValue( Strings.utf8ToString( tlv.getValue().getData() ) );
 
                 if ( LOG.isDebugEnabled() )
                 {



Mime
View raw message