Skip to content

Conversation

@vbabanin
Copy link
Member


protected void updateDescription(final ClusterDescription newDescription) {
@VisibleForTesting(otherwise = PROTECTED)
public void updateDescription(final ClusterDescription newDescription) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems we can avoid making this method public by overriding it in the subclass. We won't even need to make it public in the subclass, because the test code using the method will be in the same package as the subclass. However, this requires the subclass to not be anonymous (if we could use var, the proposed approach would have worked even for an anonymous subclass).

@vbabanin vbabanin self-assigned this Jan 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants