directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r351928 - in /directory/shared/ldap/trunk/common/src: main/java/org/apache/ldap/common/filter/ main/java/org/apache/ldap/common/message/ main/java/org/apache/ldap/common/schema/ main/java/org/apache/ldap/common/util/ test/org/apache/ldap/co...
Date Sat, 03 Dec 2005 12:43:24 GMT
Author: elecharny
Date: Sat Dec  3 04:43:12 2005
New Revision: 351928

URL: http://svn.apache.org/viewcvs?rev=351928&view=rev
Log:
Arghhh ! Changed Utf8ToString to utf8ToString. 
Methods *must* start with a small cap...

Modified:
    directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/filter/ExtensibleNode.java
    directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/filter/SimpleNode.java
    directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/message/BindRequestImpl.java
    directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/message/CompareRequestImpl.java
    directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/message/ExtendedRequestImpl.java
    directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/message/ModifyRequestImpl.java
    directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/schema/DeepTrimNormalizer.java
    directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/schema/DeepTrimToLowerNormalizer.java
    directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/util/AttributeUtils.java
    directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/filter/FilterParserImplTest.java

Modified: directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/filter/ExtensibleNode.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/filter/ExtensibleNode.java?rev=351928&r1=351927&r2=351928&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/filter/ExtensibleNode.java
(original)
+++ directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/filter/ExtensibleNode.java
Sat Dec  3 04:43:12 2005
@@ -123,7 +123,7 @@
         buf.append( "-EXTENSIBLE-" );
         buf.append( this.matchingRuleId );
         buf.append( "-" );
-        buf.append( StringUtils.Utf8ToString( this.value ) );
+        buf.append( StringUtils.utf8ToString( this.value ) );
         buf.append( "/" );
         buf.append( StringUtils.dumpBytes( this.value ) );
         buf.append( ')' );

