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
getDeclaredClass
Enum
I don't know Java well, so I'd just like to leave this as a suggestion, without judgement:
Our static analysis suggests a change at https://github.com/qmx/jitescript/blob/master/src/main/java/me/qmx/jitescript/VisibleAnnotation.java#L34, to change value.getClass() to value.getDeclaredClass(). The former returns some derived class for enums that declare methods, whereas the latter returns the actual enum type.
value.getClass()
value.getDeclaredClass()
I'm not sure if that's correct, but it was flagged as an error-prone pattern.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I don't know Java well, so I'd just like to leave this as a suggestion, without judgement:
Our static analysis suggests a change at https://github.com/qmx/jitescript/blob/master/src/main/java/me/qmx/jitescript/VisibleAnnotation.java#L34, to change
value.getClass()
tovalue.getDeclaredClass()
. The former returns some derived class for enums that declare methods, whereas the latter returns the actual enum type.I'm not sure if that's correct, but it was flagged as an error-prone pattern.
The text was updated successfully, but these errors were encountered: