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
These calls cannot possibly be redundant because they both exit the method meaning there can never be a situation where both of them execute.
The actual example is a Builder pattern where thing.doIt() is more like Thing.builder().....build()
and it is incorrect to declare a Thing.ThingBuilder thingBuilder = Thing.builder() and reuse it all over the place (without invoking thingBuilder().clear() before each reuse) which is what this checker would have one do,
The text was updated successfully, but these errors were encountered:
These calls cannot possibly be redundant because they both exit the method meaning there can never be a situation where both of them execute.
The actual example is a Builder pattern where
thing.doIt()
is more likeThing.builder().....build()
and it is incorrect to declare a
Thing.ThingBuilder thingBuilder = Thing.builder()
and reuse it all over the place (without invokingthingBuilder().clear()
before each reuse) which is what this checker would have one do,The text was updated successfully, but these errors were encountered: