Skip to content

Commit 6dec4a5

Browse files
committed
code review
1 parent 0f90239 commit 6dec4a5

File tree

9 files changed

+125
-302
lines changed

9 files changed

+125
-302
lines changed

springdoc-openapi-common/src/main/java/org/springdoc/api/OpenApiResourceNotFoundException.java

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,3 @@
1-
/*
2-
*
3-
*
4-
* *
5-
* * *
6-
* * * * Copyright 2019-2020 the original author or authors.
7-
* * * *
8-
* * * * Licensed under the Apache License, Version 2.0 (the "License");
9-
* * * * you may not use this file except in compliance with the License.
10-
* * * * You may obtain a copy of the License at
11-
* * * *
12-
* * * * https://www.apache.org/licenses/LICENSE-2.0
13-
* * * *
14-
* * * * Unless required by applicable law or agreed to in writing, software
15-
* * * * distributed under the License is distributed on an "AS IS" BASIS,
16-
* * * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17-
* * * * See the License for the specific language governing permissions and
18-
* * * * limitations under the License.
19-
* * *
20-
* *
21-
*
22-
*/
23-
241
package org.springdoc.api;
252

263
/**

springdoc-openapi-common/src/main/java/org/springdoc/core/RepositoryRestResourceProvider.java

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,3 @@
1-
/*
2-
*
3-
*
4-
* *
5-
* * *
6-
* * * * Copyright 2019-2020 the original author or authors.
7-
* * * *
8-
* * * * Licensed under the Apache License, Version 2.0 (the "License");
9-
* * * * you may not use this file except in compliance with the License.
10-
* * * * You may obtain a copy of the License at
11-
* * * *
12-
* * * * https://www.apache.org/licenses/LICENSE-2.0
13-
* * * *
14-
* * * * Unless required by applicable law or agreed to in writing, software
15-
* * * * distributed under the License is distributed on an "AS IS" BASIS,
16-
* * * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17-
* * * * See the License for the specific language governing permissions and
18-
* * * * limitations under the License.
19-
* * *
20-
* *
21-
*
22-
*/
23-
241
package org.springdoc.core;
252

263
import java.util.List;

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

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,3 @@
1-
/*
2-
*
3-
*
4-
* *
5-
* * *
6-
* * * * Copyright 2019-2020 the original author or authors.
7-
* * * *
8-
* * * * Licensed under the Apache License, Version 2.0 (the "License");
9-
* * * * you may not use this file except in compliance with the License.
10-
* * * * You may obtain a copy of the License at
11-
* * * *
12-
* * * * https://www.apache.org/licenses/LICENSE-2.0
13-
* * * *
14-
* * * * Unless required by applicable law or agreed to in writing, software
15-
* * * * distributed under the License is distributed on an "AS IS" BASIS,
16-
* * * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17-
* * * * See the License for the specific language governing permissions and
18-
* * * * limitations under the License.
19-
* * *
20-
* *
21-
*
22-
*/
23-
241
package org.springdoc.core.customizers;
252

263
import java.util.List;

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

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,3 @@
1-
/*
2-
*
3-
*
4-
* *
5-
* * *
6-
* * * * Copyright 2019-2020 the original author or authors.
7-
* * * *
8-
* * * * Licensed under the Apache License, Version 2.0 (the "License");
9-
* * * * you may not use this file except in compliance with the License.
10-
* * * * You may obtain a copy of the License at
11-
* * * *
12-
* * * * https://www.apache.org/licenses/LICENSE-2.0
13-
* * * *
14-
* * * * Unless required by applicable law or agreed to in writing, software
15-
* * * * distributed under the License is distributed on an "AS IS" BASIS,
16-
* * * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17-
* * * * See the License for the specific language governing permissions and
18-
* * * * limitations under the License.
19-
* * *
20-
* *
21-
*
22-
*/
23-
241
package org.springdoc.core.customizers;
252

263
import org.springframework.core.MethodParameter;
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
*
3+
*
4+
* *
5+
* * *
6+
* * * * Copyright 2019-2020 the original author or authors.
7+
* * * *
8+
* * * * Licensed under the Apache License, Version 2.0 (the "License");
9+
* * * * you may not use this file except in compliance with the License.
10+
* * * * You may obtain a copy of the License at
11+
* * * *
12+
* * * * https://www.apache.org/licenses/LICENSE-2.0
13+
* * * *
14+
* * * * Unless required by applicable law or agreed to in writing, software
15+
* * * * distributed under the License is distributed on an "AS IS" BASIS,
16+
* * * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
* * * * See the License for the specific language governing permissions and
18+
* * * * limitations under the License.
19+
* * *
20+
* *
21+
*
22+
*/
23+
24+
package org.springdoc.core.fn;
25+
26+
import java.util.function.Consumer;
27+
28+
import org.springdoc.core.fn.builders.OperationBuilder;
29+
30+
/**
31+
* @author bnasslahsen
32+
*/
33+
public abstract class AbstractSpringdocRouteBuilder {
34+
35+
protected OperationBuilder getOperationBuilder(Consumer<OperationBuilder> operationsConsumer) {
36+
OperationBuilder builder = OperationBuilder.builder();
37+
operationsConsumer.accept(builder);
38+
return builder;
39+
}
40+
41+
}

springdoc-openapi-data-rest/src/main/java/org/springdoc/data/rest/customisers/DataRestDelegatingMethodParameterCustomizer.java

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,3 @@
1-
/*
2-
*
3-
*
4-
* *
5-
* * *
6-
* * * * Copyright 2019-2020 the original author or authors.
7-
* * * *
8-
* * * * Licensed under the Apache License, Version 2.0 (the "License");
9-
* * * * you may not use this file except in compliance with the License.
10-
* * * * You may obtain a copy of the License at
11-
* * * *
12-
* * * * https://www.apache.org/licenses/LICENSE-2.0
13-
* * * *
14-
* * * * Unless required by applicable law or agreed to in writing, software
15-
* * * * distributed under the License is distributed on an "AS IS" BASIS,
16-
* * * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17-
* * * * See the License for the specific language governing permissions and
18-
* * * * limitations under the License.
19-
* * *
20-
* *
21-
*
22-
*/
23-
241
package org.springdoc.data.rest.customisers;
252

263
import java.lang.annotation.Annotation;

springdoc-openapi-hateoas/src/main/java/org/springdoc/hateoas/converters/OpenApiHateoasLinksCustomiser.java

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,3 @@
1-
/*
2-
*
3-
*
4-
* *
5-
* * *
6-
* * * * Copyright 2019-2020 the original author or authors.
7-
* * * *
8-
* * * * Licensed under the Apache License, Version 2.0 (the "License");
9-
* * * * you may not use this file except in compliance with the License.
10-
* * * * You may obtain a copy of the License at
11-
* * * *
12-
* * * * https://www.apache.org/licenses/LICENSE-2.0
13-
* * * *
14-
* * * * Unless required by applicable law or agreed to in writing, software
15-
* * * * distributed under the License is distributed on an "AS IS" BASIS,
16-
* * * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17-
* * * * See the License for the specific language governing permissions and
18-
* * * * limitations under the License.
19-
* * *
20-
* *
21-
*
22-
*/
23-
241
package org.springdoc.hateoas.converters;
252

263
import io.swagger.v3.core.converter.AnnotatedType;

0 commit comments

Comments
 (0)