harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndbe...@apache.org
Subject svn commit: r446470 - in /incubator/harmony/enhanced/classlib/trunk/modules/annotation: ./ .settings/ META-INF/ make/ src/main/java/java/lang/annotation/
Date Fri, 15 Sep 2006 02:34:33 GMT
Author: ndbeyer
Date: Thu Sep 14 19:34:32 2006
New Revision: 446470

URL: http://svn.apache.org/viewvc?view=rev&rev=446470
Log:
Set eol-style = native for annotation module.

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/annotation/.classpath   (contents, props
changed)
    incubator/harmony/enhanced/classlib/trunk/modules/annotation/.project   (contents, props
changed)
    incubator/harmony/enhanced/classlib/trunk/modules/annotation/.settings/org.eclipse.jdt.core.prefs
  (contents, props changed)
    incubator/harmony/enhanced/classlib/trunk/modules/annotation/.settings/org.eclipse.jdt.ui.prefs
  (contents, props changed)
    incubator/harmony/enhanced/classlib/trunk/modules/annotation/.settings/org.eclipse.pde.core.prefs
  (contents, props changed)
    incubator/harmony/enhanced/classlib/trunk/modules/annotation/META-INF/MANIFEST.MF   (contents,
props changed)
    incubator/harmony/enhanced/classlib/trunk/modules/annotation/make/patternset.txt   (props
changed)
    incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/Annotation.java
  (contents, props changed)
    incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/AnnotationFormatError.java
  (contents, props changed)
    incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/AnnotationTypeMismatchException.java
  (contents, props changed)
    incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/ElementType.java
  (contents, props changed)
    incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/IncompleteAnnotationException.java
  (contents, props changed)
    incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/RetentionPolicy.java
  (contents, props changed)

