Delombok code.

Closes #2286
This commit is contained in:
Mark Paluch
2023-07-07 14:51:03 +02:00
parent 18030f9171
commit aa7262b038
38 changed files with 989 additions and 231 deletions

View File

@@ -15,8 +15,6 @@
*/
package org.springframework.data.rest.tests.mongodb;
import lombok.Value;
import java.math.BigInteger;
import java.time.LocalDateTime;
import java.util.HashMap;
@@ -74,9 +72,21 @@ public class User {
public static class TypeWithPattern {}
@Value
public static class Nested {
public @DBRef(lazy = true) User user;
public String foo = "foo";
public static final class Nested {
public final @DBRef(lazy = true) User user;
public final String foo = "foo";
public Nested(User user) {
this.user = user;
}
public User getUser() {
return this.user;
}
public String getFoo() {
return this.foo;
}
}
}

View File

@@ -19,8 +19,6 @@ import static org.assertj.core.api.Assertions.*;
import static org.mockito.Mockito.*;
import static org.springframework.data.rest.tests.mongodb.TestUtils.*;
import lombok.Data;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
@@ -178,12 +176,43 @@ class JsonPatchHandlerUnitTests {
}
@JsonIgnoreProperties("password")
@Data
static class WithIgnoredProperties {
String name, lastname, password;
@JsonIgnore String ssn;
public String getName() {
return this.name;
}
public String getLastname() {
return this.lastname;
}
public String getPassword() {
return this.password;
}
public String getSsn() {
return this.ssn;
}
public void setName(String name) {
this.name = name;
}
public void setLastname(String lastname) {
this.lastname = lastname;
}
public void setPassword(String password) {
this.password = password;
}
@JsonIgnore
public void setSsn(String ssn) {
this.ssn = ssn;
}
}
}