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 {
49
49
50
50
private MethodParameterPojoExtractor () { }
51
51
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 ();
57
53
58
54
private static final List <Predicate <Class <?>>> SIMPLE_TYPE_PREDICATES = new ArrayList <>();
59
55
@@ -145,4 +141,12 @@ static void addSimpleTypes(Class<?>... classes) {
145
141
static void removeSimpleTypes (Class <?>... classes ) {
146
142
SIMPLE_TYPES .removeAll (Arrays .asList (classes ));
147
143
}
144
+
145
+ private static Nullable getNullable () {
146
+ return new Nullable () {
147
+ public Class <? extends Annotation > annotationType () {
148
+ return Nullable .class ;
149
+ }
150
+ };
151
+ }
148
152
}
You can’t perform that action at this time.
0 commit comments