aboutsummaryrefslogtreecommitdiff
path: root/libjava/classpath/sun
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/classpath/sun')
-rw-r--r--libjava/classpath/sun/misc/Service.java5
-rw-r--r--libjava/classpath/sun/misc/ServiceConfigurationError.java1
-rw-r--r--libjava/classpath/sun/reflect/annotation/AnnotationInvocationHandler.java50
-rw-r--r--libjava/classpath/sun/reflect/annotation/AnnotationParser.java4
-rw-r--r--libjava/classpath/sun/reflect/annotation/AnnotationType.java2
-rw-r--r--libjava/classpath/sun/reflect/annotation/EnumConstantNotPresentExceptionProxy.java2
-rw-r--r--libjava/classpath/sun/reflect/annotation/ExceptionProxy.java2
7 files changed, 32 insertions, 34 deletions
diff --git a/libjava/classpath/sun/misc/Service.java b/libjava/classpath/sun/misc/Service.java
index bdcbbfe..88ff509 100644
--- a/libjava/classpath/sun/misc/Service.java
+++ b/libjava/classpath/sun/misc/Service.java
@@ -54,13 +54,12 @@ public class Service
* implemented by any loaded service providers.
* @param cl the class loader that will be used to load the
* service providers, or <code>null</code> for the system class
- * loader.
+ * loader.
* @return an iterator over the service providers.
- */
+ */
public static <P> Iterator<P> providers(Class<P> c, ClassLoader cl)
{
return (Iterator<P>) ServiceFactory.lookupProviders(c, cl);
}
}
-
diff --git a/libjava/classpath/sun/misc/ServiceConfigurationError.java b/libjava/classpath/sun/misc/ServiceConfigurationError.java
index 9c29d6e..e66aad7 100644
--- a/libjava/classpath/sun/misc/ServiceConfigurationError.java
+++ b/libjava/classpath/sun/misc/ServiceConfigurationError.java
@@ -61,4 +61,3 @@ public class ServiceConfigurationError
}
-
diff --git a/libjava/classpath/sun/reflect/annotation/AnnotationInvocationHandler.java b/libjava/classpath/sun/reflect/annotation/AnnotationInvocationHandler.java
index f132d81..909e7ae 100644
--- a/libjava/classpath/sun/reflect/annotation/AnnotationInvocationHandler.java
+++ b/libjava/classpath/sun/reflect/annotation/AnnotationInvocationHandler.java
@@ -8,7 +8,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
@@ -79,19 +79,19 @@ public final class AnnotationInvocationHandler
public static Annotation create(Class type, Map memberValues)
{
for (Method m : type.getDeclaredMethods())
- {
- String name = m.getName();
- if (! memberValues.containsKey(name))
- {
- // FIXME: what to do about exceptions here?
- memberValues.put(name, m.getDefaultValue());
- }
- }
+ {
+ String name = m.getName();
+ if (! memberValues.containsKey(name))
+ {
+ // FIXME: what to do about exceptions here?
+ memberValues.put(name, m.getDefaultValue());
+ }
+ }
AnnotationInvocationHandler handler
- = new AnnotationInvocationHandler(type, memberValues);
+ = new AnnotationInvocationHandler(type, memberValues);
return (Annotation) Proxy.newProxyInstance(type.getClassLoader(),
- new Class[] { type },
- handler);
+ new Class[] { type },
+ handler);
}
/**
@@ -318,31 +318,31 @@ public final class AnnotationInvocationHandler
private Object arrayClone(Object obj)
{
if (obj instanceof boolean[])
- return ((boolean[]) obj).clone();
+ return ((boolean[]) obj).clone();
if (obj instanceof byte[])
- return ((byte[]) obj).clone();
+ return ((byte[]) obj).clone();
if (obj instanceof char[])
- return ((char[]) obj).clone();
+ return ((char[]) obj).clone();
if (obj instanceof short[])
- return ((short[]) obj).clone();
+ return ((short[]) obj).clone();
if (obj instanceof int[])
- return ((int[]) obj).clone();
+ return ((int[]) obj).clone();
if (obj instanceof float[])
- return ((float[]) obj).clone();
+ return ((float[]) obj).clone();
if (obj instanceof long[])
- return ((long[]) obj).clone();
+ return ((long[]) obj).clone();
if (obj instanceof double[])
- return ((double[]) obj).clone();
+ return ((double[]) obj).clone();
if (obj instanceof Object[])
- return ((Object[]) obj).clone();
+ return ((Object[]) obj).clone();
return obj;
}
@@ -377,10 +377,10 @@ public final class AnnotationInvocationHandler
throw new AnnotationTypeMismatchException(method,
val.getClass().getName());
}
- if (val.getClass().isArray())
- {
- val = arrayClone(val);
- }
+ if (val.getClass().isArray())
+ {
+ val = arrayClone(val);
+ }
return val;
}
}
diff --git a/libjava/classpath/sun/reflect/annotation/AnnotationParser.java b/libjava/classpath/sun/reflect/annotation/AnnotationParser.java
index a5452d0..bce3057 100644
--- a/libjava/classpath/sun/reflect/annotation/AnnotationParser.java
+++ b/libjava/classpath/sun/reflect/annotation/AnnotationParser.java
@@ -8,7 +8,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
@@ -48,7 +48,7 @@ public class AnnotationParser
{
public static Annotation annotationForMap(Class<? extends Annotation> annoType,
- Map<String, Object> map)
+ Map<String, Object> map)
throws NotImplementedException
{
return null;
diff --git a/libjava/classpath/sun/reflect/annotation/AnnotationType.java b/libjava/classpath/sun/reflect/annotation/AnnotationType.java
index 38d8aa8..6bd231b 100644
--- a/libjava/classpath/sun/reflect/annotation/AnnotationType.java
+++ b/libjava/classpath/sun/reflect/annotation/AnnotationType.java
@@ -8,7 +8,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
diff --git a/libjava/classpath/sun/reflect/annotation/EnumConstantNotPresentExceptionProxy.java b/libjava/classpath/sun/reflect/annotation/EnumConstantNotPresentExceptionProxy.java
index 33b0dae..c2f2856 100644
--- a/libjava/classpath/sun/reflect/annotation/EnumConstantNotPresentExceptionProxy.java
+++ b/libjava/classpath/sun/reflect/annotation/EnumConstantNotPresentExceptionProxy.java
@@ -8,7 +8,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
diff --git a/libjava/classpath/sun/reflect/annotation/ExceptionProxy.java b/libjava/classpath/sun/reflect/annotation/ExceptionProxy.java
index 97556c7..c790704 100644
--- a/libjava/classpath/sun/reflect/annotation/ExceptionProxy.java
+++ b/libjava/classpath/sun/reflect/annotation/ExceptionProxy.java
@@ -8,7 +8,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