[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] [generics] Patch: FYI: add imports for annotations
From: |
Tom Tromey |
Subject: |
[cp-patches] [generics] Patch: FYI: add imports for annotations |
Date: |
04 Sep 2004 18:34:07 -0600 |
I'm checking this in.
This adds some needed imports to the annotation classes in java.lang.
Tom
Index: ChangeLog
from Tom Tromey <address@hidden>
* java/lang/SuppressWarnings.java: Added imports.
* java/lang/Override.java: Added imports.
* java/lang/Deprecated.java: Added imports.
Index: java/lang/Deprecated.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/lang/Attic/Deprecated.java,v
retrieving revision 1.1.2.2
diff -u -r1.1.2.2 Deprecated.java
--- java/lang/Deprecated.java 7 Aug 2004 19:01:27 -0000 1.1.2.2
+++ java/lang/Deprecated.java 5 Sep 2004 00:50:52 -0000
@@ -37,6 +37,10 @@
package java.lang;
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import static java.lang.annotation.RetentionPolicy.SOURCE;
+
@Documented @Retention(SOURCE)
public @interface Deprecated
{
Index: java/lang/Override.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/lang/Attic/Override.java,v
retrieving revision 1.1.2.2
diff -u -r1.1.2.2 Override.java
--- java/lang/Override.java 7 Aug 2004 19:01:27 -0000 1.1.2.2
+++ java/lang/Override.java 5 Sep 2004 00:50:52 -0000
@@ -37,6 +37,11 @@
package java.lang;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+import static java.lang.annotation.RetentionPolicy.SOURCE;
+import static java.lang.annotation.ElementType.METHOD;
+
@Retention(SOURCE) @Target(METHOD)
public @interface Override
{
Index: java/lang/SuppressWarnings.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/lang/Attic/SuppressWarnings.java,v
retrieving revision 1.1.2.1
diff -u -r1.1.2.1 SuppressWarnings.java
--- java/lang/SuppressWarnings.java 7 Aug 2004 00:27:06 -0000 1.1.2.1
+++ java/lang/SuppressWarnings.java 5 Sep 2004 00:50:52 -0000
@@ -37,6 +37,11 @@
package java.lang;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+import static java.lang.annotation.RetentionPolicy.SOURCE;
+import static java.lang.annotation.ElementType.*;
+
@Retention(SOURCE)
@Target({TYPE, FIELD, METHOD, PARAMETER, CONSTRUCTOR, LOCAL_VARIABLE})
public @interface SuppressWarnings
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] [generics] Patch: FYI: add imports for annotations,
Tom Tromey <=