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
Accesses to private fields of a nested class from the containing class (and possibly vice-versa?) are not considered, leading to false positives. This happens with sb-contrib version 7.6.4 (current release).
This reports FCBL_FIELD_COULD_BE_LOCAL for Type.displayName.
Making the field package-private or public does not report the bug. Similarly, when adding a Type::toString returning displayName, the bug is not reported.
(In this example, the rationale is that Type should be public. but we don't want to directly expose its display name, which is an implementation detail for use in the containing class.)
The text was updated successfully, but these errors were encountered:
Accesses to private fields of a nested class from the containing class (and possibly vice-versa?) are not considered, leading to false positives. This happens with sb-contrib version 7.6.4 (current release).
Example code:
This reports FCBL_FIELD_COULD_BE_LOCAL for
Type.displayName
.Making the field package-private or public does not report the bug. Similarly, when adding a
Type::toString
returningdisplayName
, the bug is not reported.(In this example, the rationale is that
Type
should be public. but we don't want to directly expose its display name, which is an implementation detail for use in the containing class.)The text was updated successfully, but these errors were encountered: