Skip to content

Commit

Permalink
Merge pull request #28 from wwan13/feature/refactor
Browse files Browse the repository at this point in the history
refactor : remove unused imports and methods
  • Loading branch information
wwan13 authored Jun 19, 2024
2 parents 9591390 + 9d4cca0 commit 61c89b9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
10 changes: 0 additions & 10 deletions src/main/java/io/wwan13/wintersecurity/jwt/PayloadAnalysis.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,10 @@
package io.wwan13.wintersecurity.jwt;

import java.lang.reflect.Field;
import java.util.HashSet;
import java.util.Set;

public record PayloadAnalysis(
Class<?> payloadClazz,
Field subject,
Field roles
) {

public Set<Field> allClaims() {
Set<Field> allClaims = new HashSet<>();
allClaims.add(subject);
allClaims.add(roles);

return allClaims;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
import java.lang.reflect.Field;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import java.util.stream.Collectors;
Expand Down

0 comments on commit 61c89b9

Please sign in to comment.