@VisibleForTesting currently signals that certain fields are public or package-private instead of private to allow them to be tested.
Such details are internal concerns of AssertJ, and there shouldn't be an annotation with public visibility to mark such cases, as the annotation can potentially be (mis)used by AssertJ users.
When deprecating the annotation, we should also check how to reduce the visibility of public annotated fields to at least package-private.
See also:
@VisibleForTestingcurrently signals that certain fields arepublicorpackage-privateinstead ofprivateto allow them to be tested.Such details are internal concerns of AssertJ, and there shouldn't be an annotation with
publicvisibility to mark such cases, as the annotation can potentially be (mis)used by AssertJ users.When deprecating the annotation, we should also check how to reduce the visibility of
publicannotated fields to at leastpackage-private.See also: