diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 6a366c5fbd2..6829f6efa92 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,5 +1,7 @@ 2001-10-24 Tom Tromey + * java/lang/reflect/Field.java: Made many methods private. + * java/sql/Types.java (Types): New constructor. Tue Oct 23 23:52:18 2001 Anthony Green diff --git a/libjava/java/lang/reflect/Field.java b/libjava/java/lang/reflect/Field.java index 122f1bf3b1b..6410a7f770d 100644 --- a/libjava/java/lang/reflect/Field.java +++ b/libjava/java/lang/reflect/Field.java @@ -144,7 +144,7 @@ public final class Field extends AccessibleObject implements Member private native double getDouble (Class caller, Object obj) throws IllegalArgumentException, IllegalAccessException; - public native Object get (Class caller, Object obj) + private native Object get (Class caller, Object obj) throws IllegalArgumentException, IllegalAccessException; public void setByte (Object obj, byte b) @@ -195,28 +195,28 @@ public final class Field extends AccessibleObject implements Member setBoolean(null, obj, b); } - public native void setByte (Class caller, Object obj, byte b) + private native void setByte (Class caller, Object obj, byte b) throws IllegalArgumentException, IllegalAccessException; - public native void setShort (Class caller, Object obj, short s) + private native void setShort (Class caller, Object obj, short s) throws IllegalArgumentException, IllegalAccessException; - public native void setInt (Class caller, Object obj, int i) + private native void setInt (Class caller, Object obj, int i) throws IllegalArgumentException, IllegalAccessException; - public native void setLong (Class caller, Object obj, long l) + private native void setLong (Class caller, Object obj, long l) throws IllegalArgumentException, IllegalAccessException; - public native void setFloat (Class caller, Object obj, float f) + private native void setFloat (Class caller, Object obj, float f) throws IllegalArgumentException, IllegalAccessException; - public native void setDouble (Class caller, Object obj, double d) + private native void setDouble (Class caller, Object obj, double d) throws IllegalArgumentException, IllegalAccessException; - public native void setChar (Class caller, Object obj, char c) + private native void setChar (Class caller, Object obj, char c) throws IllegalArgumentException, IllegalAccessException; - public native void setBoolean (Class caller, Object obj, boolean b) + private native void setBoolean (Class caller, Object obj, boolean b) throws IllegalArgumentException, IllegalAccessException; private native void set (Class caller, Object obj, Object val, Class type) @@ -228,7 +228,7 @@ public final class Field extends AccessibleObject implements Member set(null, object, value); } - public void set (Class caller, Object object, Object value) + private void set (Class caller, Object object, Object value) throws IllegalArgumentException, IllegalAccessException { Class type = getType();