You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2005/08/29 07:32:31 UTC
svn commit: r264076 -
/directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/codec/grammar/AbandonRequestGrammar.java
Author: elecharny
Date: Sun Aug 28 22:32:27 2005
New Revision: 264076
URL: http://svn.apache.org/viewcvs?rev=264076&view=rev
Log:
- Supressed the DEBUG member
- modified the MessageId to abandonedMessageId
Modified:
directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/codec/grammar/AbandonRequestGrammar.java
Modified: directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/codec/grammar/AbandonRequestGrammar.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/codec/grammar/AbandonRequestGrammar.java?rev=264076&r1=264075&r2=264076&view=diff
==============================================================================
--- directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/codec/grammar/AbandonRequestGrammar.java (original)
+++ directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/codec/grammar/AbandonRequestGrammar.java Sun Aug 28 22:32:27 2005
@@ -48,9 +48,6 @@
/** The logger */
private static final Logger log = LoggerFactory.getLogger( AbandonRequestGrammar.class );
- /** Logging speed up */
- private static final boolean DEBUG = log.isDebugEnabled();
-
/** The instance of grammar. AbandonRequestGrammar is a singleton */
private static IGrammar instance = new AbandonRequestGrammar();
@@ -102,9 +99,9 @@
Value value = tlv.getValue();
- int messageId = IntegerDecoder.parse( value, 0, Integer.MAX_VALUE );
+ int abandonnedMessageId = IntegerDecoder.parse( value, 0, Integer.MAX_VALUE );
- if ( ( messageId < 0 ) || ( messageId > Integer.MAX_VALUE ) )
+ if ( ( abandonnedMessageId < 0 ) || ( abandonnedMessageId > Integer.MAX_VALUE ) )
{
throw new DecoderException(
"The message ID must be between (0 .. 2 147 483 647)" );
@@ -116,7 +113,7 @@
// in the AbandonRequest object
// Object in the LDAPMessage
AbandonRequest abandonRequest = new AbandonRequest();
- abandonRequest.setMessageId( messageId );
+ abandonRequest.setAbandonedMessageId( abandonnedMessageId );
ldapMessage.setProtocolOP( abandonRequest );
return;