DATACMNS-1592 - Use Lombok's With and move off deprecated Wither.

We now migrate off Lombok's `@Wither` in favor of `@With`.
This commit is contained in:
Mark Paluch
2019-11-26 13:55:23 +01:00
parent 3fb7ff1dd2
commit e9a0ed7123
7 changed files with 25 additions and 21 deletions

View File

@@ -19,7 +19,7 @@ import lombok.AccessLevel;
import lombok.EqualsAndHashCode;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.experimental.Wither;
import lombok.With;
import java.util.Collections;
import java.util.Optional;
@@ -44,12 +44,13 @@ import org.springframework.lang.Nullable;
* factory methods on {@link ConverterBuilder} to create instances of this class.
*
* @author Oliver Gierke
* @author Mark Paluch
* @since 2.0
* @see ConverterBuilder#writing(Class, Class, Function)
* @see ConverterBuilder#reading(Class, Class, Function)
* @soundtrack John Mayer - Still Feel Like Your Man (The Search for Everything)
*/
@Wither(AccessLevel.PACKAGE)
@With(AccessLevel.PACKAGE)
@RequiredArgsConstructor(access = AccessLevel.PACKAGE)
class DefaultConverterBuilder<S, T>
implements ConverterAware, ReadingConverterBuilder<T, S>, WritingConverterBuilder<S, T> {