1919import java .util .Arrays ;
2020import java .util .List ;
2121
22- import org .jspecify .annotations .Nullable ;
23-
2422import org .springframework .util .ObjectUtils ;
2523import org .springframework .web .bind .annotation .RequestMethod ;
2624
@@ -60,7 +58,6 @@ public String[] getOrigin() {
6058 return this .origin ;
6159 }
6260
63- @ Nullable
6461 public List <String > getOriginsList () {
6562 return ObjectUtils .isEmpty (this .origin ) ? null : Arrays .asList (this .origin );
6663 }
@@ -73,7 +70,6 @@ public String[] getOriginPatterns() {
7370 return this .originPatterns ;
7471 }
7572
76- @ Nullable
7773 public List <String > getOriginPatternsList () {
7874 return ObjectUtils .isEmpty (this .originPatterns ) ? null : Arrays .asList (this .originPatterns );
7975 }
@@ -86,7 +82,6 @@ public String[] getAllowedHeaders() {
8682 return this .allowedHeaders ;
8783 }
8884
89- @ Nullable
9085 public List <String > getAllowedHeadersList () {
9186 return ObjectUtils .isEmpty (this .allowedHeaders ) ? null : Arrays .asList (this .allowedHeaders );
9287 }
@@ -99,7 +94,6 @@ public String[] getExposedHeaders() {
9994 return this .exposedHeaders ;
10095 }
10196
102- @ Nullable
10397 public List <String > getExposedHeadersList () {
10498 return ObjectUtils .isEmpty (this .exposedHeaders ) ? null : Arrays .asList (this .exposedHeaders );
10599 }
@@ -112,7 +106,6 @@ public RequestMethod[] getMethod() {
112106 return this .method ;
113107 }
114108
115- @ Nullable
116109 public List <RequestMethod > getMethodsList () {
117110 return ObjectUtils .isEmpty (this .method ) ? null : Arrays .asList (this .method );
118111 }
0 commit comments