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
Forbid the usage of a constructor like the same way we have ForbiddenMethodCall.
ForbiddenMethodCall
I'd like to prevent the usage of the java.math.BigDecimal(double) constructor. See https://stackoverflow.com/a/7186298 for explanation.
java.math.BigDecimal(double)
The text was updated successfully, but these errors were encountered:
I'd like to prevent the usage of the java.math.BigDecimal(double) constructor
Out of curiosity: have you tried using ForbiddenMethodCall for this?
Sorry, something went wrong.
I checked, right now it's not possible. I just created #5195 to address it inside ForbiddenMethodCall.
Successfully merging a pull request may close this issue.
Expected Behavior of the rule
Forbid the usage of a constructor like the same way we have
ForbiddenMethodCall
.Context
I'd like to prevent the usage of the
java.math.BigDecimal(double)
constructor. See https://stackoverflow.com/a/7186298 for explanation.The text was updated successfully, but these errors were encountered: