Spotbugs: SS_SHOULD_BE_STATIC (#8073)

This commit is contained in:
Fokko Driesprong 2019-07-23 12:18:49 +02:00 committed by Benedict Jin
parent b2867c9d06
commit 04a180a5fb
2 changed files with 1 additions and 2 deletions

View File

@ -85,7 +85,6 @@
<Bug pattern="SF_SWITCH_FALLTHROUGH"/>
<Bug pattern="SF_SWITCH_NO_DEFAULT"/>
<Bug pattern="SR_NOT_CHECKED"/>
<Bug pattern="SS_SHOULD_BE_STATIC"/>
<Bug pattern="SWL_SLEEP_WITH_LOCK_HELD"/>
<Bug pattern="UL_UNRELEASED_LOCK_EXCEPTION_PATH"/>
<Bug pattern="URF_UNREAD_FIELD"/>

View File

@ -40,8 +40,8 @@ import java.util.Map;
@JsonTypeName("anonymous")
public class AnonymousAuthenticator implements Authenticator
{
private static final String DEFAULT_IDENTITY = "defaultUser";
private final AuthenticationResult anonymousResult;
private final String DEFAULT_IDENTITY = "defaultUser";
@JsonCreator
public AnonymousAuthenticator(