summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-07-15 23:52:01 (EDT)
committerEike Stepper2007-07-15 23:52:01 (EDT)
commit8211c2e6149a8a09f5d5810c097e135fbdaa4c30 (patch)
treee4b58f8e73e4e245f0e53d9bd13abc0345578000
parent247f5b67a0c116d769bee74ba0d6e75461372530 (diff)
downloadcdo-8211c2e6149a8a09f5d5810c097e135fbdaa4c30.zip
cdo-8211c2e6149a8a09f5d5810c097e135fbdaa4c30.tar.gz
cdo-8211c2e6149a8a09f5d5810c097e135fbdaa4c30.tar.bz2
*** empty log message ***
-rw-r--r--plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/io/IOUtil.java14
-rw-r--r--plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/Buffer.java1
-rw-r--r--plugins/org.eclipse.net4j/src/org/eclipse/net4j/stream/BufferInputStream.java1
-rw-r--r--plugins/org.eclipse.net4j/src/org/eclipse/net4j/stream/BufferOutputStream.java1
4 files changed, 7 insertions, 10 deletions
diff --git a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/io/IOUtil.java b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/io/IOUtil.java
index e9f3785..0e735e2 100644
--- a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/io/IOUtil.java
+++ b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/io/IOUtil.java
@@ -25,29 +25,23 @@ import java.io.PrintStream;
*/
public final class IOUtil
{
- private static final InputStream IN = System.in;
-
- private static final PrintStream OUT = System.out;
-
- private static final PrintStream ERR = System.err;
-
private IOUtil()
{
}
public static InputStream IN()
{
- return IN;
+ return System.in;
}
public static PrintStream OUT()
{
- return OUT;
+ return System.out;
}
public static PrintStream ERR()
{
- return ERR;
+ return System.err;
}
public static void print(Throwable t, PrintStream stream)
@@ -57,7 +51,7 @@ public final class IOUtil
public static void print(Throwable t)
{
- print(t, ERR);
+ print(t, System.err);
}
public static IOException closeSilent(Closeable closeable)
diff --git a/plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/Buffer.java b/plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/Buffer.java
index 7670809..3a7ef4b 100644
--- a/plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/Buffer.java
+++ b/plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/Buffer.java
@@ -283,6 +283,7 @@ public class Buffer implements IBuffer
return "Buffer@" + ReflectUtil.getID(this); //$NON-NLS-1$
}
+ @SuppressWarnings("deprecation")
public String formatContent()
{
final int oldPosition = byteBuffer.position();
diff --git a/plugins/org.eclipse.net4j/src/org/eclipse/net4j/stream/BufferInputStream.java b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/stream/BufferInputStream.java
index 1af344a..1254e53 100644
--- a/plugins/org.eclipse.net4j/src/org/eclipse/net4j/stream/BufferInputStream.java
+++ b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/stream/BufferInputStream.java
@@ -51,6 +51,7 @@ public class BufferInputStream extends InputStream implements IBufferHandler
buffers.add(buffer);
}
+ @SuppressWarnings("deprecation")
@Override
public int read() throws IOException
{
diff --git a/plugins/org.eclipse.net4j/src/org/eclipse/net4j/stream/BufferOutputStream.java b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/stream/BufferOutputStream.java
index 6c0a916..8e09832 100644
--- a/plugins/org.eclipse.net4j/src/org/eclipse/net4j/stream/BufferOutputStream.java
+++ b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/stream/BufferOutputStream.java
@@ -62,6 +62,7 @@ public class BufferOutputStream extends OutputStream
this(bufferHandler, extractBufferProvider(bufferHandler), channelIndex);
}
+ @SuppressWarnings("deprecation")
@Override
public void write(int b) throws IOException
{