File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
springdoc-openapi-common/src/main/java/org/springdoc/core Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -49,11 +49,7 @@ class MethodParameterPojoExtractor {
4949
5050 private MethodParameterPojoExtractor () { }
5151
52- private static final Nullable NULLABLE_ANNOTATION = new Nullable () {
53- public Class <? extends Annotation > annotationType () {
54- return Nullable .class ;
55- }
56- };
52+ private static final Nullable NULLABLE_ANNOTATION = getNullable ();
5753
5854 private static final List <Predicate <Class <?>>> SIMPLE_TYPE_PREDICATES = new ArrayList <>();
5955
@@ -145,4 +141,12 @@ static void addSimpleTypes(Class<?>... classes) {
145141 static void removeSimpleTypes (Class <?>... classes ) {
146142 SIMPLE_TYPES .removeAll (Arrays .asList (classes ));
147143 }
144+
145+ private static Nullable getNullable () {
146+ return new Nullable () {
147+ public Class <? extends Annotation > annotationType () {
148+ return Nullable .class ;
149+ }
150+ };
151+ }
148152}
You can’t perform that action at this time.
0 commit comments