summaryrefslogtreecommitdiff
path: root/vm
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2006-03-02 00:36:44 +0000
committerTom Tromey <tromey@redhat.com>2006-03-02 00:36:44 +0000
commit736cfde13c5c8130e4ef03bac7df7c023d8eaed6 (patch)
tree86577a0e9f56eea063bec929a132c06c52cf4c06 /vm
parenta74a99d87b7e06ee240e922ea9be5da323c55225 (diff)
downloadclasspath-736cfde13c5c8130e4ef03bac7df7c023d8eaed6.tar.gz
* vm/reference/java/net/VMNetworkInterface.java: Organized imports.
* vm/reference/java/net/VMInetAddress.java: Organized imports. * vm/reference/java/lang/reflect/VMProxy.java (getProxyClass): Added imports for javadoc. (getProxyClass): Javadoc fixes. (getProxyData): Likewise. (generateProxyClass): Likewise. * vm/reference/java/lang/VMSystem.java (setIn): Javadoc fix. (setOut): Likewise. (setErr): Likewise. * vm/reference/java/lang/VMProcess.java: Javadoc fixes. * vm/reference/java/lang/VMClassLoader.java (getResources): Javadoc fix. * vm/reference/java/lang/VMClass.java (getComponentType): Import for javadoc. (getModifiers): Likewise. (getDeclaredClasses): Javadoc fix. (getDeclaredFields): Likewise. (getDeclaredMethods): Likewise. (getDeclaredConstructors): Likewise. * vm/reference/gnu/classpath/VMSystemProperties.java (preInit): Javadoc fix.
Diffstat (limited to 'vm')
-rw-r--r--vm/reference/gnu/classpath/VMSystemProperties.java2
-rw-r--r--vm/reference/java/lang/VMClass.java12
-rw-r--r--vm/reference/java/lang/VMClassLoader.java1
-rw-r--r--vm/reference/java/lang/VMProcess.java4
-rw-r--r--vm/reference/java/lang/VMSystem.java6
-rw-r--r--vm/reference/java/lang/reflect/VMProxy.java9
-rw-r--r--vm/reference/java/net/VMInetAddress.java6
-rw-r--r--vm/reference/java/net/VMNetworkInterface.java1
8 files changed, 17 insertions, 24 deletions
diff --git a/vm/reference/gnu/classpath/VMSystemProperties.java b/vm/reference/gnu/classpath/VMSystemProperties.java
index e7cb91fde..1e0dd4e26 100644
--- a/vm/reference/gnu/classpath/VMSystemProperties.java
+++ b/vm/reference/gnu/classpath/VMSystemProperties.java
@@ -81,7 +81,7 @@ class VMSystemProperties
* <dt>gnu.cpu.endian <dd>"big" or "little"
* </dl>
*
- * @param p the Properties object to insert the system properties into
+ * @param properties the Properties object to insert the system properties into
*/
static native void preInit(Properties properties);
diff --git a/vm/reference/java/lang/VMClass.java b/vm/reference/java/lang/VMClass.java
index a48e299ee..1b4c13e6b 100644
--- a/vm/reference/java/lang/VMClass.java
+++ b/vm/reference/java/lang/VMClass.java
@@ -37,9 +37,11 @@ exception statement from your version. */
package java.lang;
+import java.lang.reflect.Array;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
+import java.lang.reflect.Modifier;
/*
* This class is a reference version, mainly for compiling a class library
@@ -188,7 +190,7 @@ final class VMClass
* @param ignoreInnerClassesAttrib if set, return the real modifiers, not
* the ones specified in the InnerClasses attribute.
* @return the modifiers of this class
- * @see Modifer
+ * @see Modifier
* @since 1.1
*/
static native int getModifiers(Class klass, boolean ignoreInnerClassesAttrib);
@@ -207,7 +209,7 @@ final class VMClass
* Like <code>getDeclaredClasses()</code> but without the security checks.
*
* @param klass the Class object that's calling us
- * @param pulicOnly Only public classes should be returned
+ * @param publicOnly Only public classes should be returned
*/
static native Class[] getDeclaredClasses(Class klass, boolean publicOnly);
@@ -215,7 +217,7 @@ final class VMClass
* Like <code>getDeclaredFields()</code> but without the security checks.
*
* @param klass the Class object that's calling us
- * @param pulicOnly Only public fields should be returned
+ * @param publicOnly Only public fields should be returned
*/
static native Field[] getDeclaredFields(Class klass, boolean publicOnly);
@@ -223,7 +225,7 @@ final class VMClass
* Like <code>getDeclaredMethods()</code> but without the security checks.
*
* @param klass the Class object that's calling us
- * @param pulicOnly Only public methods should be returned
+ * @param publicOnly Only public methods should be returned
*/
static native Method[] getDeclaredMethods(Class klass, boolean publicOnly);
@@ -232,7 +234,7 @@ final class VMClass
* the security checks.
*
* @param klass the Class object that's calling us
- * @param pulicOnly Only public constructors should be returned
+ * @param publicOnly Only public constructors should be returned
*/
static native Constructor[] getDeclaredConstructors(Class klass, boolean publicOnly);
diff --git a/vm/reference/java/lang/VMClassLoader.java b/vm/reference/java/lang/VMClassLoader.java
index a777462aa..7412afecc 100644
--- a/vm/reference/java/lang/VMClassLoader.java
+++ b/vm/reference/java/lang/VMClassLoader.java
@@ -170,7 +170,6 @@ final class VMClassLoader
*
* @param name the resource to find
* @return an enumeration of resources
- * @throws IOException if one occurs
*/
static Enumeration getResources(String name)
{
diff --git a/vm/reference/java/lang/VMProcess.java b/vm/reference/java/lang/VMProcess.java
index fa157d752..26cfcc9bc 100644
--- a/vm/reference/java/lang/VMProcess.java
+++ b/vm/reference/java/lang/VMProcess.java
@@ -50,7 +50,7 @@ import java.util.LinkedList;
* is {@link Object#notifyAll notifyAll()}'d each time the state changes.
* The state of all instances is managed by a single dedicated thread
* which does the actual fork()/exec() and wait() system calls. User
- * threads {@link Object#wait wait()} on the instance when creating the
+ * threads {@link Object#wait()} on the instance when creating the
* process or waiting for it to terminate.
*
* <p>
@@ -60,7 +60,7 @@ import java.util.LinkedList;
*
* @author Archie Cobbs
* @see Process
- * @see Runtime#exec
+ * @see Runtime#exec(String)
*/
final class VMProcess extends Process
{
diff --git a/vm/reference/java/lang/VMSystem.java b/vm/reference/java/lang/VMSystem.java
index 70f9dbac2..8a83cad92 100644
--- a/vm/reference/java/lang/VMSystem.java
+++ b/vm/reference/java/lang/VMSystem.java
@@ -101,7 +101,7 @@ final class VMSystem
*/
/**
- * Set {@link #in} to a new InputStream.
+ * Set {@link System#in} to a new InputStream.
*
* @param in the new InputStream
* @see #setIn(InputStream)
@@ -109,7 +109,7 @@ final class VMSystem
static native void setIn(InputStream in);
/**
- * Set {@link #out} to a new PrintStream.
+ * Set {@link System#out} to a new PrintStream.
*
* @param out the new PrintStream
* @see #setOut(PrintStream)
@@ -117,7 +117,7 @@ final class VMSystem
static native void setOut(PrintStream out);
/**
- * Set {@link #err} to a new PrintStream.
+ * Set {@link System#err} to a new PrintStream.
*
* @param err the new PrintStream
* @see #setErr(PrintStream)
diff --git a/vm/reference/java/lang/reflect/VMProxy.java b/vm/reference/java/lang/reflect/VMProxy.java
index d3a2f17b7..8c7b67a72 100644
--- a/vm/reference/java/lang/reflect/VMProxy.java
+++ b/vm/reference/java/lang/reflect/VMProxy.java
@@ -83,10 +83,10 @@ final class VMProxy
* were violated, except for problems with null
* @throws NullPointerException if `interfaces' is null or contains
* a null entry, or if handler is null
- * @see Configuration#HAVE_NATIVE_GET_PROXY_CLASS
+ * @see #HAVE_NATIVE_GET_PROXY_CLASS
* @see #getProxyClass(ClassLoader, Class[])
* @see #getProxyData(ClassLoader, Class[])
- * @see #generateProxyClass(ProxyData)
+ * @see #generateProxyClass(ClassLoader, Proxy.ProxyData)
*/
static native Class getProxyClass(ClassLoader loader, Class[] interfaces);
@@ -105,10 +105,10 @@ final class VMProxy
* were violated, except for problems with null
* @throws NullPointerException if `interfaces' is null or contains
* a null entry, or if handler is null
- * @see Configuration.HAVE_NATIVE_GET_PROXY_DATA
+ * @see #HAVE_NATIVE_GET_PROXY_DATA
* @see #getProxyClass(ClassLoader, Class[])
* @see #getProxyClass(ClassLoader, Class[])
- * @see ProxyType#getProxyData()
+ * @see Proxy.ProxyData#getProxyData(Proxy.ProxyType)
*/
static native Proxy.ProxyData getProxyData(ClassLoader loader,
Class[] interfaces);
@@ -129,7 +129,6 @@ final class VMProxy
* @throws IllegalArgumentException if VM limitations are exceeded
* @see #getProxyClass(ClassLoader, Class[])
* @see #getProxyClass(ClassLoader, Class[])
- * @see ProxyData#generateProxyClass(ClassLoader)
*/
static native Class generateProxyClass(ClassLoader loader,
Proxy.ProxyData data);
diff --git a/vm/reference/java/net/VMInetAddress.java b/vm/reference/java/net/VMInetAddress.java
index 1253ded73..19f5d7d34 100644
--- a/vm/reference/java/net/VMInetAddress.java
+++ b/vm/reference/java/net/VMInetAddress.java
@@ -40,13 +40,7 @@ package java.net;
import gnu.classpath.Configuration;
-import java.io.IOException;
-import java.io.ObjectInputStream;
-import java.io.ObjectOutputStream;
-import java.io.ObjectStreamException;
import java.io.Serializable;
-import java.util.HashMap;
-import java.util.StringTokenizer;
class VMInetAddress implements Serializable
{
diff --git a/vm/reference/java/net/VMNetworkInterface.java b/vm/reference/java/net/VMNetworkInterface.java
index d63de8452..47f803246 100644
--- a/vm/reference/java/net/VMNetworkInterface.java
+++ b/vm/reference/java/net/VMNetworkInterface.java
@@ -40,7 +40,6 @@ package java.net;
import gnu.classpath.Configuration;
-import java.util.Enumeration;
import java.util.Vector;
/**