You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by nd...@apache.org on 2006/06/25 13:04:38 UTC

svn commit: r417006 - in /incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang: Deprecated.java Override.java SuppressWarnings.java

Author: ndbeyer
Date: Sun Jun 25 04:04:37 2006
New Revision: 417006

URL: http://svn.apache.org/viewvc?rev=417006&view=rev
Log:
Stub out all java.lang annotations.

Added:
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Deprecated.java   (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Override.java   (with props)
Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/SuppressWarnings.java

Added: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Deprecated.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Deprecated.java?rev=417006&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Deprecated.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Deprecated.java Sun Jun 25 04:04:37 2006
@@ -0,0 +1,29 @@
+/* Copyright 2006 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package java.lang;
+
+/**
+ * <p>
+ * An annotation for marking an element as deprecated.
+ * </p>
+ * 
+ * @since 1.5
+ */
+// TODO Enable annotations when Java 5 class files are available.
+// @Documented
+// @Retention(RetentionPolicy.RUNTIME)
+public @interface Deprecated {
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Deprecated.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Override.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Override.java?rev=417006&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Override.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Override.java Sun Jun 25 04:04:37 2006
@@ -0,0 +1,31 @@
+/* Copyright 2006 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package java.lang;
+
+/**
+ * <p>
+ * An annotation to indicate that a method is intended to override a superclass
+ * method. This provides a compile-time assertion that a method actually
+ * overrides the superclass method.
+ * </p>
+ * 
+ * @since 1.5
+ */
+// TODO Enable annotations when Java 5 class files are available.
+// @Target(ElementType.METHOD)
+// @Retention(RetentionPolicy.SOURCE)
+public @interface Override {
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Override.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/SuppressWarnings.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/SuppressWarnings.java?rev=417006&r1=417005&r2=417006&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/SuppressWarnings.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/SuppressWarnings.java Sun Jun 25 04:04:37 2006
@@ -15,20 +15,19 @@
 
 package java.lang;
 
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-import java.lang.annotation.Retention;
-import java.lang.annotation.ElementType;
-
 /**
- * Stub implementation
+ * <p>
+ * An annotation that indicates a compiler should suppress any warnings of the
+ * type specified in the {@link #value()}.
+ * </p>
+ * 
+ * @since 1.5
  */
-// GCH -- below lines do not compile inside Eclipse (OK with RI javac & jsr14
-// target)
-//@Target( { ElementType.TYPE, ElementType.FIELD, ElementType.METHOD,
-//        ElementType.PARAMETER, ElementType.CONSTRUCTOR,
-//        ElementType.LOCAL_VARIABLE })
-//@Retention(RetentionPolicy.SOURCE)
+// 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)
 public @interface SuppressWarnings {
     public String[] value();
 }