2004-11-22 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/SocketChannelImpl.java (read): Made check for blocking un-ambiguous. Removed wrong check for data array length. From-SVN: r91028
This commit is contained in:
committed by
Michael Koch
parent
23ba09f070
commit
392cd098c5
@@ -227,12 +227,9 @@ public final class SocketChannelImpl extends SocketChannel
|
||||
int available = input.available();
|
||||
int len = dst.capacity() - dst.position();
|
||||
|
||||
if (! isBlocking() && available == 0)
|
||||
if ((! isBlocking()) && available == 0)
|
||||
return 0;
|
||||
|
||||
if (len > available)
|
||||
len = available;
|
||||
|
||||
if (dst.hasArray())
|
||||
{
|
||||
offset = dst.arrayOffset() + dst.position();
|
||||
|
||||
Reference in New Issue
Block a user