aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/net
diff options
context:
space:
mode:
authorMichael Koch <konqueror@gmx.de>2004-04-20 20:32:41 +0000
committerMichael Koch <mkoch@gcc.gnu.org>2004-04-20 20:32:41 +0000
commitf58746340da196699a80060c3726279e549c1c1a (patch)
treed4563755ff8b8ed4fe879392b1f26b362ba70024 /libjava/java/net
parentc56122d841f0a8f8941f435e9e0e98d3b04f937b (diff)
downloadgcc-f58746340da196699a80060c3726279e549c1c1a.zip
gcc-f58746340da196699a80060c3726279e549c1c1a.tar.gz
gcc-f58746340da196699a80060c3726279e549c1c1a.tar.bz2
2004-04-20 Michael Koch <konqueror@gmx.de>
* java/net/ServerSocket.java Merged coding style from GNU classpath. From-SVN: r80922
Diffstat (limited to 'libjava/java/net')
-rw-r--r--libjava/java/net/ServerSocket.java19
1 files changed, 8 insertions, 11 deletions
diff --git a/libjava/java/net/ServerSocket.java b/libjava/java/net/ServerSocket.java
index 037421d..e2f0314 100644
--- a/libjava/java/net/ServerSocket.java
+++ b/libjava/java/net/ServerSocket.java
@@ -91,7 +91,7 @@ public class ServerSocket
throw new NullPointerException("impl may not be null");
this.impl = impl;
- this.impl.create (true);
+ this.impl.create(true);
}
/*
@@ -370,11 +370,10 @@ public class ServerSocket
// it is in non-blocking mode, we throw an IllegalBlockingModeException.
// However, in our implementation if the channel itself initiated this
// operation, then we must honor it regardless of its blocking mode.
- if (getChannel() != null
- && !getChannel().isBlocking ()
- && !((PlainSocketImpl) getImpl()).isInChannelOperation())
- throw new IllegalBlockingModeException ();
-
+ if (getChannel() != null && ! getChannel().isBlocking()
+ && ! ((PlainSocketImpl) getImpl()).isInChannelOperation())
+ throw new IllegalBlockingModeException();
+
impl.accept(socket.getImpl());
}
@@ -579,11 +578,9 @@ public class ServerSocket
{
if (! isBound())
return "ServerSocket[unbound]";
-
- return ("ServerSocket[addr=" + getInetAddress()
- + ",port=" + impl.getPort()
- + ",localport=" + impl.getLocalPort()
- + "]");
+
+ return ("ServerSocket[addr=" + getInetAddress() + ",port="
+ + impl.getPort() + ",localport=" + impl.getLocalPort() + "]");
}
/**