diff --git a/spring-security-core/src/main/java/org/baeldung/testmethodsecurity/entity/CustomUser.java b/spring-security-core/src/main/java/org/baeldung/testmethodsecurity/entity/CustomUser.java index 8c5a5b2fb2..b145a82c80 100644 --- a/spring-security-core/src/main/java/org/baeldung/testmethodsecurity/entity/CustomUser.java +++ b/spring-security-core/src/main/java/org/baeldung/testmethodsecurity/entity/CustomUser.java @@ -9,7 +9,6 @@ import org.springframework.security.core.userdetails.User; public class CustomUser extends User{ private String nickName; - private int age; public CustomUser(String username, String password, Collection authorities) { super(username, password, authorities); @@ -28,12 +27,4 @@ public class CustomUser extends User{ this.nickName = nickName; } - public int getAge() { - return age; - } - - public void setAge(int age) { - this.age = age; - } - }