directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r239537 - /directory/asn1/branches/asn1-new-ber/ber-new/src/java/main/org/apache/asn1new/ber/Asn1Decoder.java
Date Wed, 24 Aug 2005 06:22:43 GMT
Author: elecharny
Date: Tue Aug 23 23:22:40 2005
New Revision: 239537

URL: http://svn.apache.org/viewcvs?rev=239537&view=rev
Log:
Replaced a value by a constant ( 14 -> UniversalTag.RESERVED_14 ...)

Modified:
    directory/asn1/branches/asn1-new-ber/ber-new/src/java/main/org/apache/asn1new/ber/Asn1Decoder.java

Modified: directory/asn1/branches/asn1-new-ber/ber-new/src/java/main/org/apache/asn1new/ber/Asn1Decoder.java
URL: http://svn.apache.org/viewcvs/directory/asn1/branches/asn1-new-ber/ber-new/src/java/main/org/apache/asn1new/ber/Asn1Decoder.java?rev=239537&r1=239536&r2=239537&view=diff
==============================================================================
--- directory/asn1/branches/asn1-new-ber/ber-new/src/java/main/org/apache/asn1new/ber/Asn1Decoder.java
(original)
+++ directory/asn1/branches/asn1-new-ber/ber-new/src/java/main/org/apache/asn1new/ber/Asn1Decoder.java
Tue Aug 23 23:22:40 2005
@@ -24,6 +24,7 @@
 import org.apache.asn1new.ber.tlv.ITLVBerDecoderMBean;
 import org.apache.asn1new.ber.tlv.TLVStateEnum;
 import org.apache.asn1new.ber.tlv.Tag;
+import org.apache.asn1new.ber.tlv.UniversalTag;
 import org.apache.asn1new.ber.tlv.Value;
 import org.apache.asn1new.util.StringUtils;
 
@@ -138,7 +139,7 @@
                 if ( tag.isUniversal() )
                 {
 
-                    if ( ( value == 14 ) || ( value == 15 ) )
+                    if ( ( value == UniversalTag.RESERVED_14 ) || ( value == UniversalTag.RESERVED_15
) )
                     {
                         throw new DecoderException( "Universal tag " + value + " is reserved"
);
                     }



Mime
View raw message