langtools/src/share/classes/com/sun/tools/javac/comp/Check.java
changeset 5489 e7af65bf7577
parent 5321 c8efe769cb3b
child 5520 86e4b9a9da40
child 5648 e8aa492874b5
equal deleted inserted replaced
5322:ac6d66f658cb 5489:e7af65bf7577
   673         }
   673         }
   674         @Override
   674         @Override
   675         public Boolean visitCapturedType(CapturedType t, Void s) {
   675         public Boolean visitCapturedType(CapturedType t, Void s) {
   676             return false;
   676             return false;
   677         }
   677         }
       
   678     }
       
   679 
       
   680     /**
       
   681      * Check that vararg method call is sound
       
   682      * @param pos Position to be used for error reporting.
       
   683      * @param argtypes Actual arguments supplied to vararg method.
       
   684      */
       
   685     void checkVararg(DiagnosticPosition pos, List<Type> argtypes) {
       
   686         Type argtype = argtypes.last();
       
   687         if (!types.isReifiable(argtype))
       
   688             warnUnchecked(pos,
       
   689                               "unchecked.generic.array.creation",
       
   690                               argtype);
   678     }
   691     }
   679 
   692 
   680     /** Check that given modifiers are legal for given symbol and
   693     /** Check that given modifiers are legal for given symbol and
   681      *  return modifiers together with any implicit modififiers for that symbol.
   694      *  return modifiers together with any implicit modififiers for that symbol.
   682      *  Warning: we can't use flags() here since this method
   695      *  Warning: we can't use flags() here since this method