Describe the enhancement requested
ErrorProne warnings have been common to functions with a similar signature as follows.
private void hist(String noteFormat, Object... args) {
if (historicalLog != null) {
historicalLog.recordEvent(noteFormat, args);
}
}
And they must be updated as follows.
@FormatMethod
private void hist(@FormatString String noteFormat, Object... args) {
if (historicalLog != null) {
historicalLog.recordEvent(noteFormat, args);
}
}
At the moment, this would be suppressed based on the discussion here. But this must be resolved once we support JDK11+.
Component(s)
Java
Describe the enhancement requested
ErrorProne warnings have been common to functions with a similar signature as follows.
And they must be updated as follows.
At the moment, this would be suppressed based on the discussion here. But this must be resolved once we support JDK11+.
Component(s)
Java