Skip to content

Commit

Permalink
Add other missing lint categories
Browse files Browse the repository at this point in the history
  • Loading branch information
mcimadamore committed Dec 6, 2024
1 parent 64883bb commit a3393ca
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2969,11 +2969,11 @@ void checkAccessFromSerializableElement(final JCTree tree, boolean isLambda) {
if (isLambda) {
if (belongsToRestrictedPackage(sym)) {
log.warning(tree.pos(),
Warnings.AccessToMemberFromSerializableLambda(sym));
LintWarnings.AccessToMemberFromSerializableLambda(sym));
}
} else {
log.warning(tree.pos(),
Warnings.AccessToMemberFromSerializableElement(sym));
LintWarnings.AccessToMemberFromSerializableElement(sym));
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2482,10 +2482,12 @@ compiler.warn.varargs.redundant.trustme.anno=\
Redundant {0} annotation. {1}

# 0: symbol
# lint: serial
compiler.warn.access.to.member.from.serializable.element=\
access to member {0} from serializable element can be publicly accessible to untrusted code

# 0: symbol
# lint: serial
compiler.warn.access.to.member.from.serializable.lambda=\
access to member {0} from serializable lambda can be publicly accessible to untrusted code

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ public Warning(String prefix, String key, Object... args) {
}

/**
* Class representing warning diagnostic keys.
* Class representing lint warning diagnostic keys.
*/
public static final class LintWarning extends Warning {
final LintCategory category;
Expand Down

0 comments on commit a3393ca

Please sign in to comment.