Skip to content

Commit

Permalink
Make SourceChecker#suppressWarningsString protected to allow adapta…
Browse files Browse the repository at this point in the history
…tion in subclasses (#816)
  • Loading branch information
wmdietl authored Jul 20, 2024
1 parent 229ce9a commit 77d2f89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Use `-ApermitMissingJdk` instead.

**Implementation details:**

Make `SourceChecker#suppressWarningsString` protected to allow adaptation in subclasses.

**Closed issues:**


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1519,7 +1519,7 @@ private String detailedMsgTextPrefix(
* @param messageKey the simple, checker-specific error message key
* @return the most specific SuppressWarnings string for the warning/error being printed
*/
private String suppressWarningsString(String messageKey) {
protected String suppressWarningsString(String messageKey) {
Collection<String> prefixes = this.getSuppressWarningsPrefixes();
prefixes.remove(SUPPRESS_ALL_PREFIX);
if (showSuppressWarningsStrings) {
Expand Down

0 comments on commit 77d2f89

Please sign in to comment.