mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-03 03:37:58 +07:00
get rid of intellij.build.toolbox.litegen parameter and use BuildOptions.TOOLBOX_LITE_GEN_STEP to skip it instead
GitOrigin-RevId: 9aac8ee4ed1ebf2a29de18a238825fafb1ab88f9
This commit is contained in:
committed by
intellij-monorepo-bot
parent
9215f4240b
commit
185284cee6
@@ -295,7 +295,7 @@ public abstract class NullableNotNullManager {
|
||||
return null;
|
||||
}
|
||||
|
||||
private PsiAnnotation takeAnnotationFromSuperParameters(@NotNull PsiParameter owner, @NotNull List<PsiParameter> superOwners) {
|
||||
private PsiAnnotation takeAnnotationFromSuperParameters(@NotNull PsiParameter owner, @NotNull List<? extends PsiParameter> superOwners) {
|
||||
return RecursionManager.doPreventingRecursion(owner, true, () -> {
|
||||
for (PsiParameter superOwner : superOwners) {
|
||||
PsiAnnotation anno = findNullityAnnotationWithDefault(superOwner, false, false);
|
||||
@@ -310,6 +310,17 @@ public abstract class NullableNotNullManager {
|
||||
return findPlainAnnotation(owner, checkBases, qNames);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return an annotation (if any) with the given nullability semantics on the given declaration or its type. In case of conflicts,
|
||||
* type annotations are preferred.
|
||||
*/
|
||||
@Nullable
|
||||
public PsiAnnotation findExplicitNullabilityAnnotation(@NotNull PsiModifierListOwner owner, @NotNull Nullability nullability) {
|
||||
if (nullability == Nullability.UNKNOWN) return null;
|
||||
List<String> names = nullability == Nullability.NULLABLE ? getNullablesWithNickNames() : getNotNullsWithNickNames();
|
||||
return findPlainAnnotation(owner, false, new HashSet<>(names));
|
||||
}
|
||||
|
||||
@Nullable
|
||||
private static PsiAnnotation findPlainAnnotation(@NotNull PsiModifierListOwner owner,
|
||||
boolean checkBases,
|
||||
|
||||
Reference in New Issue
Block a user