harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r491117 - in /harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang: Deprecated.java Override.java SuppressWarnings.java
Date Fri, 29 Dec 2006 21:54:13 GMT
Author: tellison
Date: Fri Dec 29 13:54:12 2006
New Revision: 491117

URL: http://svn.apache.org/viewvc?view=rev&rev=491117
Log:
Enable annotations on java.lang annotation types.

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Deprecated.java
    harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Override.java
    harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/SuppressWarnings.java

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Deprecated.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Deprecated.java?view=diff&rev=491117&r1=491116&r2=491117
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Deprecated.java (original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Deprecated.java Fri
Dec 29 13:54:12 2006
@@ -16,6 +16,10 @@
 
 package java.lang;
 
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+
 /**
  * <p>
  * An annotation for marking an element as deprecated.
@@ -23,8 +27,7 @@
  * 
  * @since 1.5
  */
-// TODO Enable annotations when Java 5 class files are available.
-// @Documented
-// @Retention(RetentionPolicy.RUNTIME)
+@Documented
+@Retention(RetentionPolicy.RUNTIME)
 public @interface Deprecated {
 }

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Override.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Override.java?view=diff&rev=491117&r1=491116&r2=491117
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Override.java (original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Override.java Fri
Dec 29 13:54:12 2006
@@ -16,6 +16,11 @@
 
 package java.lang;
 
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
 /**
  * <p>
  * An annotation to indicate that a method is intended to override a superclass
@@ -25,8 +30,7 @@
  * 
  * @since 1.5
  */
-// TODO Enable annotations when Java 5 class files are available.
-// @Target(ElementType.METHOD)
-// @Retention(RetentionPolicy.SOURCE)
+@Target(ElementType.METHOD)
+@Retention(RetentionPolicy.SOURCE)
 public @interface Override {
 }

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/SuppressWarnings.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/SuppressWarnings.java?view=diff&rev=491117&r1=491116&r2=491117
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/SuppressWarnings.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/SuppressWarnings.java
Fri Dec 29 13:54:12 2006
@@ -16,6 +16,11 @@
 
 package java.lang;
 
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
 /**
  * <p>
  * An annotation that indicates a compiler should suppress any warnings of the
@@ -24,11 +29,10 @@
  * 
  * @since 1.5
  */
-// TODO Enable annotations when Java 5 class files are available.
-// @Target( { ElementType.TYPE, ElementType.FIELD, ElementType.METHOD,
-// ElementType.PARAMETER, ElementType.CONSTRUCTOR,
-// ElementType.LOCAL_VARIABLE })
-// @Retention(RetentionPolicy.SOURCE)
+@Target( { ElementType.TYPE, ElementType.FIELD, ElementType.METHOD,
+ElementType.PARAMETER, ElementType.CONSTRUCTOR,
+ElementType.LOCAL_VARIABLE })
+@Retention(RetentionPolicy.SOURCE)
 public @interface SuppressWarnings {
     public String[] value();
 }



Mime
View raw message