#1208 - Migrate from Lombok's experimental @Wither to @With.
Lombok has moved their "wither" annotation annotation out of experimental phase and replaced it with @With.
This commit is contained in:
@@ -21,7 +21,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
|
||||
import static org.springframework.test.web.servlet.setup.MockMvcBuilders.*;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Wither;
|
||||
import lombok.With;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@@ -148,7 +148,7 @@ class RenderHypermediaForDefaultAcceptHeadersTest {
|
||||
}
|
||||
|
||||
@Data
|
||||
@Wither
|
||||
@With
|
||||
static class Employee {
|
||||
|
||||
private final String name;
|
||||
|
||||
@@ -23,6 +23,7 @@ import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.Value;
|
||||
import lombok.With;
|
||||
import lombok.experimental.Wither;
|
||||
|
||||
import java.io.IOException;
|
||||
@@ -333,7 +334,7 @@ class JacksonSerializationTest {
|
||||
@Getter(onMethod = @__(@JsonProperty))
|
||||
@RequiredArgsConstructor(access = AccessLevel.PRIVATE)
|
||||
@NoArgsConstructor(staticName = "empty", force = true)
|
||||
@Wither
|
||||
@With
|
||||
private static class AccountProblemDetails {
|
||||
|
||||
int balance;
|
||||
|
||||
@@ -17,7 +17,7 @@ package org.springframework.hateoas.support;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Wither;
|
||||
import lombok.With;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
@@ -27,7 +27,7 @@ import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
* @author Greg Turnquist
|
||||
*/
|
||||
@Data
|
||||
@Wither
|
||||
@With
|
||||
@AllArgsConstructor
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class Employee {
|
||||
|
||||
Reference in New Issue
Block a user