We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I'm using @FormatMethod to format my code. Should the argument be behind the format string?
@FormatMethod
If I write as below, I will get an error.
@FormatMethod public GravitinoRuntimeException(@FormatString String message, Object... args) { super(String.format(message, args)); } @FormatMethod public GravitinoRuntimeException(@FormatString String message, Throwable cause, Object... args) { super(String.format(message, args), cause); } new GravitinoRuntimeException("Error creating datasource", exception)
The error like:
[FormatStringAnnotation] extra format arguments: used 0, provided 1
Thanks.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi, I'm using
@FormatMethod
to format my code. Should the argument be behind the format string?If I write as below, I will get an error.
The error like:
Thanks.
The text was updated successfully, but these errors were encountered: