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:
parent
23ba09f070
commit
392cd098c5
2 changed files with 7 additions and 4 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue