Skip to content

Commit 4a5d97c

Browse files
committed
clean up
1 parent a78213a commit 4a5d97c

File tree

7 files changed

+13
-59
lines changed

7 files changed

+13
-59
lines changed

src/main/kotlin/io/openapiprocessor/spring/model/parameters/MultipartParameter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 https://github.com/openapi-processor/openapi-processor-core
2+
* Copyright 2021 https://github.com/openapi-processor/openapi-processor-spring
33
* PDX-License-Identifier: Apache-2.0
44
*/
55

src/main/kotlin/io/openapiprocessor/spring/model/parameters/QueryParameter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019 https://github.com/openapi-processor/openapi-processor-core
2+
* Copyright 2019 https://github.com/openapi-processor/openapi-processor-spring
33
* PDX-License-Identifier: Apache-2.0
44
*/
55

src/main/kotlin/io/openapiprocessor/spring/processor/SpringFramework.kt

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
/*
2-
* Copyright 2020 the original authors
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
2+
* Copyright 2020 https://github.com/openapi-processor/openapi-processor-spring
3+
* PDX-License-Identifier: Apache-2.0
154
*/
165

176
package io.openapiprocessor.spring.processor

src/main/kotlin/io/openapiprocessor/spring/processor/SpringFrameworkAnnotations.kt

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
/*
2-
* Copyright 2020 the original authors
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
2+
* Copyright 2020 https://github.com/openapi-processor/openapi-processor-spring
3+
* PDX-License-Identifier: Apache-2.0
154
*/
165

176
package io.openapiprocessor.spring.processor

src/main/kotlin/io/openapiprocessor/spring/processor/SpringProcessor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019 https://github.com/openapi-processor/openapi-processor-core
2+
* Copyright 2019 https://github.com/openapi-processor/openapi-processor-spring
33
* PDX-License-Identifier: Apache-2.0
44
*/
55

src/main/kotlin/io/openapiprocessor/spring/writer/java/MappingAnnotationWriter.kt

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

176
package io.openapiprocessor.spring.writer.java
@@ -25,8 +14,6 @@ import io.openapiprocessor.core.writer.java.MappingAnnotationWriter as CoreMappi
2514

2615
/**
2716
* spring mapping annotation writer
28-
*
29-
* @author Martin Hauner
3017
*/
3118
class MappingAnnotationWriter: CoreMappingAnnotationWriter {
3219

@@ -72,10 +59,10 @@ class MappingAnnotationWriter: CoreMappingAnnotationWriter {
7259
}
7360

7461
private fun getMappingAnnotation(endpoint: Endpoint): String {
75-
return when(endpoint.method){
62+
return when (endpoint.method) {
7663
HttpMethod.HEAD, HttpMethod.OPTIONS, HttpMethod.TRACE -> "@RequestMapping"
7764
else -> {
78-
"@${endpoint.method.method.capitalizeFirstChar ()}Mapping"
65+
"@${endpoint.method.method.capitalizeFirstChar()}Mapping"
7966
}
8067
}
8168
}

src/main/kotlin/io/openapiprocessor/spring/writer/java/ParameterAnnotationWriter.kt

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

176
package io.openapiprocessor.spring.writer.java

0 commit comments

Comments
 (0)