Skip to content
Permalink
Browse files
Added a Buffer Cast in order to avoid potential compilation issue whe…
…n mixing Java versions
  • Loading branch information
elecharny committed Jan 13, 2022
1 parent cd94294 commit 5764dade2013ee709a6807c68d8409967de9c9da
Showing 1 changed file with 3 additions and 2 deletions.
@@ -20,6 +20,7 @@
package org.apache.directory.api.asn1.ber;


import java.nio.Buffer;
import java.nio.ByteBuffer;

import org.apache.directory.api.asn1.ber.grammar.Grammar;
@@ -307,7 +308,7 @@ public void setMaxPDUSize( int maxPDUSize )
* {@inheritDoc}
*/
@Override
public ByteBuffer getStream()
public ByteBuffer getStream()
{
return stream;
}
@@ -330,7 +331,7 @@ public void setStream( ByteBuffer stream )
public void rewind()
{
int start = stream.position() - 1 - tlv.getLengthNbBytes();
stream.position( start );
( ( Buffer ) stream ).position( start );
}


0 comments on commit 5764dad

Please sign in to comment.