Skip to content

Commit 3a0ae3d

Browse files
committed
Tidy, no effective change
1 parent fbd8624 commit 3a0ae3d

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/main/java/io/dinject/javalin/generator/openapi/SchemaDocBuilder.java

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,6 @@ private Schema<?> buildMapSchema(TypeMirror type) {
196196
}
197197

198198
MapSchema mapSchema = new MapSchema();
199-
// mapSchema.type();
200-
// mapSchema.set$ref();
201-
// mapSchema.setFormat();
202199
mapSchema.setAdditionalProperties(valueSchema);
203200
return mapSchema;
204201
}
@@ -248,13 +245,8 @@ private void setLengthMinMax(Element element, Schema<?> propSchema) {
248245
}
249246

250247
private boolean isNotNullable(Element element) {
251-
if (element.getAnnotation(org.jetbrains.annotations.NotNull.class) != null) {
252-
return true;
253-
}
254-
if (element.getAnnotation(javax.validation.constraints.NotNull.class) != null) {
255-
return true;
256-
}
257-
return false;
248+
return element.getAnnotation(org.jetbrains.annotations.NotNull.class) != null
249+
|| element.getAnnotation(javax.validation.constraints.NotNull.class) != null;
258250
}
259251

260252
/**

0 commit comments

Comments
 (0)