Skip to content

Commit 111589a

Browse files
committed
[cq] Add NotNull parameters where overrides allow the assertion
1 parent ff74e02 commit 111589a

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

third_party/src/main/java/com/jetbrains/lang/dart/assists/DartQuickAssistIntention.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public DartQuickAssistIntention(int index) {
3030
}
3131

3232
@Override
33-
public int compareTo(IntentionAction o) {
33+
public int compareTo(final @NotNull IntentionAction o) {
3434
if (o instanceof DartQuickAssistIntention other) {
3535
return myIndex - other.myIndex;
3636
}

third_party/src/main/java/com/jetbrains/lang/dart/fixes/DartQuickFix.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public DartQuickFix(final @NotNull DartQuickFixSet quickFixSet, final int index)
6565
}
6666

6767
@Override
68-
public int compareTo(IntentionAction o) {
68+
public int compareTo(final @NotNull IntentionAction o) {
6969
if (o instanceof DartQuickFix) {
7070
return myIndex - ((DartQuickFix)o).myIndex;
7171
}

third_party/src/main/java/com/jetbrains/lang/dart/ide/annotator/DartProblemGroup.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public DartSuppressAction(@NotNull String errorCode, boolean eolComment) {
134134
}
135135

136136
@Override
137-
public int compareTo(final IntentionAction o) {
137+
public int compareTo(final @NotNull IntentionAction o) {
138138
if (o instanceof DartSuppressAction) {
139139
return ((DartSuppressAction)o).myEolComment ? -1 : 1;
140140
}

third_party/src/main/java/com/jetbrains/lang/dart/ide/runner/test/DartTestEventsConverter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public DartTestEventsConverter(final @NotNull String testFrameworkName,
106106
}
107107

108108
@Override
109-
protected boolean processServiceMessages(final String text, final Key outputType, final ServiceMessageVisitor visitor)
109+
protected boolean processServiceMessages(final String text, final @NotNull Key outputType, final @NotNull ServiceMessageVisitor visitor)
110110
throws ParseException {
111111
LOG.debug("<<< " + text.trim());
112112
myCurrentOutputType = outputType;

third_party/src/main/java/com/jetbrains/lang/dart/pubServer/PubServerManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public final class PubServerManager implements Disposable {
3232

3333
private String myServedSdkVersion;
3434

35-
private final LoadingCache<VirtualFile, PubServerService> myServedDirToPubService;
35+
private final LoadingCache<@NotNull VirtualFile, PubServerService> myServedDirToPubService;
3636

3737
public static @NotNull PubServerManager getInstance(@NotNull Project project) {
3838
return project.getService(PubServerManager.class);

0 commit comments

Comments
 (0)