Skip to content

Commit

Permalink
Suppress warnings in preparation for Checker Framework version 3.34.0…
Browse files Browse the repository at this point in the history
…-eisop1

More information: go/checker-lsc

Tested:
    TAP --sample ran all affected tests and none failed
    http://test/OCL:539686832:BASE:539663180:1686589466563:d12d5eb7
PiperOrigin-RevId: 539887073
  • Loading branch information
cushon authored and icbaker committed Jun 14, 2023
1 parent 5961637 commit 45d35c5
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -845,6 +845,8 @@ public interface Colored {

private static final Colored ALREADY_FAILED_COLORED = color -> ALREADY_FAILED_AND_FLAGS;

// incompatible parameter types for parameter 1 in lambda expression.
@SuppressWarnings("nullness:lambda.param.type.incompatible")
private static Factory<ForegroundColorSpansSubject, List<ForegroundColorSpan>>
foregroundColorSpans(Spanned actualSpanned) {
return (FailureMetadata metadata, List<ForegroundColorSpan> spans) ->
Expand Down Expand Up @@ -884,6 +886,8 @@ public AndSpanFlags withColor(@ColorInt int color) {
}
}

// incompatible parameter types for parameter 1 in lambda expression.
@SuppressWarnings("nullness:lambda.param.type.incompatible")
private static Factory<BackgroundColorSpansSubject, List<BackgroundColorSpan>>
backgroundColorSpans(Spanned actualSpanned) {
return (FailureMetadata metadata, List<BackgroundColorSpan> spans) ->
Expand Down Expand Up @@ -987,6 +991,8 @@ public interface AbsoluteSized {
private static final AbsoluteSized ALREADY_FAILED_ABSOLUTE_SIZED =
size -> ALREADY_FAILED_AND_FLAGS;

// incompatible parameter types for parameter 1 in lambda expression.
@SuppressWarnings("nullness:lambda.param.type.incompatible")
private static Factory<AbsoluteSizeSpansSubject, List<AbsoluteSizeSpan>> absoluteSizeSpans(
Spanned actualSpanned) {
return (FailureMetadata metadata, List<AbsoluteSizeSpan> spans) ->
Expand Down Expand Up @@ -1091,6 +1097,8 @@ public interface RubyText {
private static final RubyText ALREADY_FAILED_WITH_TEXT =
(text, position) -> ALREADY_FAILED_AND_FLAGS;

// incompatible parameter types for parameter 1 in lambda expression.
@SuppressWarnings("nullness:lambda.param.type.incompatible")
private static Factory<RubySpansSubject, List<RubySpan>> rubySpans(Spanned actualSpanned) {
return (FailureMetadata metadata, List<RubySpan> spans) ->
new RubySpansSubject(metadata, spans, actualSpanned);
Expand Down

0 comments on commit 45d35c5

Please sign in to comment.