Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #12164: Enable Checker Framework
- Loading branch information
1 parent
ba66ce2
commit 6335dd8
Showing
15 changed files
with
13,535 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
.ci/checker-framework-suppressions/checker-framework-formatter-suppressions.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<suppressedErrors> | ||
<checkerFrameworkError unstable="false"> | ||
<fileName>checkstyle/src/main/java/com/puppycrawl/tools/checkstyle/DefaultLogger.java</fileName> | ||
<specifier>i18nformat.key.not.found</specifier> | ||
<message>a key doesn't exist in the provided translation file</message> | ||
<lineContent>final String pattern = resourceBundle.getString(key);</lineContent> | ||
</checkerFrameworkError> | ||
|
||
<checkerFrameworkError unstable="false"> | ||
<fileName>checkstyle/src/main/java/com/puppycrawl/tools/checkstyle/api/Violation.java</fileName> | ||
<specifier>i18nformat.key.not.found</specifier> | ||
<message>a key doesn't exist in the provided translation file</message> | ||
<lineContent>final String pattern = resourceBundle.getString(key);</lineContent> | ||
</checkerFrameworkError> | ||
|
||
<checkerFrameworkError unstable="false"> | ||
<fileName>checkstyle/src/main/java/com/puppycrawl/tools/checkstyle/meta/JavadocMetadataScraper.java</fileName> | ||
<specifier>format.string</specifier> | ||
<message>invalid format string (is a @Format annotation missing?)</message> | ||
<lineContent>Locale.ROOT, PROP_DEFAULT_VALUE_MISSING, propertyName)</lineContent> | ||
</checkerFrameworkError> | ||
|
||
<checkerFrameworkError unstable="false"> | ||
<fileName>checkstyle/src/main/java/com/puppycrawl/tools/checkstyle/meta/JavadocMetadataScraper.java</fileName> | ||
<specifier>format.string</specifier> | ||
<message>invalid format string (is a @Format annotation missing?)</message> | ||
<lineContent>Locale.ROOT, PROP_TYPE_MISSING, propertyName)</lineContent> | ||
</checkerFrameworkError> | ||
|
||
<checkerFrameworkError unstable="false"> | ||
<fileName>checkstyle/src/main/java/com/puppycrawl/tools/checkstyle/utils/TokenUtil.java</fileName> | ||
<specifier>i18nformat.key.not.found</specifier> | ||
<message>a key doesn't exist in the provided translation file</message> | ||
<lineContent>return bundle.getString(name);</lineContent> | ||
</checkerFrameworkError> | ||
</suppressedErrors> |
3,011 changes: 3,011 additions & 0 deletions
3,011
.ci/checker-framework-suppressions/checker-framework-index-suppressions.xml
Large diffs are not rendered by default.
Oops, something went wrong.
1,194 changes: 1,194 additions & 0 deletions
1,194
.ci/checker-framework-suppressions/checker-framework-lock-tainting-suppressions.xml
Large diffs are not rendered by default.
Oops, something went wrong.
344 changes: 344 additions & 0 deletions
344
.ci/checker-framework-suppressions/checker-framework-methods-resource-fenum-suppressions.xml
Large diffs are not rendered by default.
Oops, something went wrong.
6,090 changes: 6,090 additions & 0 deletions
6,090
...ker-framework-suppressions/checker-framework-nullness-optional-interning-suppressions.xml
Large diffs are not rendered by default.
Oops, something went wrong.
61 changes: 61 additions & 0 deletions
61
.ci/checker-framework-suppressions/checker-framework-purity-value-returns-suppressions.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<suppressedErrors> | ||
<checkerFrameworkError unstable="false"> | ||
<fileName>checkstyle/src/main/java/com/puppycrawl/tools/checkstyle/utils/CheckUtil.java</fileName> | ||
<specifier>argument</specifier> | ||
<message>incompatible argument for parameter radix of parseInt.</message> | ||
<lineContent>result = Integer.parseInt(txt, radix);</lineContent> | ||
<details> | ||
found : int | ||
required: @IntRange(from=2, to=36) int | ||
</details> | ||
</checkerFrameworkError> | ||
|
||
<checkerFrameworkError unstable="false"> | ||
<fileName>checkstyle/src/main/java/com/puppycrawl/tools/checkstyle/utils/CheckUtil.java</fileName> | ||
<specifier>argument</specifier> | ||
<message>incompatible argument for parameter radix of parseLong.</message> | ||
<lineContent>result = Long.parseLong(txt, radix);</lineContent> | ||
<details> | ||
found : int | ||
required: @IntRange(from=2, to=36) int | ||
</details> | ||
</checkerFrameworkError> | ||
|
||
<checkerFrameworkError unstable="false"> | ||
<fileName>checkstyle/src/main/java/com/puppycrawl/tools/checkstyle/utils/CheckUtil.java</fileName> | ||
<specifier>argument</specifier> | ||
<message>incompatible argument for parameter radix of parseUnsignedInt.</message> | ||
<lineContent>result = Integer.parseUnsignedInt(txt, radix);</lineContent> | ||
<details> | ||
found : int | ||
required: @IntRange(from=2, to=36) int | ||
</details> | ||
</checkerFrameworkError> | ||
|
||
<checkerFrameworkError unstable="false"> | ||
<fileName>checkstyle/src/main/java/com/puppycrawl/tools/checkstyle/utils/CheckUtil.java</fileName> | ||
<specifier>argument</specifier> | ||
<message>incompatible argument for parameter radix of parseUnsignedLong.</message> | ||
<lineContent>result = Long.parseUnsignedLong(txt, radix);</lineContent> | ||
<details> | ||
found : int | ||
required: @IntRange(from=2, to=36) int | ||
</details> | ||
</checkerFrameworkError> | ||
|
||
<checkerFrameworkError unstable="false"> | ||
<fileName>checkstyle/src/main/java/com/puppycrawl/tools/checkstyle/utils/TokenUtil.java</fileName> | ||
<specifier>methodref.param</specifier> | ||
<message>Incompatible parameter type for bitIndex</message> | ||
<lineContent>.collect(BitSet::new, BitSet::set, BitSet::or);</lineContent> | ||
<details> | ||
found : @IntRangeFromNonNegative int | ||
required: int | ||
Consequence: method in BitSet | ||
void set(BitSet this, @IntRangeFromNonNegative int p0) | ||
is not a valid method reference for method in ObjIntConsumer<BitSet> | ||
void accept(ObjIntConsumer<BitSet> this, BitSet p0, int p1) | ||
</details> | ||
</checkerFrameworkError> | ||
</suppressedErrors> |
Oops, something went wrong.