harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndbe...@apache.org
Subject svn commit: r433041 [13/13] - in /incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang: ./ ref/ reflect/
Date Sun, 20 Aug 2006 20:54:31 GMT
Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/reflect/ReflectPermission.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/reflect/ReflectPermission.java?rev=433041&r1=433040&r2=433041&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/reflect/ReflectPermission.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/reflect/ReflectPermission.java
Sun Aug 20 13:54:27 2006
@@ -1,51 +1,51 @@
-/* Copyright 1998, 2005 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.reflect;
-
-
-import java.security.BasicPermission;
-
-/**
- * ReflectPermission objects represent permission to access dangerous operations
- * in the reflection layer.
- */
-public final class ReflectPermission extends BasicPermission {
-
-    private static final long serialVersionUID = 7412737110241507485L;
-
-    /**
-	 * Creates an instance of this class with given name.
-	 * 
-	 * @param permissionName
-	 *            String the name of the new permission.
-	 */
-	public ReflectPermission(String permissionName) {
-		super(permissionName);
-	}
-
-	/**
-	 * Creates an instance of this class with the given name and action list.
-	 * The action list is ignored.
-	 * 
-	 * @param name
-	 *            String the name of the new permission.
-	 * @param actions
-	 *            String ignored.
-	 */
-	public ReflectPermission(String name, String actions) {
-		super(name, actions);
-	}
-}
+/* Copyright 1998, 2005 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.reflect;
+
+
+import java.security.BasicPermission;
+
+/**
+ * ReflectPermission objects represent permission to access dangerous operations
+ * in the reflection layer.
+ */
+public final class ReflectPermission extends BasicPermission {
+
+    private static final long serialVersionUID = 7412737110241507485L;
+
+    /**
+	 * Creates an instance of this class with given name.
+	 * 
+	 * @param permissionName
+	 *            String the name of the new permission.
+	 */
+	public ReflectPermission(String permissionName) {
+		super(permissionName);
+	}
+
+	/**
+	 * Creates an instance of this class with the given name and action list.
+	 * The action list is ignored.
+	 * 
+	 * @param name
+	 *            String the name of the new permission.
+	 * @param actions
+	 *            String ignored.
+	 */
+	public ReflectPermission(String name, String actions) {
+		super(name, actions);
+	}
+}

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

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/reflect/UndeclaredThrowableException.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/reflect/UndeclaredThrowableException.java?rev=433041&r1=433040&r2=433041&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/reflect/UndeclaredThrowableException.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/reflect/UndeclaredThrowableException.java
Sun Aug 20 13:54:27 2006
@@ -1,77 +1,77 @@
-/* Copyright 2001, 2004 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.reflect;
-
-
-/**
- * This class provides a wrapper for an unexpected exception thrown by an
- * InvocationHandler
- * 
- * @see java.lang.reflect.InvocationHandler#invoke
- */
-
-public class UndeclaredThrowableException extends RuntimeException {
-
-	private static final long serialVersionUID = 330127114055056639L;
-
-	private Throwable undeclaredThrowable;
-
-	/**
-	 * Constructs a new instance of this class with its walkback and target
-	 * exception filled in.
-	 * 
-	 * @param exception
-	 *            The exception which occurred while loading the class.
-	 */
-	public UndeclaredThrowableException(Throwable exception) {
-		super();
-		this.undeclaredThrowable = exception;
-		initCause(exception);
-	}
-
-	/**
-	 * Constructs a new instance of this class with its walkback, target
-	 * exception and message filled in.
-	 * 
-	 * @param detailMessage
-	 *            String The detail message for the exception.
-	 * @param exception
-	 *            Throwable The exception which occurred while loading the
-	 *            class.
-	 */
-	public UndeclaredThrowableException(Throwable exception,
-			String detailMessage) {
-		super(detailMessage);
-		this.undeclaredThrowable = exception;
-		initCause(exception);
-	}
-
-	/**
-	 * Answers the exception which caused the receiver to be thrown.
-	 */
-	public Throwable getUndeclaredThrowable() {
-		return undeclaredThrowable;
-	}
-
-	/**
-	 * Answers the cause of this Throwable, or null if there is no cause.
-	 * 
-	 * @return Throwable The receiver's cause.
-	 */
-	public Throwable getCause() {
-		return undeclaredThrowable;
-	}
-}
+/* Copyright 2001, 2004 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.reflect;
+
+
+/**
+ * This class provides a wrapper for an unexpected exception thrown by an
+ * InvocationHandler
+ * 
+ * @see java.lang.reflect.InvocationHandler#invoke
+ */
+
+public class UndeclaredThrowableException extends RuntimeException {
+
+	private static final long serialVersionUID = 330127114055056639L;
+
+	private Throwable undeclaredThrowable;
+
+	/**
+	 * Constructs a new instance of this class with its walkback and target
+	 * exception filled in.
+	 * 
+	 * @param exception
+	 *            The exception which occurred while loading the class.
+	 */
+	public UndeclaredThrowableException(Throwable exception) {
+		super();
+		this.undeclaredThrowable = exception;
+		initCause(exception);
+	}
+
+	/**
+	 * Constructs a new instance of this class with its walkback, target
+	 * exception and message filled in.
+	 * 
+	 * @param detailMessage
+	 *            String The detail message for the exception.
+	 * @param exception
+	 *            Throwable The exception which occurred while loading the
+	 *            class.
+	 */
+	public UndeclaredThrowableException(Throwable exception,
+			String detailMessage) {
+		super(detailMessage);
+		this.undeclaredThrowable = exception;
+		initCause(exception);
+	}
+
+	/**
+	 * Answers the exception which caused the receiver to be thrown.
+	 */
+	public Throwable getUndeclaredThrowable() {
+		return undeclaredThrowable;
+	}
+
+	/**
+	 * Answers the cause of this Throwable, or null if there is no cause.
+	 * 
+	 * @return Throwable The receiver's cause.
+	 */
+	public Throwable getCause() {
+		return undeclaredThrowable;
+	}
+}

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

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/reflect/WildcardType.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/reflect/WildcardType.java?rev=433041&r1=433040&r2=433041&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/reflect/WildcardType.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/reflect/WildcardType.java
Sun Aug 20 13:54:27 2006
@@ -1,56 +1,56 @@
-/*
- * 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.reflect;
-
-/**
- * <p>
- * Represents a wildcard type, such as <code>?</code> or
- * <code>? extends Comparable</code>.
- * </p>
- * 
- * @since 1.5
- */
-public interface WildcardType extends Type {
-    /**
-     * <p>
-     * Gets the array of types that represent the upper bounds of this type. The
-     * default upper bound is {@link Object}.
-     * </p>
-     * 
-     * @return An array of {@link Type} instances.
-     * @throws TypeNotPresentException if the component type points to a missing
-     *         type.
-     * @throws MalformedParameterizedTypeException if the component type points
-     *         to a type that can't be instantiated for some reason.
-     */
-    Type[] getUpperBounds();
-
-    /**
-     * <p>
-     * Gets the array of types that represent the lower bounds of this type. The
-     * default lower bound is <code>null</code>, in which case a empty array
-     * is returned.
-     * </p>
-     * 
-     * @return An array of {@link Type} instances.
-     * @throws TypeNotPresentException if the component type points to a missing
-     *         type.
-     * @throws MalformedParameterizedTypeException if the component type points
-     *         to a type that can't be instantiated for some reason.
-     */
-    Type[] getLowerBounds();
-}
+/*
+ * 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.reflect;
+
+/**
+ * <p>
+ * Represents a wildcard type, such as <code>?</code> or
+ * <code>? extends Comparable</code>.
+ * </p>
+ * 
+ * @since 1.5
+ */
+public interface WildcardType extends Type {
+    /**
+     * <p>
+     * Gets the array of types that represent the upper bounds of this type. The
+     * default upper bound is {@link Object}.
+     * </p>
+     * 
+     * @return An array of {@link Type} instances.
+     * @throws TypeNotPresentException if the component type points to a missing
+     *         type.
+     * @throws MalformedParameterizedTypeException if the component type points
+     *         to a type that can't be instantiated for some reason.
+     */
+    Type[] getUpperBounds();
+
+    /**
+     * <p>
+     * Gets the array of types that represent the lower bounds of this type. The
+     * default lower bound is <code>null</code>, in which case a empty array
+     * is returned.
+     * </p>
+     * 
+     * @return An array of {@link Type} instances.
+     * @throws TypeNotPresentException if the component type points to a missing
+     *         type.
+     * @throws MalformedParameterizedTypeException if the component type points
+     *         to a type that can't be instantiated for some reason.
+     */
+    Type[] getLowerBounds();
+}

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



Mime
View raw message