directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r491267 - /directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/LdapMessageGrammar.java
Date Sat, 30 Dec 2006 18:24:30 GMT
Author: elecharny
Date: Sat Dec 30 10:24:29 2006
New Revision: 491267

URL: http://svn.apache.org/viewvc?view=rev&rev=491267
Log:
Replaced new Integer( xxx ) by Integer.valueof( xxx )

Modified:
    directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/LdapMessageGrammar.java

Modified: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/LdapMessageGrammar.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/LdapMessageGrammar.java?view=diff&rev=491267&r1=491266&r2=491267
==============================================================================
--- directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/LdapMessageGrammar.java
(original)
+++ directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/LdapMessageGrammar.java
Sat Dec 30 10:24:29 2006
@@ -299,8 +299,8 @@
                     // The Length should be null
                     if ( expectedLength != 0 )
                     {
-                        log.error( "The length of a UnBindRequest must be null, the actual
value is {}", new Integer(
-                            expectedLength ) );
+                        log.error( "The length of a UnBindRequest must be null, the actual
value is {}", 
+                            Integer.valueOf( expectedLength ) );
                         
                         // This will generate a PROTOCOL_ERROR
                         throw new DecoderException( "The length of a UnBindRequest must be
null" );
@@ -454,7 +454,7 @@
 
                         if ( IS_DEBUG )
                         {
-                            log.debug( "AbandonMessage Id has been decoded : {}", new Integer(
abandonnedMessageId ) );
+                            log.debug( "AbandonMessage Id has been decoded : {}", Integer.valueOf(
abandonnedMessageId ) );
                         }
 
                         ldapMessageContainer.grammarEndAllowed( true );
@@ -546,7 +546,7 @@
 
                         if ( IS_DEBUG )
                         {
-                            log.debug( "Ldap version ", new Integer( version ) );
+                            log.debug( "Ldap version ", Integer.valueOf( version ) );
                         }
 
                         bindRequestMessage.setVersion( version );
@@ -3708,7 +3708,7 @@
 
                     if ( IS_DEBUG )
                     {
-                        log.debug( "The sizeLimit value is set to {} objects", new Integer(
sizeLimit ) );
+                        log.debug( "The sizeLimit value is set to {} objects", Integer.valueOf(
sizeLimit ) );
                     }
 
                     return;
@@ -3757,7 +3757,7 @@
 
                     if ( IS_DEBUG )
                     {
-                        log.debug( "The timeLimit value is set to {} seconds", new Integer(
timeLimit ) );
+                        log.debug( "The timeLimit value is set to {} seconds", Integer.valueOf(
timeLimit ) );
                     }
 
                     return;
@@ -6100,7 +6100,7 @@
 
                     if ( IS_DEBUG )
                     {
-                        log.debug( "DN Attributes : {}", new Boolean( extensibleMatchFilter.isDnAttributes()
) );
+                        log.debug( "DN Attributes : {}", Boolean.valueOf( extensibleMatchFilter.isDnAttributes()
) );
                     }
                     
                     // unstack the filters if needed



Mime
View raw message