Modified: incubator/harmony/enhanced/classlib/trunk/modules/annotation/.classpath
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/annotation/.classpath?view=diff&rev=446470&r1=446469&r2=446470
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/annotation/.classpath (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/annotation/.classpath Thu Sep 14 19:34:32
2006
@@ -1,8 +1,8 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
-	<classpathentry output="bin/main" kind="src" path="src/main/java"/>
-	<classpathentry output="bin/test" kind="src" path="src/test/java"/>
-	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
-	<classpathentry sourcepath="JUNIT_SRC_HOME/junitsrc.zip" kind="var" path="JUNIT_HOME/junit.jar"/>
-	<classpathentry kind="output" path="bin"/>
-</classpath>
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry output="bin/main" kind="src" path="src/main/java"/>
+	<classpathentry output="bin/test" kind="src" path="src/test/java"/>
+	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+	<classpathentry sourcepath="JUNIT_SRC_HOME/junitsrc.zip" kind="var" path="JUNIT_HOME/junit.jar"/>
+	<classpathentry kind="output" path="bin"/>
+</classpath>

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/annotation/.classpath
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/harmony/enhanced/classlib/trunk/modules/annotation/.project
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/annotation/.project?view=diff&rev=446470&r1=446469&r2=446470
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/annotation/.project (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/annotation/.project Thu Sep 14 19:34:32
2006
@@ -1,28 +1,28 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
-	<name>annotation</name>
-	<comment></comment>
-	<projects>
-	</projects>
-	<buildSpec>
-		<buildCommand>
-			<name>org.eclipse.jdt.core.javabuilder</name>
-			<arguments>
-			</arguments>
-		</buildCommand>
-		<buildCommand>
-			<name>org.eclipse.pde.ManifestBuilder</name>
-			<arguments>
-			</arguments>
-		</buildCommand>
-		<buildCommand>
-			<name>org.eclipse.pde.SchemaBuilder</name>
-			<arguments>
-			</arguments>
-		</buildCommand>
-	</buildSpec>
-	<natures>
-		<nature>org.eclipse.pde.PluginNature</nature>
-		<nature>org.eclipse.jdt.core.javanature</nature>
-	</natures>
-</projectDescription>
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>annotation</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.pde.ManifestBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.pde.SchemaBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.pde.PluginNature</nature>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+	</natures>
+</projectDescription>

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/annotation/.project
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/harmony/enhanced/classlib/trunk/modules/annotation/.settings/org.eclipse.jdt.core.prefs
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/annotation/.settings/org.eclipse.jdt.core.prefs?view=diff&rev=446470&r1=446469&r2=446470
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/annotation/.settings/org.eclipse.jdt.core.prefs
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/annotation/.settings/org.eclipse.jdt.core.prefs
Thu Sep 14 19:34:32 2006
@@ -1,12 +1,12 @@
-#Wed May 03 13:10:22 BST 2006
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.4
-org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.debug.lineNumber=generate
-org.eclipse.jdt.core.compiler.debug.localVariable=generate
-org.eclipse.jdt.core.compiler.debug.sourceFile=generate
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.5
+#Wed May 03 13:10:22 BST 2006
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.4
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/annotation/.settings/org.eclipse.jdt.core.prefs
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/harmony/enhanced/classlib/trunk/modules/annotation/.settings/org.eclipse.jdt.ui.prefs
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/annotation/.settings/org.eclipse.jdt.ui.prefs?view=diff&rev=446470&r1=446469&r2=446470
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/annotation/.settings/org.eclipse.jdt.ui.prefs
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/annotation/.settings/org.eclipse.jdt.ui.prefs
Thu Sep 14 19:34:32 2006
@@ -1,3 +1,3 @@
-#Wed May 03 13:10:00 BST 2006
-eclipse.preferences.version=1
-internal.default.compliance=user
+#Wed May 03 13:10:00 BST 2006
+eclipse.preferences.version=1
+internal.default.compliance=user

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/annotation/.settings/org.eclipse.jdt.ui.prefs
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/harmony/enhanced/classlib/trunk/modules/annotation/.settings/org.eclipse.pde.core.prefs
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/annotation/.settings/org.eclipse.pde.core.prefs?view=diff&rev=446470&r1=446469&r2=446470
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/annotation/.settings/org.eclipse.pde.core.prefs
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/annotation/.settings/org.eclipse.pde.core.prefs
Thu Sep 14 19:34:32 2006
@@ -1,3 +1,3 @@
-#Thu Dec 15 00:50:33 GMT 2005
-eclipse.preferences.version=1
-pluginProject.extensions=false
+#Thu Dec 15 00:50:33 GMT 2005
+eclipse.preferences.version=1
+pluginProject.extensions=false

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/annotation/.settings/org.eclipse.pde.core.prefs
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/harmony/enhanced/classlib/trunk/modules/annotation/META-INF/MANIFEST.MF
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/annotation/META-INF/MANIFEST.MF?view=diff&rev=446470&r1=446469&r2=446470
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/annotation/META-INF/MANIFEST.MF (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/annotation/META-INF/MANIFEST.MF Thu
Sep 14 19:34:32 2006
@@ -1,13 +1,13 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: Harmony Annotation
-Bundle-SymbolicName: org.apache.harmony.annotation
-Bundle-Version: 1.0.0
-Bundle-ClassPath: .
-Eclipse-JREBundle: true
-Import-Package: java.lang,
- java.lang.reflect,
- java.security,
- java.util,
- org.apache.harmony.kernel.vm
-Export-Package: java.lang.annotation
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Harmony Annotation
+Bundle-SymbolicName: org.apache.harmony.annotation
+Bundle-Version: 1.0.0
+Bundle-ClassPath: .
+Eclipse-JREBundle: true
+Import-Package: java.lang,
+ java.lang.reflect,
+ java.security,
+ java.util,
+ org.apache.harmony.kernel.vm
+Export-Package: java.lang.annotation

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/annotation/META-INF/MANIFEST.MF
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/annotation/make/patternset.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/Annotation.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/Annotation.java?view=diff&rev=446470&r1=446469&r2=446470
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/Annotation.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/Annotation.java
Thu Sep 14 19:34:32 2006
@@ -1,68 +1,68 @@
-/*
- * 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.annotation;
-
-/**
- * <p>
- * The interface implemented by all annotations. This interface is NOT an
- * annotation itself and any interface that extends this one is NOT an
- * annotation either.
- * </p>
- * 
- * @since 1.5
- */
-public interface Annotation {
-
-    /**
-     * <p>
-     * Returns the type of this annotation.
-     * </p>
-     * 
-     * @return A Class instance.
-     */
-    Class<? extends Annotation> annotationType();
-
-    /**
-     * <p>
-     * Determines whether or not this annotation is equivalent to the annotation
-     * passed.
-     * </p>
-     * 
-     * @param obj The object to compare to.
-     * @return <code>true</code> if <code>obj</code> is equal to
this,
-     *         otherwise <code>false</code>.
-     */
-    boolean equals(Object obj);
-
-    /**
-     * <p>
-     * Returns the hash value of this annotation.
-     * </p>
-     * 
-     * @return The hash value.
-     */
-    int hashCode();
-
-    /**
-     * <p>
-     * Returns a String representation of this annotation.
-     * </p>
-     * 
-     * @return The String that represents this annotation.
-     */
-    String toString();
-}
+/*
+ * 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.annotation;
+
+/**
+ * <p>
+ * The interface implemented by all annotations. This interface is NOT an
+ * annotation itself and any interface that extends this one is NOT an
+ * annotation either.
+ * </p>
+ * 
+ * @since 1.5
+ */
+public interface Annotation {
+
+    /**
+     * <p>
+     * Returns the type of this annotation.
+     * </p>
+     * 
+     * @return A Class instance.
+     */
+    Class<? extends Annotation> annotationType();
+
+    /**
+     * <p>
+     * Determines whether or not this annotation is equivalent to the annotation
+     * passed.
+     * </p>
+     * 
+     * @param obj The object to compare to.
+     * @return <code>true</code> if <code>obj</code> is equal to
this,
+     *         otherwise <code>false</code>.
+     */
+    boolean equals(Object obj);
+
+    /**
+     * <p>
+     * Returns the hash value of this annotation.
+     * </p>
+     * 
+     * @return The hash value.
+     */
+    int hashCode();
+
+    /**
+     * <p>
+     * Returns a String representation of this annotation.
+     * </p>
+     * 
+     * @return The String that represents this annotation.
+     */
+    String toString();
+}

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

Modified: incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/AnnotationFormatError.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/AnnotationFormatError.java?view=diff&rev=446470&r1=446469&r2=446470
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/AnnotationFormatError.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/AnnotationFormatError.java
Thu Sep 14 19:34:32 2006
@@ -1,66 +1,66 @@
-/*
- * 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.annotation;
-
-/**
- * <p>
- * Indicates that an annotation in a class file is incorrectly formatted.
- * </p>
- * 
- * @since 1.5
- */
-public class AnnotationFormatError extends Error {
-
-    private static final long serialVersionUID = -4256701562333669892L;
-
-    /**
-     * <p>
-     * Constructs an instance with the message provided.
-     * </p>
-     * 
-     * @param message The details of the error.
-     */
-    public AnnotationFormatError(String message) {
-        super(message);
-    }
-
-    /**
-     * <p>
-     * Constructs an instance with a message and a cause.
-     * </p>
-     * 
-     * @param message The details of the error.
-     * @param cause The cause of the error or <code>null</code> if none.
-     */
-    public AnnotationFormatError(String message, Throwable cause) {
-        super(message, cause);
-    }
-
-    /**
-     * <p>
-     * Constructs an instance with a cause. If the cause is NOT
-     * <code>null</code>, then <code>cause.toString()</code> is used
as the
-     * error's message.
-     * </p>
-     * 
-     * @param cause The cause of the error or <code>null</code> if none.
-     */
-    public AnnotationFormatError(Throwable cause) {
-        super(cause == null ? null : cause.toString(), cause);
-    }
-
-}
+/*
+ * 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.annotation;
+
+/**
+ * <p>
+ * Indicates that an annotation in a class file is incorrectly formatted.
+ * </p>
+ * 
+ * @since 1.5
+ */
+public class AnnotationFormatError extends Error {
+
+    private static final long serialVersionUID = -4256701562333669892L;
+
+    /**
+     * <p>
+     * Constructs an instance with the message provided.
+     * </p>
+     * 
+     * @param message The details of the error.
+     */
+    public AnnotationFormatError(String message) {
+        super(message);
+    }
+
+    /**
+     * <p>
+     * Constructs an instance with a message and a cause.
+     * </p>
+     * 
+     * @param message The details of the error.
+     * @param cause The cause of the error or <code>null</code> if none.
+     */
+    public AnnotationFormatError(String message, Throwable cause) {
+        super(message, cause);
+    }
+
+    /**
+     * <p>
+     * Constructs an instance with a cause. If the cause is NOT
+     * <code>null</code>, then <code>cause.toString()</code> is used
as the
+     * error's message.
+     * </p>
+     * 
+     * @param cause The cause of the error or <code>null</code> if none.
+     */
+    public AnnotationFormatError(Throwable cause) {
+        super(cause == null ? null : cause.toString(), cause);
+    }
+
+}

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

Modified: incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/AnnotationTypeMismatchException.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/AnnotationTypeMismatchException.java?view=diff&rev=446470&r1=446469&r2=446470
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/AnnotationTypeMismatchException.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/AnnotationTypeMismatchException.java
Thu Sep 14 19:34:32 2006
@@ -1,73 +1,73 @@
-/*
- * 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.annotation;
-
-import java.lang.reflect.Method;
-
-/**
- * <p>
- * Indicates that an annotation type has changed since it was compiled or
- * serialized.
- * </p>
- * 
- * @since 1.5
- */
-public class AnnotationTypeMismatchException extends RuntimeException {
-
-    private static final long serialVersionUID = 8125925355765570191L;
-
-    private Method element;
-
-    private String foundType;
-
-    /**
-     * <p>
-     * Constructs an instance for the given type element and the type found.
-     * </p>
-     * 
-     * @param element The annotation type element.
-     * @param foundType The invalid type that was found.
-     */
-    public AnnotationTypeMismatchException(Method element, String foundType) {
-        super("The annotation element, " + element
-                + ", doesn't match the type " + foundType + ".");
-        this.element = element;
-        this.foundType = foundType;
-    }
-
-    /**
-     * <p>
-     * The method object for the invalid type.
-     * </p>
-     * 
-     * @return A {@link Method} instance.
-     */
-    public Method element() {
-        return element;
-    }
-
-    /**
-     * <p>
-     * The invalid type.
-     * </p>
-     * 
-     * @return A String describing the invalid data.
-     */
-    public String foundType() {
-        return foundType;
-    }
-}
+/*
+ * 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.annotation;
+
+import java.lang.reflect.Method;
+
+/**
+ * <p>
+ * Indicates that an annotation type has changed since it was compiled or
+ * serialized.
+ * </p>
+ * 
+ * @since 1.5
+ */
+public class AnnotationTypeMismatchException extends RuntimeException {
+
+    private static final long serialVersionUID = 8125925355765570191L;
+
+    private Method element;
+
+    private String foundType;
+
+    /**
+     * <p>
+     * Constructs an instance for the given type element and the type found.
+     * </p>
+     * 
+     * @param element The annotation type element.
+     * @param foundType The invalid type that was found.
+     */
+    public AnnotationTypeMismatchException(Method element, String foundType) {
+        super("The annotation element, " + element
+                + ", doesn't match the type " + foundType + ".");
+        this.element = element;
+        this.foundType = foundType;
+    }
+
+    /**
+     * <p>
+     * The method object for the invalid type.
+     * </p>
+     * 
+     * @return A {@link Method} instance.
+     */
+    public Method element() {
+        return element;
+    }
+
+    /**
+     * <p>
+     * The invalid type.
+     * </p>
+     * 
+     * @return A String describing the invalid data.
+     */
+    public String foundType() {
+        return foundType;
+    }
+}

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

Modified: incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/ElementType.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/ElementType.java?view=diff&rev=446470&r1=446469&r2=446470
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/ElementType.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/ElementType.java
Thu Sep 14 19:34:32 2006
@@ -1,75 +1,75 @@
-/*
- * 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.annotation;
-
-/**
- * <p>
- * An enumeration of element types.
- * </p>
- * 
- * @since 1.5
- */
-public enum ElementType {
-    /**
-     * <p>
-     * Class, interface or enum declaration.
-     * </p>
-     */
-    TYPE,
-    /**
-     * <p>
-     * Field declaration.
-     * </p>
-     */
-    FIELD,
-    /**
-     * <p>
-     * Method declaration.
-     * </p>
-     */
-    METHOD,
-    /**
-     * <p>
-     * Parameter declaration.
-     * </p>
-     */
-    PARAMETER,
-    /**
-     * <p>
-     * Constructor declaration.
-     * </p>
-     */
-    CONSTRUCTOR,
-    /**
-     * <p>
-     * Local variable declaration.
-     * </p>
-     */
-    LOCAL_VARIABLE,
-    /**
-     * <p>
-     * Annotation type declaration.
-     * </p>
-     */
-    ANNOTATION_TYPE,
-    /**
-     * <p>
-     * Package declaration.
-     * </p>
-     */
-    PACKAGE
-}
+/*
+ * 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.annotation;
+
+/**
+ * <p>
+ * An enumeration of element types.
+ * </p>
+ * 
+ * @since 1.5
+ */
+public enum ElementType {
+    /**
+     * <p>
+     * Class, interface or enum declaration.
+     * </p>
+     */
+    TYPE,
+    /**
+     * <p>
+     * Field declaration.
+     * </p>
+     */
+    FIELD,
+    /**
+     * <p>
+     * Method declaration.
+     * </p>
+     */
+    METHOD,
+    /**
+     * <p>
+     * Parameter declaration.
+     * </p>
+     */
+    PARAMETER,
+    /**
+     * <p>
+     * Constructor declaration.
+     * </p>
+     */
+    CONSTRUCTOR,
+    /**
+     * <p>
+     * Local variable declaration.
+     * </p>
+     */
+    LOCAL_VARIABLE,
+    /**
+     * <p>
+     * Annotation type declaration.
+     * </p>
+     */
+    ANNOTATION_TYPE,
+    /**
+     * <p>
+     * Package declaration.
+     * </p>
+     */
+    PACKAGE
+}

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

Modified: incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/IncompleteAnnotationException.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/IncompleteAnnotationException.java?view=diff&rev=446470&r1=446469&r2=446470
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/IncompleteAnnotationException.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/IncompleteAnnotationException.java
Thu Sep 14 19:34:32 2006
@@ -1,75 +1,75 @@
-/*
- * 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.annotation;
-
-/**
- * <p>
- * Indicates that an element of an annotation type was accessed that was added
- * after the type was compiled or serialized. This does not apply to new
- * elements that have default values.
- * </p>
- * 
- * @since 1.5
- */
-public class IncompleteAnnotationException extends RuntimeException {
-
-    private static final long serialVersionUID = 8445097402741811912L;
-
-    private Class<? extends Annotation> annotationType;
-
-    private String elementName;
-
-    /**
-     * <p>
-     * Constructs an instance with the incomplete annotation type and the name
-     * of the element that's missing.
-     * </p>
-     * 
-     * @param annotationType The annotation type.
-     * @param elementName The name of the incomplete element.
-     */
-    public IncompleteAnnotationException(
-            Class<? extends Annotation> annotationType, String elementName) {
-        super("The element, " + elementName
-                + ", is not complete for the annotation " + annotationType
-                + ".");
-        this.annotationType = annotationType;
-        this.elementName = elementName;
-    }
-
-    /**
-     * <p>
-     * The annotation type.
-     * </p>
-     * 
-     * @return A Class instance.
-     */
-    public Class<? extends Annotation> annotationType() {
-        return annotationType;
-    }
-
-    /**
-     * <p>
-     * The incomplete element's name.
-     * </p>
-     * 
-     * @return The name of the element.
-     */
-    public String elementName() {
-        return elementName;
-    }
-}
+/*
+ * 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.annotation;
+
+/**
+ * <p>
+ * Indicates that an element of an annotation type was accessed that was added
+ * after the type was compiled or serialized. This does not apply to new
+ * elements that have default values.
+ * </p>
+ * 
+ * @since 1.5
+ */
+public class IncompleteAnnotationException extends RuntimeException {
+
+    private static final long serialVersionUID = 8445097402741811912L;
+
+    private Class<? extends Annotation> annotationType;
+
+    private String elementName;
+
+    /**
+     * <p>
+     * Constructs an instance with the incomplete annotation type and the name
+     * of the element that's missing.
+     * </p>
+     * 
+     * @param annotationType The annotation type.
+     * @param elementName The name of the incomplete element.
+     */
+    public IncompleteAnnotationException(
+            Class<? extends Annotation> annotationType, String elementName) {
+        super("The element, " + elementName
+                + ", is not complete for the annotation " + annotationType
+                + ".");
+        this.annotationType = annotationType;
+        this.elementName = elementName;
+    }
+
+    /**
+     * <p>
+     * The annotation type.
+     * </p>
+     * 
+     * @return A Class instance.
+     */
+    public Class<? extends Annotation> annotationType() {
+        return annotationType;
+    }
+
+    /**
+     * <p>
+     * The incomplete element's name.
+     * </p>
+     * 
+     * @return The name of the element.
+     */
+    public String elementName() {
+        return elementName;
+    }
+}

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

Modified: incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/RetentionPolicy.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/RetentionPolicy.java?view=diff&rev=446470&r1=446469&r2=446470
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/RetentionPolicy.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/RetentionPolicy.java
Thu Sep 14 19:34:32 2006
@@ -1,47 +1,47 @@
-/*
- * 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.annotation;
-
-/**
- * <p>
- * An enumeration for annotation retention policies.
- * </p>
- * 
- * @since 1.5
- */
-public enum RetentionPolicy {
-    /**
-     * <p>
-     * Annotation is only available in the source code.
-     * </p>
-     */
-    SOURCE,
-    /**
-     * <p>
-     * Annotation is available in the source code and in the class file, but not
-     * at runtime. This is the default policy.
-     * </p>
-     */
-    CLASS,
-    /**
-     * <p>
-     * Annotation is available in the source code, the class file and is
-     * available at runtime.
-     * </p>
-     */
-    RUNTIME
-}
+/*
+ * 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.annotation;
+
+/**
+ * <p>
+ * An enumeration for annotation retention policies.
+ * </p>
+ * 
+ * @since 1.5
+ */
+public enum RetentionPolicy {
+    /**
+     * <p>
+     * Annotation is only available in the source code.
+     * </p>
+     */
+    SOURCE,
+    /**
+     * <p>
+     * Annotation is available in the source code and in the class file, but not
+     * at runtime. This is the default policy.
+     * </p>
+     */
+    CLASS,
+    /**
+     * <p>
+     * Annotation is available in the source code, the class file and is
+     * available at runtime.
+     * </p>
+     */
+    RUNTIME
+}

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



Mime
View raw message