Modified: directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/filter/SimpleNode.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/filter/SimpleNode.java?rev=351928&r1=351927&r2=351928&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/filter/SimpleNode.java
(original)
+++ directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/filter/SimpleNode.java
Sat Dec  3 04:43:12 2005
@@ -39,7 +39,7 @@
      */
     public SimpleNode( String attribute, byte[] value, int type )
     {
-        this( attribute, StringUtils.Utf8ToString( value ), type );
+        this( attribute, StringUtils.utf8ToString( value ), type );
     }
 
     /**

Modified: directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/message/BindRequestImpl.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/message/BindRequestImpl.java?rev=351928&r1=351927&r2=351928&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/message/BindRequestImpl.java
(original)
+++ directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/message/BindRequestImpl.java
Sat Dec  3 04:43:12 2005
@@ -316,7 +316,7 @@
             if ( isSimple )
             {
                 sb.append( "        Simple authentication : '" )
-                  .append( StringUtils.Utf8ToString( credentials) )
+                  .append( StringUtils.utf8ToString( credentials) )
                   .append('/')
                   .append( StringUtils.dumpBytes( credentials ) )
                   .append( "'\n" );
@@ -329,7 +329,7 @@
                 .append( "'\n" );
                 
                 sb.append( "            Credentials : '" )
-                .append( StringUtils.Utf8ToString( credentials) )
+                .append( StringUtils.utf8ToString( credentials) )
                 .append('/')
                 .append( StringUtils.dumpBytes( credentials ) )
                 .append( "'\n" );

Modified: directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/message/CompareRequestImpl.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/message/CompareRequestImpl.java?rev=351928&r1=351927&r2=351928&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/message/CompareRequestImpl.java
(original)
+++ directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/message/CompareRequestImpl.java
Sat Dec  3 04:43:12 2005
@@ -104,7 +104,7 @@
      */
     public String getAssertionValue()
     {
-    	return StringUtils.Utf8ToString( attrVal );
+    	return StringUtils.utf8ToString( attrVal );
     }
 
     /**
@@ -271,7 +271,7 @@
         sb.append( "        Attribute description : '" ).append( attrId ).append(
             "'\n" );
         sb.append( "        Attribute value : '" ).
-        	append( StringUtils.Utf8ToString( attrVal ) ).
+        	append( StringUtils.utf8ToString( attrVal ) ).
         	append( '/' ).
         	append( StringUtils.dumpBytes( attrVal ) ).
             append( "'\n" );

Modified: directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/message/ExtendedRequestImpl.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/message/ExtendedRequestImpl.java?rev=351928&r1=351927&r2=351928&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/message/ExtendedRequestImpl.java
(original)
+++ directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/message/ExtendedRequestImpl.java
Sat Dec  3 04:43:12 2005
@@ -199,7 +199,7 @@
         if ( oid != null )
         {
             sb.append( "        Request value : '" ).
-            	append( StringUtils.Utf8ToString( payload ) ).
+            	append( StringUtils.utf8ToString( payload ) ).
             	append( '/' ).
             	append( StringUtils.dumpBytes( payload ) ).
             	append( "'\n" );

Modified: directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/message/ModifyRequestImpl.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/message/ModifyRequestImpl.java?rev=351928&r1=351927&r2=351928&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/message/ModifyRequestImpl.java
(original)
+++ directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/message/ModifyRequestImpl.java
Sat Dec  3 04:43:12 2005
@@ -270,7 +270,7 @@
 	        	{
                     if (value instanceof byte[] )
                     {
-                        String sValue = StringUtils.Utf8ToString( (byte[])value );
+                        String sValue = StringUtils.utf8ToString( (byte[])value );
                         
                         if ( attrHash0.contains( sValue ) == false )
                         {
@@ -359,7 +359,7 @@
 
                         if ( attributeValue instanceof byte[] )
                         {
-                        	sb.append( StringUtils.Utf8ToString( (byte[])attributeValue ) ).
+                        	sb.append( StringUtils.utf8ToString( (byte[])attributeValue ) ).
                     			append( '/' ).append( StringUtils.dumpBytes( (byte[])attributeValue
) );
                         }
                         else if ( attributeValue instanceof String )

Modified: directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/schema/DeepTrimNormalizer.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/schema/DeepTrimNormalizer.java?rev=351928&r1=351927&r2=351928&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/schema/DeepTrimNormalizer.java
(original)
+++ directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/schema/DeepTrimNormalizer.java
Sat Dec  3 04:43:12 2005
@@ -42,7 +42,7 @@
         
         if ( value instanceof byte[] )
         {
-            return StringTools.deepTrim( StringUtils.Utf8ToString( (byte[])value ) );
+            return StringTools.deepTrim( StringUtils.utf8ToString( (byte[])value ) );
         }
         else
         {

Modified: directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/schema/DeepTrimToLowerNormalizer.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/schema/DeepTrimToLowerNormalizer.java?rev=351928&r1=351927&r2=351928&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/schema/DeepTrimToLowerNormalizer.java
(original)
+++ directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/schema/DeepTrimToLowerNormalizer.java
Sat Dec  3 04:43:12 2005
@@ -43,7 +43,7 @@
         
         if ( value instanceof byte[] )
         {
-            return StringTools.deepTrimToLower( StringUtils.Utf8ToString( (byte[])value )
);
+            return StringTools.deepTrimToLower( StringUtils.utf8ToString( (byte[])value )
);
         }
         else
         {

Modified: directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/util/AttributeUtils.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/util/AttributeUtils.java?rev=351928&r1=351927&r2=351928&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/util/AttributeUtils.java
(original)
+++ directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/util/AttributeUtils.java
Sat Dec  3 04:43:12 2005
@@ -254,7 +254,7 @@
                     }
                     else if (attr instanceof byte[] )
                     {
-                        String string = StringUtils.Utf8ToString( (byte[])attr );
+                        String string = StringUtils.utf8ToString( (byte[])attr );
                         
                         sb.append( tabs ).append( "        Val[" ).append( j ).append( "]
: " );
                         sb.append( string ).append( '/');

Modified: directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/filter/FilterParserImplTest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/filter/FilterParserImplTest.java?rev=351928&r1=351927&r2=351928&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/filter/FilterParserImplTest.java
(original)
+++ directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/filter/FilterParserImplTest.java
Sat Dec  3 04:43:12 2005
@@ -179,7 +179,7 @@
     {
         ExtensibleNode node = ( ExtensibleNode ) parser.parse( "( ou :dn :stupidMatch :=
dummyAssertion\\23\\ac )" );
         assertEquals( "ou", node.getAttribute() );
-        assertEquals( "dummyAssertion\\23\\ac", StringUtils.Utf8ToString( node.getValue()
) );
+        assertEquals( "dummyAssertion\\23\\ac", StringUtils.utf8ToString( node.getValue()
) );
         assertEquals( "stupidMatch", node.getMatchingRuleId() );
         assertTrue( node.dnAttributes() );
         assertEquals( AbstractExprNode.EXTENSIBLE, node.getAssertionType() );
@@ -190,7 +190,7 @@
     {
         ExtensibleNode node = ( ExtensibleNode ) parser.parse( "( 1.2.3.4 :dn :1.3434.23.2
:= dummyAssertion\\23\\ac )" );
         assertEquals( "1.2.3.4", node.getAttribute() );
-        assertEquals( "dummyAssertion\\23\\ac", StringUtils.Utf8ToString( node.getValue()
) );
+        assertEquals( "dummyAssertion\\23\\ac", StringUtils.utf8ToString( node.getValue()
) );
         assertEquals( "1.3434.23.2", node.getMatchingRuleId() );
         assertTrue( node.dnAttributes() );
         assertEquals( AbstractExprNode.EXTENSIBLE, node.getAssertionType() );
@@ -201,7 +201,7 @@
     {
         ExtensibleNode node = ( ExtensibleNode ) parser.parse( "( ou :stupidMatch := dummyAssertion\\23\\ac
)" );
         assertEquals( "ou", node.getAttribute() );
-        assertEquals( "dummyAssertion\\23\\ac", StringUtils.Utf8ToString( node.getValue()
) );
+        assertEquals( "dummyAssertion\\23\\ac", StringUtils.utf8ToString( node.getValue()
) );
         assertEquals( "stupidMatch", node.getMatchingRuleId() );
         assertFalse( node.dnAttributes() );
         assertEquals( AbstractExprNode.EXTENSIBLE, node.getAssertionType() );
@@ -228,7 +228,7 @@
     {
         ExtensibleNode node = ( ExtensibleNode ) parser.parse( "( ou := dummyAssertion\\23\\ac
)" );
         assertEquals( "ou", node.getAttribute() );
-        assertEquals( "dummyAssertion\\23\\ac", StringUtils.Utf8ToString( node.getValue()
) );
+        assertEquals( "dummyAssertion\\23\\ac", StringUtils.utf8ToString( node.getValue()
) );
         assertEquals( null, node.getMatchingRuleId() );
         assertFalse( node.dnAttributes() );
         assertEquals( AbstractExprNode.EXTENSIBLE, node.getAssertionType() );
@@ -239,7 +239,7 @@
     {
         ExtensibleNode node = ( ExtensibleNode ) parser.parse( "( 1.2.3.4 :1.3434.23.2 :=
dummyAssertion\\23\\ac )" );
         assertEquals( "1.2.3.4", node.getAttribute() );
-        assertEquals( "dummyAssertion\\23\\ac", StringUtils.Utf8ToString( node.getValue()
) );
+        assertEquals( "dummyAssertion\\23\\ac", StringUtils.utf8ToString( node.getValue()
) );
         assertEquals( "1.3434.23.2", node.getMatchingRuleId() );
         assertFalse( node.dnAttributes() );
         assertEquals( AbstractExprNode.EXTENSIBLE, node.getAssertionType() );
@@ -250,7 +250,7 @@
     {
         ExtensibleNode node = ( ExtensibleNode ) parser.parse( "( :dn :stupidMatch := dummyAssertion\\23\\ac
)" );
         assertEquals( null, node.getAttribute() );
-        assertEquals( "dummyAssertion\\23\\ac", StringUtils.Utf8ToString( node.getValue()
) );
+        assertEquals( "dummyAssertion\\23\\ac", StringUtils.utf8ToString( node.getValue()
) );
         assertEquals( "stupidMatch", node.getMatchingRuleId() );
         assertTrue( node.dnAttributes() );
         assertEquals( AbstractExprNode.EXTENSIBLE, node.getAssertionType() );
@@ -277,7 +277,7 @@
     {
         ExtensibleNode node = ( ExtensibleNode ) parser.parse( "( :dn :1.3434.23.2 := dummyAssertion\\23\\ac
)" );
         assertEquals( null, node.getAttribute() );
-        assertEquals( "dummyAssertion\\23\\ac", StringUtils.Utf8ToString( node.getValue()
) );
+        assertEquals( "dummyAssertion\\23\\ac", StringUtils.utf8ToString( node.getValue()
) );
         assertEquals( "1.3434.23.2", node.getMatchingRuleId() );
         assertTrue( node.dnAttributes() );
         assertEquals( AbstractExprNode.EXTENSIBLE, node.getAssertionType() );
@@ -288,7 +288,7 @@
     {
         ExtensibleNode node = ( ExtensibleNode ) parser.parse( "( :stupidMatch := dummyAssertion\\23\\ac
)" );
         assertEquals( null, node.getAttribute() );
-        assertEquals( "dummyAssertion\\23\\ac", StringUtils.Utf8ToString( node.getValue()
) );
+        assertEquals( "dummyAssertion\\23\\ac", StringUtils.utf8ToString( node.getValue()
) );
         assertEquals( "stupidMatch", node.getMatchingRuleId() );
         assertFalse( node.dnAttributes() );
         assertEquals( AbstractExprNode.EXTENSIBLE, node.getAssertionType() );
@@ -299,7 +299,7 @@
     {
         ExtensibleNode node = ( ExtensibleNode ) parser.parse( "( :1.3434.23.2 := dummyAssertion\\23\\ac
)" );
         assertEquals( null, node.getAttribute() );
-        assertEquals( "dummyAssertion\\23\\ac", StringUtils.Utf8ToString( node.getValue()
) );
+        assertEquals( "dummyAssertion\\23\\ac", StringUtils.utf8ToString( node.getValue()
) );
         assertEquals( "1.3434.23.2", node.getMatchingRuleId() );
         assertFalse( node.dnAttributes() );
         assertEquals( AbstractExprNode.EXTENSIBLE, node.getAssertionType() );
@@ -310,7 +310,7 @@
     {
         ExtensibleNode node = ( ExtensibleNode ) parser.parse( "( := dummyAssertion )" );
         assertEquals( null, node.getAttribute() );
-        assertEquals( "dummyAssertion", StringUtils.Utf8ToString( node.getValue() ) );
+        assertEquals( "dummyAssertion", StringUtils.utf8ToString( node.getValue() ) );
         assertEquals( null, node.getMatchingRuleId() );
         assertFalse( node.dnAttributes() );
         assertEquals( AbstractExprNode.EXTENSIBLE, node.getAssertionType() );
@@ -321,7 +321,7 @@
     {
         ExtensibleNode node = ( ExtensibleNode ) parser.parse( "( := dummyAssertion\\23\\ac
)" );
         assertEquals( null, node.getAttribute() );
-        assertEquals( "dummyAssertion\\23\\ac", StringUtils.Utf8ToString( node.getValue()
) );
+        assertEquals( "dummyAssertion\\23\\ac", StringUtils.utf8ToString( node.getValue()
) );
         assertEquals( null, node.getMatchingRuleId() );
         assertFalse( node.dnAttributes() );
         assertEquals( AbstractExprNode.EXTENSIBLE, node.getAssertionType() );



Mime
View raw message