mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix javadoc IDEA-141087
This commit is contained in:
@@ -171,8 +171,9 @@ public abstract class PsiNameHelper {
|
||||
|
||||
/**
|
||||
* Obtains text of all type parameter values in a reference.
|
||||
* They go in left-to-right order: <code>A<List<String>>.B<Integer></code> yields
|
||||
* <code>["List<String>","Integer"]</code>
|
||||
* They go in left-to-right order: <code>A<List<String>, B<Integer>></code> yields
|
||||
* <code>["List<String>", "B<Integer>"]</code>. Parameters of the outer reference are ignored:
|
||||
* <code>A<List<String>>.B<Integer></code> yields <code>["Integer"]</code>
|
||||
*
|
||||
* @param referenceText the text of the reference to calculate type parameters for.
|
||||
* @return the calculated array of type parameters.
|
||||
@@ -246,6 +247,10 @@ public abstract class PsiNameHelper {
|
||||
return result;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
System.out.println(Arrays.asList(PsiNameHelper.getClassParametersText("A<List<String>, B<Integer>>")));
|
||||
}
|
||||
|
||||
public static boolean isSubpackageOf(@NotNull String subpackageName, @NotNull String packageName) {
|
||||
return subpackageName.equals(packageName) ||
|
||||
subpackageName.startsWith(packageName) && subpackageName.charAt(packageName.length()) == '.';
|
||||
|
||||
Reference in New Issue
Block a user