diff options
author | Gary Benson <gbenson@redhat.com> | 2006-11-21 16:18:08 +0000 |
---|---|---|
committer | Gary Benson <gary@gcc.gnu.org> | 2006-11-21 16:18:08 +0000 |
commit | 7ddd83802bc3821c810364c7f41dbf3c50ffe3ff (patch) | |
tree | 8ba92a066883da898010d22e9eada90fb4b695b1 /libjava/java/lang/Class.java | |
parent | 0b2229b0b06b8799aaf9a982c66a1175d3ea8a28 (diff) | |
download | gcc-7ddd83802bc3821c810364c7f41dbf3c50ffe3ff.zip gcc-7ddd83802bc3821c810364c7f41dbf3c50ffe3ff.tar.gz gcc-7ddd83802bc3821c810364c7f41dbf3c50ffe3ff.tar.bz2 |
Security.java: Merge with classpath.
2006-11-21 Gary Benson <gbenson@redhat.com>
* java/security/Security.java: Merge with classpath.
* java/lang/Package.java: Likewise.
* java/lang/Class.java (getDeclaredAnnotations): New method.
From-SVN: r119057
Diffstat (limited to 'libjava/java/lang/Class.java')
-rw-r--r-- | libjava/java/lang/Class.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libjava/java/lang/Class.java b/libjava/java/lang/Class.java index 75819e8..f301f35 100644 --- a/libjava/java/lang/Class.java +++ b/libjava/java/lang/Class.java @@ -40,6 +40,7 @@ package java.lang; import java.io.InputStream; import java.io.Serializable; +import java.lang.annotation.Annotation; import java.lang.reflect.Constructor; import java.lang.reflect.Field; import java.lang.reflect.GenericDeclaration; @@ -949,6 +950,23 @@ public final class Class implements Type, GenericDeclaration, Serializable } /** + * Returns all annotations directly defined by this class. If there are + * no annotations associated with this class, then a zero-length array + * will be returned. The returned array may be modified by the client + * code, but this will have no effect on the annotation content of this + * class, and hence no effect on the return value of this method for + * future callers. + * + * @return the annotations directly defined by this class. + * @since 1.5 + */ + public Annotation[] getDeclaredAnnotations() + { + // FIXME write real implementation + return new Annotation[0]; + } + + /** * Returns the class which immediately encloses this class. If this class * is a top-level class, this method returns <code>null</code>. * |