directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r159442 - directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/Asn1Decoder.java
Date Tue, 29 Mar 2005 22:53:04 GMT
Author: elecharny
Date: Tue Mar 29 14:53:03 2005
New Revision: 159442

URL: http://svn.apache.org/viewcvs?view=rev&rev=159442
Log:
Fixed a call to the new Value.setData() method.

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?view=diff&r1=159441&r2=159442
==============================================================================
--- 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 Tue
Mar 29 14:53:03 2005
@@ -485,7 +485,7 @@
             if ( nbBytes < length )
             {
                 currentTlv.getValue().init( length );
-                currentTlv.getValue().setData( stream.array() );
+                currentTlv.getValue().setData( stream );
                 container.setState( TLVStateEnum.VALUE_STATE_PENDING );
 
                 return END;
@@ -526,7 +526,7 @@
 
         if ( ( currentLength + nbBytes ) < length )
         {
-            currentTlv.getValue().addData( stream.array() );
+            currentTlv.getValue().addData( stream );
             container.setState( TLVStateEnum.VALUE_STATE_PENDING );
 
             return END;



Mime
View raw message