Skip to content

Commit a5c266c

Browse files
committed
do not return null
Signed-off-by: Olivier Lamy <[email protected]>
1 parent b3566a3 commit a5c266c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/hudson/tasks/junit/CaseResult.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,11 +1077,11 @@ void replaceParent(SuiteResult parent) {
10771077
}
10781078

10791079
public @CheckForNull List<FlakyFailure> getFlakyFailures() {
1080-
return flakyFailures == null ? null : Collections.unmodifiableList(flakyFailures);
1080+
return flakyFailures == null ? Collections.emptyList() : Collections.unmodifiableList(flakyFailures);
10811081
}
10821082

10831083
public @CheckForNull List<RerunFailure> getRerunFailures() {
1084-
return rerunFailures == null ? null : Collections.unmodifiableList(rerunFailures);
1084+
return rerunFailures == null ? Collections.emptyList() : Collections.unmodifiableList(rerunFailures);
10851085
}
10861086

10871087
/**

0 commit comments

Comments
 (0)