Skip to content

Commit 92767e9

Browse files
author
Oleg Obolenskiy
committed
there is a trivial fix of issue-215
1 parent 672a687 commit 92767e9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/tarantool/protocol/ProtoUtils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import java.net.Socket;
1616
import java.net.SocketAddress;
1717
import java.net.SocketException;
18+
import java.nio.Buffer;
1819
import java.nio.ByteBuffer;
1920
import java.nio.channels.NonReadableChannelException;
2021
import java.nio.channels.ReadableByteChannel;
@@ -180,7 +181,7 @@ public static TarantoolGreeting connect(SocketChannel channel,
180181
assertCorrectWelcome(firstLine, channel.getRemoteAddress());
181182
final String serverVersion = firstLine.substring(WELCOME.length());
182183

183-
welcomeBytes.clear();
184+
((Buffer)welcomeBytes).clear();
184185
channel.read(welcomeBytes);
185186
String salt = new String(welcomeBytes.array());
186187

0 commit comments

Comments
 (0)