Skip to content

Commit 668ce3b

Browse files
committed
feat(JwtAuthenticationToken): @EqualsAndHashCode(callSuper = true) 추가
- 부모가 equals를 오버라이딩하면 자식도 해야함 - 소나가 알려줌
1 parent 9810c6b commit 668ce3b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/somemore/auth/authentication/JwtAuthenticationToken.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
package com.somemore.auth.authentication;
22

3+
import lombok.EqualsAndHashCode;
34
import org.springframework.security.authentication.AbstractAuthenticationToken;
45
import org.springframework.security.core.GrantedAuthority;
56

67
import java.io.Serializable;
78
import java.util.Collection;
89

10+
@EqualsAndHashCode(callSuper = true)
911
public class JwtAuthenticationToken extends AbstractAuthenticationToken {
1012
private final Serializable principal;
1113
private final transient Object credentials;

0 commit comments

Comments
 (0)