directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r165498 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/Asn1Decoder.java
Date Sun, 01 May 2005 13:01:31 GMT
Author: elecharny
Date: Sun May  1 06:01:30 2005
New Revision: 165498

URL: http://svn.apache.org/viewcvs?rev=165498&view=rev
Log:
Corrected a typo (octect -> octet)

Modified:
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/Asn1Decoder.java

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/Asn1Decoder.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/Asn1Decoder.java?rev=165498&r1=165497&r2=165498&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/Asn1Decoder.java (original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/Asn1Decoder.java Sun
May  1 06:01:30 2005
@@ -219,7 +219,7 @@
         {
 
             Tag  tag    = container.getCurrentTLV().getTag();
-            byte octect = stream.get();
+            byte octet = stream.get();
 
             if ( tag.getSize() >= Tag.MAX_TAG_BYTES )
             {
@@ -228,12 +228,12 @@
                 throw new DecoderException( "Tag label overflow" );
             }
 
-            byte val = ( byte ) ( octect & Tag.LONG_MASK );
+            byte val = ( byte ) ( octet & Tag.LONG_MASK );
 
             tag.setId( ( tag.getId() << 7 ) | val );
             tag.incTagSize();
 
-            if ( val == octect )
+            if ( val == octet )
             {
 
                 // The Tag is completed, so let's decode the Length
@@ -381,16 +381,16 @@
             while ( length.getCurrentLength() < length.getExpectedLength() )
             {
 
-                byte octect = stream.get();
+                byte octet = stream.get();
 
                 if ( DEBUG )
                 {
-                    log.debug( "  current byte : " + StringUtils.dumpByte( octect ) );
+                    log.debug( "  current byte : " + StringUtils.dumpByte( octet ) );
                 }
 
                 length.incCurrentLength();
                 length.incSize();
-                length.setLength( ( length.getLength() << 8 ) | octect );
+                length.setLength( ( length.getLength() << 8 ) | octet );
             }
 
             container.setState( TLVStateEnum.LENGTH_STATE_END );



Mime
View raw message