Skip to content

Commit 40bee45

Browse files
committed
Unnecessary enum modifier
1 parent 8d0ca14 commit 40bee45

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

config/src/main/java/org/springframework/security/config/annotation/AbstractConfiguredSecurityBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ private boolean isUnbuilt() {
409409
* @author Rob Winch
410410
* @since 3.2
411411
*/
412-
private static enum BuildState {
412+
private enum BuildState {
413413
/**
414414
* This is the state before the {@link Builder#build()} is invoked
415415
*/

config/src/main/java/org/springframework/security/config/http/SecurityFilters.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ enum SecurityFilters {
5858
private static final int INTERVAL = 100;
5959
private final int order;
6060

61-
private SecurityFilters() {
61+
SecurityFilters() {
6262
order = ordinal() * INTERVAL;
6363
}
6464

65-
private SecurityFilters(int order) {
65+
SecurityFilters(int order) {
6666
this.order = order;
6767
}
6868

config/src/main/java/org/springframework/security/config/web/server/SecurityWebFiltersOrder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ public enum SecurityWebFiltersOrder {
7272

7373
private final int order;
7474

75-
private SecurityWebFiltersOrder() {
75+
SecurityWebFiltersOrder() {
7676
this.order = ordinal() * INTERVAL;
7777
}
7878

79-
private SecurityWebFiltersOrder(int order) {
79+
SecurityWebFiltersOrder(int order) {
8080
this.order = order;
8181
}
8282

crypto/src/main/java/org/springframework/security/crypto/encrypt/AesBytesEncryptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public enum CipherAlgorithm {
6565
private BytesKeyGenerator ivGenerator;
6666
private String name;
6767

68-
private CipherAlgorithm(String name, BytesKeyGenerator ivGenerator) {
68+
CipherAlgorithm(String name, BytesKeyGenerator ivGenerator) {
6969
this.name = name;
7070
this.ivGenerator = ivGenerator;
7171
}

ldap/src/main/java/org/springframework/security/ldap/ppolicy/PasswordPolicyErrorStatus.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public enum PasswordPolicyErrorStatus {
5555
private final String errorCode;
5656
private final String defaultMessage;
5757

58-
private PasswordPolicyErrorStatus(String errorCode, String defaultMessage) {
58+
PasswordPolicyErrorStatus(String errorCode, String defaultMessage) {
5959
this.errorCode = errorCode;
6060
this.defaultMessage = defaultMessage;
6161
}

openid/src/main/java/org/springframework/security/openid/OpenIDAuthenticationStatus.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public enum OpenIDAuthenticationStatus {
4747
// ~ Constructors
4848
// ===================================================================================================
4949

50-
private OpenIDAuthenticationStatus(String name) {
50+
OpenIDAuthenticationStatus(String name) {
5151
this.name = name;
5252
}
5353

web/src/main/java/org/springframework/security/web/header/writers/frameoptions/XFrameOptionsHeaderWriter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public enum XFrameOptionsMode {
111111

112112
private String mode;
113113

114-
private XFrameOptionsMode(String mode) {
114+
XFrameOptionsMode(String mode) {
115115
this.mode = mode;
116116
}
117117

0 commit comments

Comments
 (0)