Skip to content

Commit

Permalink
Work around false positive
Browse files Browse the repository at this point in the history
  • Loading branch information
wmdietl committed Oct 15, 2023
1 parent d424582 commit f16bfa3
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import org.checkerframework.checker.nullness.qual.Nullable;
import org.checkerframework.checker.nullness.qual.RequiresNonNull;
import org.checkerframework.checker.regex.qual.Regex;
import org.checkerframework.checker.signedness.qual.Signed;
import org.checkerframework.common.initializedfields.qual.EnsuresInitializedFields;
import org.checkerframework.common.value.qual.MinLen;
import org.checkerframework.dataflow.qual.Pure;
Expand Down Expand Up @@ -2054,8 +2055,9 @@ int perform_command(ProcessBuilder pb, List<Replacer> replacers, boolean showNor
}
if (debugReplacers) {
for (int i = 0; i < Math.min(100, output.length()); i++) {
System.out.println(
i + ": " + (int) output.charAt(i) + "\n \"" + output.charAt(i) + "\"");
@SuppressWarnings("signedness") // TODO: fix this common pattern
int outchar = (@Signed int) output.charAt(i);
System.out.println(i + ": " + outchar + "\n \"" + output.charAt(i) + "\"");
}
}
if (noReplacement) {
Expand Down

0 comments on commit f16bfa3

Please sign in to comment.