summaryrefslogtreecommitdiffstats
path: root/libjava/classpath/java/lang/reflect
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/classpath/java/lang/reflect')
-rw-r--r--libjava/classpath/java/lang/reflect/AccessibleObject.java6
-rw-r--r--libjava/classpath/java/lang/reflect/AnnotatedElement.java2
-rw-r--r--libjava/classpath/java/lang/reflect/Array.java12
-rw-r--r--libjava/classpath/java/lang/reflect/Constructor.java38
-rw-r--r--libjava/classpath/java/lang/reflect/Field.java14
-rw-r--r--libjava/classpath/java/lang/reflect/GenericArrayType.java2
-rw-r--r--libjava/classpath/java/lang/reflect/GenericDeclaration.java2
-rw-r--r--libjava/classpath/java/lang/reflect/InvocationHandler.java2
-rw-r--r--libjava/classpath/java/lang/reflect/MalformedParameterizedTypeException.java6
-rw-r--r--libjava/classpath/java/lang/reflect/Method.java42
-rw-r--r--libjava/classpath/java/lang/reflect/Modifier.java4
-rw-r--r--libjava/classpath/java/lang/reflect/Proxy.java14
-rw-r--r--libjava/classpath/java/lang/reflect/Type.java2
-rw-r--r--libjava/classpath/java/lang/reflect/TypeVariable.java6
-rw-r--r--libjava/classpath/java/lang/reflect/WildcardType.java4
15 files changed, 78 insertions, 78 deletions
diff --git a/libjava/classpath/java/lang/reflect/AccessibleObject.java b/libjava/classpath/java/lang/reflect/AccessibleObject.java
index 328f81d7933..75676913d43 100644
--- a/libjava/classpath/java/lang/reflect/AccessibleObject.java
+++ b/libjava/classpath/java/lang/reflect/AccessibleObject.java
@@ -91,9 +91,9 @@ public class AccessibleObject
* <code>ReflectPermission("suppressAccessChecks")</code>.<p>
*
* It is forbidden to set the accessibility flag to true on any constructor
- * for java.lang.Class. This will result in a SecurityException. If the
+ * for java.lang.Class. This will result in a SecurityException. If the
* SecurityException is thrown for any of the passed AccessibleObjects,
- * the accessibility flag will be set on AccessibleObjects in the array prior
+ * the accessibility flag will be set on AccessibleObjects in the array prior
* to the one which resulted in the exception.
*
* @param array the array of accessible objects
@@ -115,7 +115,7 @@ public class AccessibleObject
* manager exists, it is checked for
* <code>ReflectPermission("suppressAccessChecks")</code>.<p>
*
- * It is forbidden to set the accessibility flag to true on any constructor for
+ * It is forbidden to set the accessibility flag to true on any constructor for
* java.lang.Class. This will result in a SecurityException.
*
* @param flag the desired state of accessibility, true to bypass security
diff --git a/libjava/classpath/java/lang/reflect/AnnotatedElement.java b/libjava/classpath/java/lang/reflect/AnnotatedElement.java
index 8f2a8b6f5c8..0179a0f4cca 100644
--- a/libjava/classpath/java/lang/reflect/AnnotatedElement.java
+++ b/libjava/classpath/java/lang/reflect/AnnotatedElement.java
@@ -57,7 +57,7 @@ import java.lang.annotation.Annotation;
* <code>AnnotationTypeMismatchException</code> or
* <code>IncompleteAnnotationException</code>.
* </p>
- *
+ *
* @author Tom Tromey (tromey@redhat.com)
* @author Andrew John Hughes (gnu_andrew@member.fsf.org)
* @since 1.5
diff --git a/libjava/classpath/java/lang/reflect/Array.java b/libjava/classpath/java/lang/reflect/Array.java
index d64e36c3790..a31e48ea6a6 100644
--- a/libjava/classpath/java/lang/reflect/Array.java
+++ b/libjava/classpath/java/lang/reflect/Array.java
@@ -248,7 +248,7 @@ public final class Array
throw new NullPointerException();
throw new IllegalArgumentException();
}
-
+
/**
* Gets an element of a byte array.
*
@@ -422,11 +422,11 @@ public final class Array
{
if (array instanceof Object[])
{
- // Too bad the API won't let us throw the easier ArrayStoreException!
- if (value != null
- && ! array.getClass().getComponentType().isInstance(value))
- throw new IllegalArgumentException();
- ((Object[]) array)[index] = value;
+ // Too bad the API won't let us throw the easier ArrayStoreException!
+ if (value != null
+ && ! array.getClass().getComponentType().isInstance(value))
+ throw new IllegalArgumentException();
+ ((Object[]) array)[index] = value;
}
else if (value instanceof Byte)
setByte(array, index, ((Byte) value).byteValue());
diff --git a/libjava/classpath/java/lang/reflect/Constructor.java b/libjava/classpath/java/lang/reflect/Constructor.java
index d9b7e831216..d6c8d793422 100644
--- a/libjava/classpath/java/lang/reflect/Constructor.java
+++ b/libjava/classpath/java/lang/reflect/Constructor.java
@@ -7,7 +7,7 @@ GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
-
+
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
@@ -81,7 +81,7 @@ import java.lang.annotation.Annotation;
public final class Constructor<T>
extends AccessibleObject
implements GenericDeclaration, Member
-{
+{
private static final int CONSTRUCTOR_MODIFIERS
= Modifier.PRIVATE | Modifier.PROTECTED | Modifier.PUBLIC;
@@ -108,7 +108,7 @@ public final class Constructor<T>
*/
public Class<T> getDeclaringClass()
{
- // Inescapable as the VM layer is 1.4 based.
+ // Inescapable as the VM layer is 1.4 based.
@SuppressWarnings("unchecked")
Class<T> declClass = (Class<T>) cons.getDeclaringClass();
return declClass;
@@ -314,7 +314,7 @@ public final class Constructor<T>
throws InstantiationException, IllegalAccessException,
InvocationTargetException
{
- // Inescapable as the VM layer is 1.4 based.
+ // Inescapable as the VM layer is 1.4 based.
@SuppressWarnings("unchecked")
T ins = (T) cons.construct(args);
return ins;
@@ -336,10 +336,10 @@ public final class Constructor<T>
{
if (p == null)
{
- String sig = cons.getSignature();
- if (sig == null)
- return new TypeVariable[0];
- p = new MethodSignatureParser(this, sig);
+ String sig = cons.getSignature();
+ if (sig == null)
+ return new TypeVariable[0];
+ p = new MethodSignatureParser(this, sig);
}
return p.getTypeParameters();
}
@@ -350,7 +350,7 @@ public final class Constructor<T>
* An array of size zero is returned if this constructor declares no
* exceptions.
*
- * @return the exception types declared by this constructor.
+ * @return the exception types declared by this constructor.
* @throws GenericSignatureFormatError if the generic signature does
* not conform to the format specified in the Virtual Machine
* specification, version 3.
@@ -360,10 +360,10 @@ public final class Constructor<T>
{
if (p == null)
{
- String sig = cons.getSignature();
- if (sig == null)
- return getExceptionTypes();
- p = new MethodSignatureParser(this, sig);
+ String sig = cons.getSignature();
+ if (sig == null)
+ return getExceptionTypes();
+ p = new MethodSignatureParser(this, sig);
}
return p.getGenericExceptionTypes();
}
@@ -384,10 +384,10 @@ public final class Constructor<T>
{
if (p == null)
{
- String sig = cons.getSignature();
- if (sig == null)
- return getParameterTypes();
- p = new MethodSignatureParser(this, sig);
+ String sig = cons.getSignature();
+ if (sig == null)
+ return getParameterTypes();
+ p = new MethodSignatureParser(this, sig);
}
return p.getGenericParameterTypes();
}
@@ -406,7 +406,7 @@ public final class Constructor<T>
* The returned annotations are serialized. Changing the annotations has
* no affect on the return value of future calls to this method.
* </p>
- *
+ *
* @return an array of arrays which represents the annotations used on the
* parameters of this constructor. The order of the array elements
* matches the declaration order of the parameters.
@@ -428,7 +428,7 @@ public final class Constructor<T>
*/
public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
{
- // Inescapable as the VM layer is 1.4 based.
+ // Inescapable as the VM layer is 1.4 based.
@SuppressWarnings("unchecked")
T ann = (T) cons.getAnnotation(annotationClass);
return ann;
diff --git a/libjava/classpath/java/lang/reflect/Field.java b/libjava/classpath/java/lang/reflect/Field.java
index b9d92884564..29ca795b8ad 100644
--- a/libjava/classpath/java/lang/reflect/Field.java
+++ b/libjava/classpath/java/lang/reflect/Field.java
@@ -7,7 +7,7 @@ GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
-
+
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
@@ -691,11 +691,11 @@ extends AccessibleObject implements Member
{
if (p == null)
{
- String signature = f.getSignature();
- if (signature == null)
- return getType();
- p = new FieldSignatureParser(getDeclaringClass(),
- signature);
+ String signature = f.getSignature();
+ if (signature == null)
+ return getType();
+ p = new FieldSignatureParser(getDeclaringClass(),
+ signature);
}
return p.getFieldType();
}
@@ -711,7 +711,7 @@ extends AccessibleObject implements Member
*/
public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
{
- // Inescapable as the VM layer is 1.4 based. T will erase to Annotation anyway.
+ // Inescapable as the VM layer is 1.4 based. T will erase to Annotation anyway.
@SuppressWarnings("unchecked") T ann = (T) f.getAnnotation(annotationClass);
return ann;
}
diff --git a/libjava/classpath/java/lang/reflect/GenericArrayType.java b/libjava/classpath/java/lang/reflect/GenericArrayType.java
index 8dc33a796c5..2e080247c9d 100644
--- a/libjava/classpath/java/lang/reflect/GenericArrayType.java
+++ b/libjava/classpath/java/lang/reflect/GenericArrayType.java
@@ -46,7 +46,7 @@ package java.lang.reflect;
* @author Andrew John Hughes (gnu_andrew@member.fsf.org)
* @since 1.5
*/
-public interface GenericArrayType
+public interface GenericArrayType
extends Type
{
diff --git a/libjava/classpath/java/lang/reflect/GenericDeclaration.java b/libjava/classpath/java/lang/reflect/GenericDeclaration.java
index 244befd8810..d78aba91315 100644
--- a/libjava/classpath/java/lang/reflect/GenericDeclaration.java
+++ b/libjava/classpath/java/lang/reflect/GenericDeclaration.java
@@ -52,7 +52,7 @@ public interface GenericDeclaration
* Returns a <code>TypeVariable</code> object for each type variable
* declared by this entity, in order of declaration. An empty array
* is returned if no type variables are declared.
- *
+ *
* @return an array of <code>TypeVariable</code> objects.
* @throws GenericSignatureFormatError if the signature format within the
* class file does not conform to that specified in the 3rd edition
diff --git a/libjava/classpath/java/lang/reflect/InvocationHandler.java b/libjava/classpath/java/lang/reflect/InvocationHandler.java
index 208e621eedc..3d30afd931e 100644
--- a/libjava/classpath/java/lang/reflect/InvocationHandler.java
+++ b/libjava/classpath/java/lang/reflect/InvocationHandler.java
@@ -55,7 +55,7 @@ package java.lang.reflect;
* work on any object in general.</p>
*
* <p>Hints for implementing this class:</p>
- *
+ *
* <ul>
* <li>Don't forget that Object.equals, Object.hashCode, and
* Object.toString will call this handler. In particular,
diff --git a/libjava/classpath/java/lang/reflect/MalformedParameterizedTypeException.java b/libjava/classpath/java/lang/reflect/MalformedParameterizedTypeException.java
index 50ae23000e7..bfbe3bc89fa 100644
--- a/libjava/classpath/java/lang/reflect/MalformedParameterizedTypeException.java
+++ b/libjava/classpath/java/lang/reflect/MalformedParameterizedTypeException.java
@@ -38,7 +38,7 @@ exception statement from your version. */
package java.lang.reflect;
-/**
+/**
* This exception class is thrown when one of the reflection
* methods encountered an invalid parameterized type within
* the metadata of a class. One possible reason for this
@@ -47,9 +47,9 @@ package java.lang.reflect;
*
* @author Tom Tromey (tromey@redhat.com)
* @author Andrew John Hughes (gnu_andrew@member.fsf.org)
- * @since 1.5
+ * @since 1.5
*/
-public class MalformedParameterizedTypeException
+public class MalformedParameterizedTypeException
extends RuntimeException
{
private static final long serialVersionUID = -5696557788586220964L;
diff --git a/libjava/classpath/java/lang/reflect/Method.java b/libjava/classpath/java/lang/reflect/Method.java
index 0a532ddb6f2..fe4b2eb1fb3 100644
--- a/libjava/classpath/java/lang/reflect/Method.java
+++ b/libjava/classpath/java/lang/reflect/Method.java
@@ -7,7 +7,7 @@ GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
-
+
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
@@ -333,7 +333,7 @@ extends AccessibleObject implements Member, GenericDeclaration
* An array of size zero is returned if this class has no type
* variables.
*
- * @return the type variables associated with this class.
+ * @return the type variables associated with this class.
* @throws GenericSignatureFormatError if the generic signature does
* not conform to the format specified in the Virtual Machine
* specification, version 3.
@@ -343,10 +343,10 @@ extends AccessibleObject implements Member, GenericDeclaration
{
if (p == null)
{
- String sig = m.getSignature();
- if (sig == null)
- return (TypeVariable<Method>[]) new TypeVariable[0];
- p = new MethodSignatureParser(this, sig);
+ String sig = m.getSignature();
+ if (sig == null)
+ return (TypeVariable<Method>[]) new TypeVariable[0];
+ p = new MethodSignatureParser(this, sig);
}
return p.getTypeParameters();
}
@@ -357,7 +357,7 @@ extends AccessibleObject implements Member, GenericDeclaration
* An array of size zero is returned if this method declares no
* exceptions.
*
- * @return the exception types declared by this method.
+ * @return the exception types declared by this method.
* @throws GenericSignatureFormatError if the generic signature does
* not conform to the format specified in the Virtual Machine
* specification, version 3.
@@ -367,10 +367,10 @@ extends AccessibleObject implements Member, GenericDeclaration
{
if (p == null)
{
- String sig = m.getSignature();
- if (sig == null)
- return getExceptionTypes();
- p = new MethodSignatureParser(this, sig);
+ String sig = m.getSignature();
+ if (sig == null)
+ return getExceptionTypes();
+ p = new MethodSignatureParser(this, sig);
}
return p.getGenericExceptionTypes();
}
@@ -391,10 +391,10 @@ extends AccessibleObject implements Member, GenericDeclaration
{
if (p == null)
{
- String sig = m.getSignature();
- if (sig == null)
- return getParameterTypes();
- p = new MethodSignatureParser(this, sig);
+ String sig = m.getSignature();
+ if (sig == null)
+ return getParameterTypes();
+ p = new MethodSignatureParser(this, sig);
}
return p.getGenericParameterTypes();
}
@@ -412,10 +412,10 @@ extends AccessibleObject implements Member, GenericDeclaration
{
if (p == null)
{
- String sig = m.getSignature();
- if (sig == null)
- return getReturnType();
- p = new MethodSignatureParser(this, sig);
+ String sig = m.getSignature();
+ if (sig == null)
+ return getReturnType();
+ p = new MethodSignatureParser(this, sig);
}
return p.getGenericReturnType();
}
@@ -450,7 +450,7 @@ extends AccessibleObject implements Member, GenericDeclaration
* The returned annotations are serialized. Changing the annotations has
* no affect on the return value of future calls to this method.
* </p>
- *
+ *
* @return an array of arrays which represents the annotations used on the
* parameters of this method. The order of the array elements
* matches the declaration order of the parameters.
@@ -472,7 +472,7 @@ extends AccessibleObject implements Member, GenericDeclaration
*/
public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
{
- // Inescapable as the VM layer is 1.4 based. T will erase to Annotation anyway.
+ // Inescapable as the VM layer is 1.4 based. T will erase to Annotation anyway.
@SuppressWarnings("unchecked")
T ann = (T) m.getAnnotation(annotationClass);
return ann;
diff --git a/libjava/classpath/java/lang/reflect/Modifier.java b/libjava/classpath/java/lang/reflect/Modifier.java
index 45d9b51a75e..15bad05e738 100644
--- a/libjava/classpath/java/lang/reflect/Modifier.java
+++ b/libjava/classpath/java/lang/reflect/Modifier.java
@@ -7,7 +7,7 @@ GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
-
+
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
@@ -345,7 +345,7 @@ public class Modifier
r.append("strictfp ");
if (isInterface(mod))
r.append("interface ");
-
+
// Trim trailing space.
if ((mod & ALL_FLAGS) != 0)
r.setLength(r.length() - 1);
diff --git a/libjava/classpath/java/lang/reflect/Proxy.java b/libjava/classpath/java/lang/reflect/Proxy.java
index fb2004e790b..0e76124df01 100644
--- a/libjava/classpath/java/lang/reflect/Proxy.java
+++ b/libjava/classpath/java/lang/reflect/Proxy.java
@@ -217,7 +217,7 @@ public class Proxy implements Serializable
* <p>There are several restrictions on this method, the violation of
* which will result in an IllegalArgumentException or
* NullPointerException:</p>
- *
+ *
* <ul>
* <li>All objects in `interfaces' must represent distinct interfaces.
* Classes, primitive types, null, and duplicates are forbidden.</li>
@@ -258,7 +258,7 @@ public class Proxy implements Serializable
// synchronized so that we aren't trying to build the same class
// simultaneously in two threads
public static synchronized Class<?> getProxyClass(ClassLoader loader,
- Class<?>... interfaces)
+ Class<?>... interfaces)
{
interfaces = (Class[]) interfaces.clone();
ProxyType pt = new ProxyType(loader, interfaces);
@@ -274,7 +274,7 @@ public class Proxy implements Serializable
: ProxyData.getProxyData(pt));
clazz = (VMProxy.HAVE_NATIVE_GENERATE_PROXY_CLASS
- ? VMProxy.generateProxyClass(loader, data)
+ ? VMProxy.generateProxyClass(loader, data)
: new ClassFactory(data).generate(loader));
}
@@ -716,7 +716,7 @@ public class Proxy implements Serializable
if (! Modifier.isPublic(inter.getModifiers()))
if (in_package)
{
- String p = getPackage(inter);
+ String p = getPackage(inter);
if (! data.pack.equals(p))
throw new IllegalArgumentException("non-public interfaces "
+ "from different "
@@ -769,7 +769,7 @@ public class Proxy implements Serializable
* Method.equals as it would also check the declaring class, what we do not
* want. We only want to check that the given method have the same signature
* as a core method (same name and parameter types)
- *
+ *
* @param method the method to check
* @return whether the method has the same name and parameter types as
* Object.equals, Object.hashCode or Object.toString
@@ -795,7 +795,7 @@ public class Proxy implements Serializable
}
return false;
}
-
+
} // class ProxyData
/**
@@ -1260,7 +1260,7 @@ public class Proxy implements Serializable
ProtectionDomain.class };
Method m = vmClassLoader.getDeclaredMethod("defineClass", types);
// We can bypass the security check of setAccessible(true), since
- // we're in the same package.
+ // we're in the same package.
m.flag = true;
Object[] args = {loader, qualName, bytecode, Integer.valueOf(0),
diff --git a/libjava/classpath/java/lang/reflect/Type.java b/libjava/classpath/java/lang/reflect/Type.java
index c9ea5bfb9cb..41b0a9ca9e8 100644
--- a/libjava/classpath/java/lang/reflect/Type.java
+++ b/libjava/classpath/java/lang/reflect/Type.java
@@ -49,7 +49,7 @@ package java.lang.reflect;
* @author Tom Tromey (tromey@redhat.com)
* @author Andrew John Hughes (gnu_andrew@member.fsf.org)
* @since 1.5
- */
+ */
public interface Type
{
}
diff --git a/libjava/classpath/java/lang/reflect/TypeVariable.java b/libjava/classpath/java/lang/reflect/TypeVariable.java
index ec6af69db4f..671c290ba1d 100644
--- a/libjava/classpath/java/lang/reflect/TypeVariable.java
+++ b/libjava/classpath/java/lang/reflect/TypeVariable.java
@@ -39,13 +39,13 @@ exception statement from your version. */
package java.lang.reflect;
/**
- * <p>
+ * <p>
* This is a common interface for all type variables provided by
* the Java language. Instances are created the first time a type
* variable is needed by one of the reflective methods declared in
* this package.
* </p>
- * <p>
+ * <p>
* Creating a type variable requires resolving the appropriate type.
* This may involve resolving other classes as a side effect (e.g.
* if the type is nested inside other classes). Creation should not
@@ -57,7 +57,7 @@ package java.lang.reflect;
* @author Tom Tromey (tromey@redhat.com)
* @author Andrew John Hughes (gnu_andrew@member.fsf.org)
* @since 1.5
- */
+ */
public interface TypeVariable<T extends GenericDeclaration> extends Type
{
diff --git a/libjava/classpath/java/lang/reflect/WildcardType.java b/libjava/classpath/java/lang/reflect/WildcardType.java
index 4f789067cf0..43b5d0a4005 100644
--- a/libjava/classpath/java/lang/reflect/WildcardType.java
+++ b/libjava/classpath/java/lang/reflect/WildcardType.java
@@ -84,7 +84,7 @@ public interface WildcardType extends Type
* the lower bounds of this type do not actually exist.
* @throws MalformedParameterizedTypeException if any of the types
* refer to a type which can not be instantiated.
- */
+ */
Type[] getLowerBounds();
/**
@@ -109,7 +109,7 @@ public interface WildcardType extends Type
* the upper bounds of this type do not actually exist.
* @throws MalformedParameterizedTypeException if any of the types
* refer to a type which can not be instantiated.
- */
+ */
Type[] getUpperBounds();
}
OpenPOWER on IntegriCloud