Skip to content

Commit 610cd4b

Browse files
committed
Code cleanup
1 parent f47df4d commit 610cd4b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

modules/swagger-core/src/main/java/io/swagger/v3/core/jackson/ModelResolver.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ public Schema resolve(AnnotatedType annotatedType, ModelConverterContext context
683683
!(a instanceof io.swagger.v3.oas.annotations.media.ArraySchema)) {
684684
ctxAnnotations31List.add(a);
685685
}
686-
if ((ctxSchema != null) && (!ctxSchema.implementation().equals(Void.class) || StringUtils.isNotEmpty(ctxSchema.type()))) {
686+
if ((ctxSchema != null) && (!ctxSchema.implementation().equals(Void.class) || StringUtils.isNotEmpty(ctxSchema.type()))) {
687687
ctxAnnotations31List.add(a);
688688
}
689689
}

modules/swagger-core/src/test/java/io/swagger/v3/core/resolving/Ticket4679Test.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import java.util.Map;
1111

1212
public class Ticket4679Test extends SwaggerTestBase{
13+
1314
@Test(description = "Custom schema implementation in property overrides type value")
1415
public void testCustomSchemaImplementation() {
1516

@@ -23,7 +24,6 @@ public void testCustomSchemaImplementation() {
2324

2425
Map<String, io.swagger.v3.oas.models.media.Schema> stringSchemaMap = ModelConverters.getInstance(true).readAll(ModelWithCustomSchemaImplementationInProperty.class);
2526
SerializationMatchers.assertEqualsToYaml31(stringSchemaMap, expectedYaml);
26-
System.out.println(Yaml31.pretty(stringSchemaMap));
2727
}
2828

2929
static class ModelWithCustomSchemaImplementationInProperty {
@@ -41,6 +41,7 @@ public String getExampleField() {
4141
public void setExampleField(String exampleField) {
4242
this.exampleField = exampleField;
4343
}
44+
4445
public Integer getSecondExampleField() {
4546
return secondExampleField;
4647
}

0 commit comments

Comments
 (0)