Revert "Spotbugs: SS_SHOULD_BE_STATIC (#8073)" (#8145)

This reverts commit 04a180a5fb.
This commit is contained in:
Clint Wylie 2019-07-23 22:57:19 -07:00 committed by GitHub
parent b8b22b7aaa
commit 0388581493
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

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

View File

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