OSDN Git Service

Fixing Executors to use raw types, which is what RI v5 does.
authorJesse Wilson <jessewilson@google.com>
Wed, 29 Jul 2009 18:39:24 +0000 (11:39 -0700)
committerJesse Wilson <jessewilson@google.com>
Wed, 29 Jul 2009 18:56:14 +0000 (11:56 -0700)
Also fixing VMStack to hide the new API method.

libcore/concurrent/src/main/java/java/util/concurrent/Executors.java
libcore/dalvik/src/main/java/dalvik/system/VMStack.java

index 90cf6ee..a57abe5 100644 (file)
@@ -359,7 +359,7 @@ public class Executors {
      * @return a callable object
      * @throws NullPointerException if action null
      */
-    public static Callable<Object> callable(final PrivilegedAction<?> action) {
+    public static Callable<Object> callable(final PrivilegedAction action) {
         if (action == null)
             throw new NullPointerException();
         return new Callable<Object>() {
@@ -374,7 +374,7 @@ public class Executors {
      * @return a callable object
      * @throws NullPointerException if action null
      */
-    public static Callable<Object> callable(final PrivilegedExceptionAction<?> action) {
+    public static Callable<Object> callable(final PrivilegedExceptionAction action) {
         if (action == null)
             throw new NullPointerException();
         return new Callable<Object>() {
index 88d9bcd..365613e 100644 (file)
@@ -42,6 +42,7 @@ public final class VMStack {
     /**
      * Returns the class of the caller's caller's caller.
      *
+     * @hide
      * @return the requested class, or {@code null}.
      */
     native public static Class<?> getStackClass2();