#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:
Greg Turnquist
2020-02-12 08:42:16 -06:00
parent 48718bb180
commit 934ae0320f
3 changed files with 6 additions and 5 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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 {