You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In particular as soon as LDC Ltest/SomeClass;.class is seen, SomeClass is assumed to be accessed with reflection and the change above suppresses the unused field bug report.
The text was updated successfully, but these errors were encountered:
This change ensures an unused field is reported despite assumptions on
reflection use for the defining class.
If reflection is assumed, the priority of the created spotbugs problem
is lowered.
Fixes: spotbugs#2325
This change ensures an unused field is reported despite assumptions on
reflection use for the defining class.
In reflective classes, the priority of the created problem is lowered.
Fixes: spotbugs#2325
This change ensures an unused field is reported despite assumptions on
reflection use for the defining class.
In reflective classes, the priority of the created problem is lowered.
Fixes: #2325
Snippet to reproduce:
For
unusedField
, nothing is reported. After commenting outpublic static Class<?> cl = SomeClass.class;
, a bug is reported as expected.Seems to be coming from: 9ae2687
In particular as soon as
LDC Ltest/SomeClass;.class
is seen,SomeClass
is assumed to be accessed with reflection and the change above suppresses the unused field bug report.The text was updated successfully, but these errors were encountered: