mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java] IDEA-372145 follow-up: use SequencedMap; wording
GitOrigin-RevId: 8b2e9886481740602ddf3f6fecf92ca180bd7412
This commit is contained in:
committed by
intellij-monorepo-bot
parent
1bcaf3bcf2
commit
009a6284e9
@@ -157,7 +157,7 @@ inspection.annotate.overridden.method.and.self.quickfix.family.name=Annotate ove
|
||||
inspection.annotate.overridden.method.and.self.quickfix.name=Annotate overriding methods and self with ''@{0}''
|
||||
inspection.annotate.overridden.method.quickfix.family.name=Annotate overriding methods
|
||||
inspection.annotate.overridden.method.quickfix.name=Annotate overriding methods with ''@{0}''
|
||||
inspection.annotate.overridden.method.nullable.quickfix.name=Add missing nullability annotation to overriding methods
|
||||
inspection.annotate.overridden.method.nullable.quickfix.name=Add missing nullability annotations to overriding methods
|
||||
inspection.c.style.array.declarations.option=Ignore C-style declarations in variables
|
||||
inspection.can.be.final.accept.quickfix=Make final
|
||||
inspection.can.be.final.option1=Report methods
|
||||
|
||||
@@ -59,9 +59,9 @@ public class NullableNotNullManagerImpl extends NullableNotNullManager implement
|
||||
|
||||
private List<AnnotationPackageSupport> myAnnotationSupports;
|
||||
|
||||
private Map<String, AnnotationPackageSupport> myDefaultNullables;
|
||||
private Map<String, AnnotationPackageSupport> myDefaultNotNulls;
|
||||
private Map<String, AnnotationPackageSupport> myDefaultUnknowns;
|
||||
private SequencedMap<String, AnnotationPackageSupport> myDefaultNullables;
|
||||
private SequencedMap<String, AnnotationPackageSupport> myDefaultNotNulls;
|
||||
private SequencedMap<String, AnnotationPackageSupport> myDefaultUnknowns;
|
||||
private List<String> myDefaultAll;
|
||||
public String myDefaultNullable = NULLABLE;
|
||||
public String myDefaultNotNull = NOT_NULL;
|
||||
@@ -303,13 +303,13 @@ public class NullableNotNullManagerImpl extends NullableNotNullManager implement
|
||||
myNullables.addAll(myDefaultNullables.keySet());
|
||||
if (!myDefaultNullable.equals(NULLABLE)) {
|
||||
myNullables.remove(myDefaultNullable);
|
||||
myNullables.add(0, myDefaultNullable);
|
||||
myNullables.addFirst(myDefaultNullable);
|
||||
}
|
||||
myNotNulls.removeAll(myDefaultNotNulls.keySet());
|
||||
myNotNulls.addAll(myDefaultNotNulls.keySet());
|
||||
if (!myDefaultNotNull.equals(NOT_NULL)) {
|
||||
myNotNulls.remove(myDefaultNotNull);
|
||||
myNotNulls.add(0, myDefaultNotNull);
|
||||
myNotNulls.addFirst(myDefaultNotNull);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Add missing nullability annotation to overriding methods" "true"
|
||||
// "Add missing nullability annotations to overriding methods" "true"
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Add missing nullability annotation to overriding methods" "true"
|
||||
// "Add missing nullability annotations to overriding methods" "true"
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
|
||||
+1
-1
@@ -41,7 +41,7 @@ public class AnnotateMethodInGeneratedFilesTest extends LightJavaCodeInsightFixt
|
||||
|
||||
public void testAnnotateOverriddenMethod() {
|
||||
IdeaTestUtil.setModuleLanguageLevel(myFixture.getModule(), LanguageLevel.JDK_1_6);
|
||||
doTest("Add missing nullability annotation");
|
||||
doTest("Add missing nullability annotations");
|
||||
}
|
||||
|
||||
public void testAnnotateOverriddenParameters() {
|
||||
|
||||
Reference in New Issue
Block a user