Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2009-02-25 09:53:32 +0000
committerEike Stepper2009-02-25 09:53:32 +0000
commita60e87327a7661a0db0ec8f6e5e5a0f5faa651b0 (patch)
tree2a9ffd00ecf6d5b7df40edddbe1062eceae6ad83 /plugins/org.eclipse.net4j.examples
parent2025145f571e7a82228839c36355af4ed79d9e27 (diff)
downloadcdo-a60e87327a7661a0db0ec8f6e5e5a0f5faa651b0.tar.gz
cdo-a60e87327a7661a0db0ec8f6e5e5a0f5faa651b0.tar.xz
cdo-a60e87327a7661a0db0ec8f6e5e5a0f5faa651b0.zip
don't use system.in
Diffstat (limited to 'plugins/org.eclipse.net4j.examples')
-rw-r--r--plugins/org.eclipse.net4j.examples/src/org/eclipse/net4j/examples/echo/server/EchoServer.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/org.eclipse.net4j.examples/src/org/eclipse/net4j/examples/echo/server/EchoServer.java b/plugins/org.eclipse.net4j.examples/src/org/eclipse/net4j/examples/echo/server/EchoServer.java
index 8d0a79b8da..9359f67015 100644
--- a/plugins/org.eclipse.net4j.examples/src/org/eclipse/net4j/examples/echo/server/EchoServer.java
+++ b/plugins/org.eclipse.net4j.examples/src/org/eclipse/net4j/examples/echo/server/EchoServer.java
@@ -16,6 +16,7 @@ import org.eclipse.net4j.internal.examples.bundle.OM;
import org.eclipse.net4j.tcp.TCPUtil;
import org.eclipse.net4j.util.container.ContainerUtil;
import org.eclipse.net4j.util.container.IManagedContainer;
+import org.eclipse.net4j.util.io.IOUtil;
import org.eclipse.net4j.util.lifecycle.LifecycleUtil;
import org.eclipse.net4j.util.om.OMPlatform;
import org.eclipse.net4j.util.om.log.PrintLogHandler;
@@ -49,7 +50,7 @@ public class EchoServer
OM.LOG.info("Accepting connections: " + acceptor);
System.out.println("Press any key to shutdown");
- while (System.in.read() == -1)
+ while (IOUtil.IN().read() == -1)
{
Thread.sleep(200);
}

Back to the top