mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java-analysis] Fix forgotten ! (IDEA-CR-67504)
GitOrigin-RevId: 01ae72cc4597c377dc14344ad76c710fa1512193
This commit is contained in:
committed by
intellij-monorepo-bot
parent
714b6bd383
commit
849ca4541b
+2
-2
@@ -60,14 +60,14 @@ class ChangeNullableDefaultsFix implements LocalQuickFix {
|
||||
public void applyFix(@NotNull Project project, @NotNull ProblemDescriptor descriptor) {
|
||||
if (myNotNullName != null) {
|
||||
List<String> notNulls = myManager.getNotNulls();
|
||||
if (notNulls.contains(myNotNullName)) {
|
||||
if (!notNulls.contains(myNotNullName)) {
|
||||
myManager.setNotNulls(StreamEx.of(notNulls).append(myNotNullName).toArray(ArrayUtil.EMPTY_STRING_ARRAY));
|
||||
}
|
||||
myManager.setDefaultNotNull(myNotNullName);
|
||||
}
|
||||
else {
|
||||
List<String> nullables = myManager.getNullables();
|
||||
if (nullables.contains(myNullableName)) {
|
||||
if (!nullables.contains(myNullableName)) {
|
||||
myManager.setNullables(StreamEx.of(nullables).append(myNullableName).toArray(ArrayUtil.EMPTY_STRING_ARRAY));
|
||||
}
|
||||
myManager.setDefaultNullable(myNullableName);
|
||||
|
||||
Reference in New Issue
Block a user