From d99c7b11c5364af6b6353d0bf4c6c52aef21e759 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 24 Feb 2003 16:47:58 +0000 Subject: [PATCH] ClassLoader.java (defineClass(byte[],int,int)): Deprecate. * java/lang/ClassLoader.java (defineClass(byte[],int,int)): Deprecate. * java/lang/Thread.java (resume): Deprecate. * java/io/ByteArrayOutputStream.java (toString(int)): Fixed typo in @deprecated. From-SVN: r63364 --- libjava/ChangeLog | 8 ++++++++ libjava/java/io/ByteArrayOutputStream.java | 4 ++-- libjava/java/lang/ClassLoader.java | 4 +++- libjava/java/lang/Thread.java | 1 + 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index a4c2d2463de..c6346ef3886 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,11 @@ +2003-02-24 Tom Tromey + + * java/lang/ClassLoader.java (defineClass(byte[],int,int)): + Deprecate. + * java/lang/Thread.java (resume): Deprecate. + * java/io/ByteArrayOutputStream.java (toString(int)): Fixed typo + in @deprecated. + 2003-02-23 Tom Tromey * Makefile.in: Rebuilt. diff --git a/libjava/java/io/ByteArrayOutputStream.java b/libjava/java/io/ByteArrayOutputStream.java index 936884e264f..a8d8f22d684 100644 --- a/libjava/java/io/ByteArrayOutputStream.java +++ b/libjava/java/io/ByteArrayOutputStream.java @@ -1,5 +1,5 @@ /* BufferedReader.java - Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc. + Copyright (C) 1998, 1999, 2000, 2001, 2003 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -190,7 +190,7 @@ public class ByteArrayOutputStream extends OutputStream * @return A String containing the data written to this * stream so far * - * @deprecrated + * @deprecated */ public String toString (int hibyte) { diff --git a/libjava/java/lang/ClassLoader.java b/libjava/java/lang/ClassLoader.java index 5d564dce747..65c50bb11ef 100644 --- a/libjava/java/lang/ClassLoader.java +++ b/libjava/java/lang/ClassLoader.java @@ -380,7 +380,9 @@ public abstract class ClassLoader * @return the class defined. * @exception java.lang.ClassNotFoundException * @exception java.lang.LinkageError - * @see ClassLoader#defineClass(String,byte[],int,int) */ + * @see ClassLoader#defineClass(String,byte[],int,int) + * @deprecated use {@link #defineClass(String, byte[], int, int)} instead + */ protected final Class defineClass(byte[] data, int off, int len) throws ClassFormatError { diff --git a/libjava/java/lang/Thread.java b/libjava/java/lang/Thread.java index 33b0f450fa5..32f7d174580 100644 --- a/libjava/java/lang/Thread.java +++ b/libjava/java/lang/Thread.java @@ -297,6 +297,7 @@ public class Thread implements Runnable * Resume a suspended thread. * * @see #resume() + * @deprecated pointless, since suspend is deprecated */ public final native void resume ();