Skip to content

Commit dd16cd0

Browse files
Stephen WebbStephen Webb
Stephen Webb
authored and
Stephen Webb
committed
fix whitespace formatting
1 parent c5415e5 commit dd16cd0

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

springdoc-openapi-common/src/main/java/org/springdoc/core/SpringDocAnnotationsUtils.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,15 @@ public static Schema extractSchema(Components components, Type returnType, JsonV
130130
}
131131
else
132132
for (Map.Entry<String, Schema> entry : schemaMap.entrySet()) {
133-
if (!componentSchemas.containsKey(entry.getKey())) {
134-
componentSchemas.put(entry.getKey(), entry.getValue());
135-
// If we've seen this schema before but find later it should be polymorphic,
136-
// replace the existing schema with this richer version.
137-
} else if (entry.getValue() instanceof ComposedSchema &&
138-
!(componentSchemas.get(entry.getKey()) instanceof ComposedSchema)) {
139-
componentSchemas.put(entry.getKey(), entry.getValue());
140-
}
141-
}
133+
if (!componentSchemas.containsKey(entry.getKey())) {
134+
componentSchemas.put(entry.getKey(), entry.getValue());
135+
// If we've seen this schema before but find later it should be polymorphic,
136+
// replace the existing schema with this richer version.
137+
} else if (entry.getValue() instanceof ComposedSchema &&
138+
!(componentSchemas.get(entry.getKey()) instanceof ComposedSchema)) {
139+
componentSchemas.put(entry.getKey(), entry.getValue());
140+
}
141+
}
142142
components.setSchemas(componentSchemas);
143143
}
144144
if (resolvedSchema.schema != null) {

0 commit comments

Comments
 (0)