Skip to content

Commit 15300ba

Browse files
committed
javadoc update
1 parent 36e63d7 commit 15300ba

File tree

29 files changed

+150
-69
lines changed

29 files changed

+150
-69
lines changed

springdoc-openapi-starter-common/src/main/java/org/springdoc/api/AbstractOpenApiResource.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ protected OpenAPI getOpenApi(Locale locale) {
354354
* Gets open api.
355355
*
356356
* @param serverBaseUrl the server base url
357-
* @param locale the locale
357+
* @param locale the locale
358358
* @return the open api
359359
*/
360360
protected OpenAPI getOpenApi(String serverBaseUrl, Locale locale) {
@@ -1023,7 +1023,7 @@ protected Set<RequestMethod> getDefaultAllowedHttpMethods() {
10231023
* Customise operation.
10241024
*
10251025
* @param operation the operation
1026-
* @param components
1026+
* @param components the components
10271027
* @param handlerMethod the handler method
10281028
* @return the operation
10291029
*/

springdoc-openapi-starter-common/src/main/java/org/springdoc/core/configuration/SpringDocConfiguration.java

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,11 @@ static BeanFactoryPostProcessor springdocBeanFactoryPostProcessor2() {
191191
return SpringdocBeanFactoryConfigurer::initBeanFactoryPostProcessor;
192192
}
193193

194+
/**
195+
* Init extra schemas object.
196+
*
197+
* @return the object
198+
*/
194199
@Bean
195200
@Lazy(false)
196201
@ConditionalOnProperty(name = SPRINGDOC_ENABLE_EXTRA_SCHEMAS, matchIfMissing = true)
@@ -386,10 +391,10 @@ SecurityService securityParser(PropertyResolverUtils propertyResolverUtils) {
386391
/**
387392
* Parameter builder generic parameter builder.
388393
*
389-
* @param propertyResolverUtils the property resolver utils
390-
* @param optionalWebConversionServiceProvider the optional web conversion service provider
391-
* @param objectMapperProvider the object mapper provider
392-
* @param javadocProvider the javadoc provider
394+
* @param propertyResolverUtils the property resolver utils
395+
* @param optionalWebConversionServiceProvider the optional web conversion service provider
396+
* @param objectMapperProvider the object mapper provider
397+
* @param javadocProvider the javadoc provider
393398
* @return the generic parameter builder
394399
*/
395400
@Bean

springdoc-openapi-starter-common/src/main/java/org/springdoc/core/configuration/SpringDocHateoasConfiguration.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828

2929
import java.util.Optional;
3030

31-
import com.fasterxml.jackson.core.JsonGenerator;
32-
import com.fasterxml.jackson.databind.SerializerProvider;
3331
import org.springdoc.core.converters.CollectionModelContentConverter;
3432
import org.springdoc.core.converters.HateoasLinksConverter;
3533
import org.springdoc.core.customizers.GlobalOpenApiCustomizer;
@@ -48,7 +46,6 @@
4846
import org.springframework.context.annotation.Bean;
4947
import org.springframework.context.annotation.Configuration;
5048
import org.springframework.context.annotation.Lazy;
51-
import org.springframework.hateoas.Links;
5249
import org.springframework.hateoas.server.LinkRelationProvider;
5350

5451
/**
@@ -99,7 +96,6 @@ CollectionModelContentConverter collectionModelContentConverter(HateoasHalProvid
9996
* @param halProvider the hal provider
10097
* @param springDocConfigProperties the spring doc config properties
10198
* @return the open api customizer
102-
* @see org.springframework.hateoas.mediatype.hal.Jackson2HalModule.HalLinkListSerializer#serialize(Links, JsonGenerator, SerializerProvider) org.springframework.hateoas.mediatype.hal.Jackson2HalModule.HalLinkListSerializer#serialize(Links, JsonGenerator, SerializerProvider)org.springframework.hateoas.mediatype.hal.Jackson2HalModule.HalLinkListSerializer#serialize(Links, JsonGenerator, SerializerProvider)org.springframework.hateoas.mediatype.hal.Jackson2HalModule.HalLinkListSerializer#serialize(Links, JsonGenerator, SerializerProvider)org.springframework.hateoas.mediatype.hal.Jackson2HalModule.HalLinkListSerializer#serialize(Links, JsonGenerator, SerializerProvider)org.springframework.hateoas.mediatype.hal.Jackson2HalModule.HalLinkListSerializer#serialize(Links, JsonGenerator, SerializerProvider)org.springframework.hateoas.mediatype.hal.Jackson2HalModule.HalLinkListSerializer#serialize(Links, JsonGenerator, SerializerProvider)org.springframework.hateoas.mediatype.hal.Jackson2HalModule.HalLinkListSerializer#serialize(Links, JsonGenerator, SerializerProvider)
10399
*/
104100
@Bean(Constants.LINKS_SCHEMA_CUSTOMIZER)
105101
@ConditionalOnMissingBean(name = Constants.LINKS_SCHEMA_CUSTOMIZER)

springdoc-openapi-starter-common/src/main/java/org/springdoc/core/converters/CollectionModelContentConverter.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,8 @@
2626

2727
package org.springdoc.core.converters;
2828

29-
import java.util.Collection;
3029
import java.util.Iterator;
3130

32-
import com.fasterxml.jackson.core.JsonGenerator;
33-
import com.fasterxml.jackson.databind.SerializerProvider;
3431
import com.fasterxml.jackson.databind.type.CollectionType;
3532
import com.fasterxml.jackson.databind.type.TypeBindings;
3633
import io.swagger.v3.core.converter.AnnotatedType;
@@ -48,8 +45,6 @@
4845
* Override resolved schema as there is a custom serializer that converts the data to a map before serializing it.
4946
*
5047
* @author bnasslahsen
51-
* @see org.springframework.hateoas.mediatype.hal.Jackson2HalModule.HalResourcesSerializer
52-
* @see org.springframework.hateoas.mediatype.hal.Jackson2HalModule.HalResourcesSerializer#serialize(Collection, JsonGenerator, SerializerProvider) org.springframework.hateoas.mediatype.hal.Jackson2HalModule.HalResourcesSerializer#serialize(Collection, JsonGenerator, SerializerProvider)org.springframework.hateoas.mediatype.hal.Jackson2HalModule.HalResourcesSerializer#serialize(Collection, JsonGenerator, SerializerProvider)org.springframework.hateoas.mediatype.hal.Jackson2HalModule.HalResourcesSerializer#serialize(Collection, JsonGenerator, SerializerProvider)org.springframework.hateoas.mediatype.hal.Jackson2HalModule.HalResourcesSerializer#serialize(Collection, JsonGenerator, SerializerProvider)org.springframework.hateoas.mediatype.hal.Jackson2HalModule.HalResourcesSerializer#serialize(Collection, JsonGenerator, SerializerProvider)
5348
*/
5449
public class CollectionModelContentConverter implements ModelConverter {
5550

springdoc-openapi-starter-common/src/main/java/org/springdoc/core/converters/PolymorphicModelConverter.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,10 @@ private record BeanPropertyBiDefinition(
260260
/**
261261
* Retrieves an annotation of the specified type from either the serialization or
262262
* deserialization property definition (field, getter, setter), returning the first available match.
263+
*
264+
* @param <A> the type parameter
265+
* @param acls the acls
266+
* @return the any annotation
263267
*/
264268
public <A extends Annotation> A getAnyAnnotation(Class<A> acls) {
265269
A anyForSerializationAnnotation = getAnyAnnotation(forSerialization, acls);
@@ -271,13 +275,19 @@ public <A extends Annotation> A getAnyAnnotation(Class<A> acls) {
271275
/**
272276
* Checks if any annotation of the specified type exists across serialization
273277
* or deserialization property definitions.
278+
*
279+
* @param <A> the type parameter
280+
* @param acls the acls
281+
* @return the boolean
274282
*/
275283
public <A extends Annotation> boolean isAnyAnnotated(Class<A> acls) {
276284
return getAnyAnnotation(acls) != null;
277285
}
278286

279287
/**
280288
* Type determined from the primary member for the property being built.
289+
*
290+
* @return the primary type
281291
*/
282292
public JavaType getPrimaryType() {
283293
JavaType forSerializationType = null;

springdoc-openapi-starter-common/src/main/java/org/springdoc/core/customizers/GlobalOpenApiCustomizer.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
* customize Open api on default OpenAPI description and groups.
3232
*
3333
* @author christophejan
34-
* @see OpenApiCustomizer default OpenAPI description but not groups
3534
*/
3635
public interface GlobalOpenApiCustomizer extends OpenApiCustomizer {
3736
}

springdoc-openapi-starter-common/src/main/java/org/springdoc/core/customizers/GlobalOperationComponentsCustomizer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@
3737
* description and groups
3838
*
3939
* @author christophejan
40-
* @see OperationCustomizer operations on default OpenAPI description but not groups
4140
*/
4241
public interface GlobalOperationComponentsCustomizer extends GlobalOperationCustomizer {
4342

4443
/**
4544
* Customize operation.
4645
*
4746
* @param operation input operation
47+
* @param components the components
4848
* @param handlerMethod original handler method
4949
* @return customized operation
5050
*/

springdoc-openapi-starter-common/src/main/java/org/springdoc/core/customizers/GlobalOperationCustomizer.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
* description and groups
3333
*
3434
* @author christophejan
35-
* @see OperationCustomizer operations on default OpenAPI description but not groups
3635
*/
3736
public interface GlobalOperationCustomizer extends OperationCustomizer {
3837
}

springdoc-openapi-starter-common/src/main/java/org/springdoc/core/customizers/OpenApiCustomizer.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
* Open api on default OpenAPI description but not on groups
3434
*
3535
* @author bnasslahsen
36-
* @see GlobalOpenApiCustomizer default OpenAPI description and groups
3736
*/
3837
@FunctionalInterface
3938
public interface OpenApiCustomizer {

springdoc-openapi-starter-common/src/main/java/org/springdoc/core/customizers/OperationCustomizer.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
* groups
3737
*
3838
* @author bnasslahsen
39-
* @see GlobalOperationCustomizer operations on default OpenAPI description and groups
4039
*/
4140
@FunctionalInterface
4241
public interface OperationCustomizer {

0 commit comments

Comments
 (0)