8028076: Correct raw type lint warnings in core reflection implementation classes
authordarcy
Fri, 08 Nov 2013 12:19:25 -0800
changeset 21634 55914541c844
parent 21633 6cc4c9a56216
child 21635 b938024653ca
8028076: Correct raw type lint warnings in core reflection implementation classes Reviewed-by: lancea, alanb
jdk/src/share/classes/sun/reflect/generics/reflectiveObjects/ParameterizedTypeImpl.java
jdk/src/share/classes/sun/reflect/generics/repository/GenericDeclRepository.java
--- a/jdk/src/share/classes/sun/reflect/generics/reflectiveObjects/ParameterizedTypeImpl.java	Fri Nov 08 12:13:02 2013 -0800
+++ b/jdk/src/share/classes/sun/reflect/generics/reflectiveObjects/ParameterizedTypeImpl.java	Fri Nov 08 12:19:25 2013 -0800
@@ -52,7 +52,7 @@
     }
 
     private void validateConstructorArguments() {
-        TypeVariable/*<?>*/[] formals = rawType.getTypeParameters();
+        TypeVariable<?>[] formals = rawType.getTypeParameters();
         // check correct arity of actual type args
         if (formals.length != actualTypeArguments.length){
             throw new MalformedParameterizedTypeException();
--- a/jdk/src/share/classes/sun/reflect/generics/repository/GenericDeclRepository.java	Fri Nov 08 12:13:02 2013 -0800
+++ b/jdk/src/share/classes/sun/reflect/generics/repository/GenericDeclRepository.java	Fri Nov 08 12:19:25 2013 -0800
@@ -42,7 +42,7 @@
 public abstract class GenericDeclRepository<S extends Signature>
     extends AbstractRepository<S> {
 
-    private TypeVariable[] typeParams; // caches the formal type parameters
+    private TypeVariable<?>[] typeParams; // caches the formal type parameters
 
     protected GenericDeclRepository(String rawSig, GenericsFactory f) {
         super(rawSig, f);
@@ -64,7 +64,7 @@
      * Return the formal type parameters of this generic declaration.
      * @return the formal type parameters of this generic declaration
      */
-    public TypeVariable/*<?>*/[] getTypeParameters(){
+    public TypeVariable<?>[] getTypeParameters(){
         if (typeParams == null) { // lazily initialize type parameters
             // first, extract type parameter subtree(s) from AST
             FormalTypeParameter[] ftps = getTree().getFormalTypeParameters();