Closed kashike closed 4 years ago
Rename Codec.withDefault methods that accept a Supplier to Codec.withDefaultFrom to avoid a method conflict when implementing a Codec<Supplier<T>>.
Codec.withDefault
Codec.withDefaultFrom
Codec<Supplier<T>>
Without this change, a Codec<Supplier<T>> results in withDefault(Supplier<T>) and withDefault(Supplier<? extends Supplier<T>>).
withDefault(Supplier<T>)
withDefault(Supplier<? extends Supplier<T>>)
Hmm, you can just add a cast before the lambda to fix type inference, I think?
Superseded by #52
Rename
Codec.withDefault
methods that accept a Supplier toCodec.withDefaultFrom
to avoid a method conflict when implementing aCodec<Supplier<T>>
.Without this change, a
Codec<Supplier<T>>
results inwithDefault(Supplier<T>)
andwithDefault(Supplier<? extends Supplier<T>>)
.