mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
add generic bound usage for type argument only if it is a bounded wildcard
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
import java.util.List;
|
||||
|
||||
public abstract class SimpleTypeArgument implements Comparable<Parent> {
|
||||
public abstract List<Sub> list();
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
import java.util.List;
|
||||
|
||||
public abstract class SimpleTypeArgument implements Comparable<Parent> {
|
||||
public abstract List<Parent> list();
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
import java.util.List;
|
||||
|
||||
public abstract class SimpleTypeArgument implements Comparable<Sub> {
|
||||
public List<Parent> list() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -230,7 +230,7 @@ class ClassfileAnalyzer {
|
||||
|
||||
@Override
|
||||
public SignatureVisitor visitTypeArgument(char wildcard) {
|
||||
return mySignatureWithGenericBoundUsageCrawler;
|
||||
return wildcard == '+' || wildcard == '-' ? mySignatureWithGenericBoundUsageCrawler : super.visitTypeArgument(wildcard);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user