equal
deleted
inserted
replaced
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 |