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:
Michael Koch 2004-11-22 20:32:56 +00:00 committed by Michael Koch
parent 23ba09f070
commit 392cd098c5
2 changed files with 7 additions and 4 deletions

View file

@ -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();