From: Tom Tromey Date: Thu, 12 Jun 2003 03:13:14 +0000 (+0000) Subject: ClassLoader.java (loadClass): Not deprecated. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3ad93a347592606340d535571e43943199cc3ab8;p=platform%2Fupstream%2Fgcc.git ClassLoader.java (loadClass): Not deprecated. * java/lang/ClassLoader.java (loadClass): Not deprecated. * java/io/PrintStream.java: Not deprecated. From-SVN: r67811 --- diff --git a/libjava/ChangeLog b/libjava/ChangeLog index f5a7dc6..461ed56 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2003-06-11 Tom Tromey + + * java/lang/ClassLoader.java (loadClass): Not deprecated. + * java/io/PrintStream.java: Not deprecated. + 2003-06-11 Scott Gilbertson * gnu/awt/j2d/IntegerGraphicsState.java (drawOval): implemented. diff --git a/libjava/java/io/PrintStream.java b/libjava/java/io/PrintStream.java index af926de..fb12ad8 100644 --- a/libjava/java/io/PrintStream.java +++ b/libjava/java/io/PrintStream.java @@ -51,27 +51,22 @@ package java.io; * created so that any writes are automatically flushed to the underlying * output sink when the current line is terminated. *

- * Note that this class is deprecated. It exists for backward - * compatibility only. New code should be written to use - * PrintWriter instead. - *

* This class converts char's into byte's using the system default encoding. * - * @deprecated - * * @author Aaron M. Renn * @author Tom Tromey */ public class PrintStream extends FilterOutputStream { /* - * Ok, why is this class deprecated? It could easily have been extended - * to support character encodings. In fact, PrintWriter is basically a - * superset of this except for the write() methods. So let's do something - * tricky here and just redirect calls in this class to a hidden PrintWriter - * instance. All the functionality goes there since that is the 'real' - * class. The big win of doing this way is that the default character - * encoding is done automagicially by the PrintWriter tree! + * This class could easily have been extended to support character + * encodings. In fact, PrintWriter is basically a superset of this + * except for the write() methods. So let's do something tricky + * here and just redirect calls in this class to a hidden + * PrintWriter instance. All the functionality goes there since + * that is the 'real' class. The big win of doing this way is that + * the default character encoding is done automagicially by the + * PrintWriter tree! */ /** @@ -98,12 +93,9 @@ public class PrintStream extends FilterOutputStream /** * This method intializes a new PrintStream object to write - * to the specified output sink. Note that this class is deprecated in - * favor of PrintWriter. + * to the specified output sink. * * @param out The OutputStream to write to. - * - * @deprecated */ public PrintStream (OutputStream out) { @@ -116,13 +108,10 @@ public class PrintStream extends FilterOutputStream * functionality to be specified where the stream will be flushed after * every line is terminated or newline character is written. *

- * Note that this class is deprecated in favor of PrintWriter. * * @param out The OutputStream to write to. * @param auto_flush true to flush the stream after every * line, false otherwise - * - * @deprecated */ public PrintStream (OutputStream out, boolean auto_flush) { @@ -138,15 +127,12 @@ public class PrintStream extends FilterOutputStream * functionality to be specified where the stream will be flushed after * every line is terminated or newline character is written. *

- * Note that this class is deprecated in favor of PrintWriter. * * @param out The OutputStream to write to. * @param auto_flush true to flush the stream after every * line, false otherwise * @param encoding The name of the character encoding to use for this * object. - * - * @deprecated */ public PrintStream (OutputStream out, boolean auto_flush, String encoding) throws UnsupportedEncodingException diff --git a/libjava/java/lang/ClassLoader.java b/libjava/java/lang/ClassLoader.java index 65c50bb..5ae70cdb 100644 --- a/libjava/java/lang/ClassLoader.java +++ b/libjava/java/lang/ClassLoader.java @@ -258,7 +258,6 @@ public abstract class ClassLoader * @param link if the class should be linked. * @return the class loaded. * @exception java.lang.ClassNotFoundException - * @deprecated */ protected Class loadClass(String name, boolean link) throws java.lang.ClassNotFoundException