there's no need to use <? extends String>, because String is final

sometimes it's necessary, e.g. when we're substituting any generic with the real type

GitOrigin-RevId: a8c453813b04213f7e24dd80bc7ccec4eb78efcb
This commit is contained in:
Sergey Ignatov
2019-07-23 16:40:07 -06:00
committed by intellij-monorepo-bot
parent 01f2bf419b
commit 9d823ad5dd
7 changed files with 11 additions and 12 deletions

View File

@@ -17,10 +17,10 @@ public class AnnotationExprent extends Exprent {
public static final int ANNOTATION_SINGLE_ELEMENT = 3;
private final String className;
private final List<? extends String> parNames;
private final List<String> parNames;
private final List<? extends Exprent> parValues;
public AnnotationExprent(String className, List<? extends String> parNames, List<? extends Exprent> parValues) {
public AnnotationExprent(String className, List<String> parNames, List<? extends Exprent> parValues) {
super(EXPRENT_ANNOTATION);
this.className = className;
this.parNames = parNames;