26
26
import java .util .HashSet ;
27
27
import java .util .Set ;
28
28
29
- import io .swagger .v3 .oas .models .OpenAPI ;
30
29
import io .swagger .v3 .oas .models .Operation ;
31
30
import io .swagger .v3 .oas .models .tags .Tag ;
32
31
import org .springdoc .core .OpenAPIBuilder ;
@@ -47,7 +46,7 @@ public class DataRestTagsBuilder {
47
46
/**
48
47
* The Open api builder.
49
48
*/
50
- private OpenAPIBuilder openAPIBuilder ;
49
+ private final OpenAPIBuilder openAPIBuilder ;
51
50
52
51
/**
53
52
* Instantiates a new Data rest tags builder.
@@ -62,37 +61,34 @@ public DataRestTagsBuilder(OpenAPIBuilder openAPIBuilder) {
62
61
* Build search tags.
63
62
*
64
63
* @param operation the operation
65
- * @param openAPI the open api
66
64
* @param handlerMethod the handler method
67
65
* @param dataRestRepository the repository data rest
68
66
*/
69
- public void buildSearchTags (Operation operation , OpenAPI openAPI , HandlerMethod handlerMethod ,
67
+ public void buildSearchTags (Operation operation , HandlerMethod handlerMethod ,
70
68
DataRestRepository dataRestRepository ) {
71
- buildTags (operation , openAPI , handlerMethod , dataRestRepository );
69
+ buildTags (operation , handlerMethod , dataRestRepository );
72
70
}
73
71
74
72
/**
75
73
* Build entity tags.
76
74
*
77
75
* @param operation the operation
78
- * @param openAPI the open api
79
76
* @param handlerMethod the handler method
80
77
* @param dataRestRepository the repository data rest
81
78
*/
82
- public void buildEntityTags (Operation operation , OpenAPI openAPI , HandlerMethod handlerMethod ,
79
+ public void buildEntityTags (Operation operation , HandlerMethod handlerMethod ,
83
80
DataRestRepository dataRestRepository ) {
84
- buildTags (operation , openAPI , handlerMethod , dataRestRepository );
81
+ buildTags (operation , handlerMethod , dataRestRepository );
85
82
}
86
83
87
84
/**
88
85
* Build tags.
89
86
*
90
87
* @param operation the operation
91
- * @param openAPI the open api
92
88
* @param handlerMethod the handler method
93
89
* @param dataRestRepository the repository data rest
94
90
*/
95
- private void buildTags (Operation operation , OpenAPI openAPI , HandlerMethod handlerMethod ,
91
+ private void buildTags (Operation operation , HandlerMethod handlerMethod ,
96
92
DataRestRepository dataRestRepository ) {
97
93
String tagName = handlerMethod .getBeanType ().getSimpleName ();
98
94
if (SpringRepositoryRestResourceProvider .REPOSITORY_SCHEMA_CONTROLLER .equals (handlerMethod .getBeanType ().getName ())
0 commit comments