You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by GitBox <gi...@apache.org> on 2019/09/03 06:50:14 UTC

[GitHub] [geronimo-openapi] edenhaus commented on a change in pull request #17: Always use reusable object component

edenhaus commented on a change in pull request #17: Always use reusable object component
URL: https://github.com/apache/geronimo-openapi/pull/17#discussion_r320112933
 
 

 ##########
 File path: geronimo-openapi-impl/src/main/java/org/apache/geronimo/microprofile/openapi/impl/processor/SchemaProcessor.java
 ##########
 @@ -145,45 +146,22 @@ public void fillSchema(
                     fillSchema(components, Object.class, items, null);
                     schema.items(items);
                 } else {
-                    ofNullable(from.getAnnotation(Schema.class)).ifPresent(
-                            s -> sets(components, Schema.class.cast(s), schema, null));
+                    Optional<Annotation> annotation = ofNullable(from.getAnnotation(Schema.class));
 
 Review comment:
   Use now Optional[Schema]

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services