Skip to content

Commit

Permalink
Fix for #25141 - make field final
Browse files Browse the repository at this point in the history
Based on review suggestion
  • Loading branch information
OndroMih authored Dec 30, 2024
1 parent 4620748 commit e3c9da0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public class SecurityContext extends AbstractSecurityContext {
// Did the client log in as or did the server generate the context
private boolean serverGeneratedSecurityContext;

private ThreadLocal<Principal> sessionPrincipal = new ThreadLocal<>();
private final ThreadLocal<Principal> sessionPrincipal = new ThreadLocal<>();

/*
* This creates a new SecurityContext object. Note: that the docs for Subject state that the internal sets (eg. the
Expand Down

0 comments on commit e3c9da0

Please sign in to comment.