mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 03:21:12 +07:00
[java] @NotNull annotation
GitOrigin-RevId: 40336e43420374e8d5202518aaf95e75d5432d47
This commit is contained in:
committed by
intellij-monorepo-bot
parent
e5558c1da6
commit
384c07c2e4
@@ -87,7 +87,7 @@ public interface JVMElementFactory {
|
||||
*
|
||||
* @throws IncorrectOperationException {@code name} is not a valid Java identifier or {@code type} represents an invalid type.
|
||||
*/
|
||||
PsiParameter createParameter(@NotNull String name, PsiType type, @Nullable PsiElement context) throws IncorrectOperationException;
|
||||
PsiParameter createParameter(@NotNull String name, @NotNull PsiType type, @Nullable PsiElement context) throws IncorrectOperationException;
|
||||
|
||||
/**
|
||||
* Creates a parameter list from the specified parameter names and types.
|
||||
|
||||
@@ -276,7 +276,7 @@ public final class PsiElementFactoryImpl extends PsiJavaParserFacadeImpl impleme
|
||||
}
|
||||
|
||||
@Override
|
||||
public PsiParameter createParameter(@NotNull String name, PsiType type, PsiElement context) throws IncorrectOperationException {
|
||||
public PsiParameter createParameter(@NotNull String name, @NotNull PsiType type, PsiElement context) throws IncorrectOperationException {
|
||||
PsiMethod psiMethod = createMethodFromText("void f(" + type.getCanonicalText(true) + " " + name + ") {}", context);
|
||||
PsiParameter[] parameters = psiMethod.getParameterList().getParameters();
|
||||
return parameters[0];
|
||||
|
||||
Reference in New Issue
Block a user