summaryrefslogtreecommitdiffstats
path: root/luni-kernel/src
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2010-03-11 15:18:24 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-03-11 15:18:24 -0800
commit720b81445bcc4d341c080365dcee65c8d8e1965c (patch)
treea8dc67566425fe93add0f6df79e6a2160b031e95 /luni-kernel/src
parent1e6bc5dd2eb246c96c19ee0b16d6d61b825a8c8c (diff)
parent77dd26ad0da51486d5dcfbc4da346f2acaa1c8fa (diff)
downloadlibcore-720b81445bcc4d341c080365dcee65c8d8e1965c.zip
libcore-720b81445bcc4d341c080365dcee65c8d8e1965c.tar.gz
libcore-720b81445bcc4d341c080365dcee65c8d8e1965c.tar.bz2
Merge "Plug a resource leak with "finally" and make Object.getClass' return type match Java 6." into dalvik-dev
Diffstat (limited to 'luni-kernel/src')
-rw-r--r--luni-kernel/src/main/java/java/lang/Class.java2
-rw-r--r--luni-kernel/src/main/java/java/lang/Object.java7
2 files changed, 3 insertions, 6 deletions
diff --git a/luni-kernel/src/main/java/java/lang/Class.java b/luni-kernel/src/main/java/java/lang/Class.java
index e999c92..35e47bc 100644
--- a/luni-kernel/src/main/java/java/lang/Class.java
+++ b/luni-kernel/src/main/java/java/lang/Class.java
@@ -117,8 +117,6 @@ import static java.lang.ClassCache.findFieldByName;
* <li>{@code [Ljava/lang/String;} representing the {@code String[]} type</li>
* <li>{@code [[[C} representing the {@code char[][][]} type (three dimensions!)</li>
* </ul>
- *
- * @since Android 1.0
*/
public final class Class<T> implements Serializable, AnnotatedElement, GenericDeclaration, Type {
diff --git a/luni-kernel/src/main/java/java/lang/Object.java b/luni-kernel/src/main/java/java/lang/Object.java
index 4fef609..d9613f8 100644
--- a/luni-kernel/src/main/java/java/lang/Object.java
+++ b/luni-kernel/src/main/java/java/lang/Object.java
@@ -148,10 +148,10 @@ public class Object {
}
/**
- * Returns the unique instance of {@link Class} which represents this
+ * Returns the unique instance of {@link Class} that represents this
* object's class. Note that {@code getClass()} is a special case in that it
* actually returns {@code Class<? extends Foo>} where {@code Foo} is the
- * erasure of the type of expression {@code getClass()} was called upon.
+ * erasure of the type of the expression {@code getClass()} was called upon.
* <p>
* As an example, the following code actually compiles, although one might
* think it shouldn't:
@@ -162,9 +162,8 @@ public class Object {
* </pre>
*
* @return this object's {@code Class} instance.
- * @since Android 1.0
*/
- public final native Class<? extends Object> getClass();
+ public final native Class<?> getClass();
/**
* Returns an integer hash code for this object. By contract, any two