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
The the with methods (generated with @Wither) return a copy of the original CouchbaseContainer.
The problem now is, that the generated constructor for that does not call the this() constructor but instead implicitly the super() constructor, which then defaults to alpine:3.5.
I have two ideas how to fix that:
My suggestion is to use the more common style used across the project.
When building a couchbase container like this
The the with methods (generated with
@Wither
) return a copy of the original CouchbaseContainer.The problem now is, that the generated constructor for that does not call the
this()
constructor but instead implicitly thesuper()
constructor, which then defaults toalpine:3.5
.I have two ideas how to fix that:
with
methods feel a lot like a chained setter from lombok. We could also use alombok.config
withand be done with it, but this unfortunately is an api change. For that we could write simple delegate methods.
What do you think?
Btw.
@Wither
is used 12 times in the CouchbaseContainer an one time in the OkHttpWebTarget. (this does not hurt as it does not have a superclass)The text was updated successfully, but these errors were encountered: