Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Commit 82c58fb

Browse files
authored
reformat (#333)
1 parent 751cfe7 commit 82c58fb

File tree

8 files changed

+76
-8
lines changed

8 files changed

+76
-8
lines changed

spring-auto-restdocs-core/src/main/java/capital/scalable/restdocs/i18n/SnippetTranslationManager.java

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,24 @@
1+
/*-
2+
* #%L
3+
* Spring Auto REST Docs Core
4+
* %%
5+
* Copyright (C) 2015 - 2019 Scalable Capital GmbH
6+
* %%
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
* #L%
19+
*/
120
package capital.scalable.restdocs.i18n;
221

3-
422
public class SnippetTranslationManager {
523

624
private static SnippetTranslationResolver snippetTranslationResolver;

spring-auto-restdocs-core/src/main/java/capital/scalable/restdocs/i18n/SnippetTranslationResolver.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*-
2+
* #%L
3+
* Spring Auto REST Docs Core
4+
* %%
5+
* Copyright (C) 2015 - 2019 Scalable Capital GmbH
6+
* %%
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
* #L%
19+
*/
120
package capital.scalable.restdocs.i18n;
221

322
public interface SnippetTranslationResolver {

spring-auto-restdocs-core/src/main/java/capital/scalable/restdocs/i18n/TranslationHandlers.java

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,29 @@
1+
/*-
2+
* #%L
3+
* Spring Auto REST Docs Core
4+
* %%
5+
* Copyright (C) 2015 - 2019 Scalable Capital GmbH
6+
* %%
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
* #L%
19+
*/
120
package capital.scalable.restdocs.i18n;
221

22+
import static capital.scalable.restdocs.OperationAttributeHelper.setTranslationResolver;
23+
324
import org.springframework.test.web.servlet.MvcResult;
425
import org.springframework.test.web.servlet.ResultHandler;
526

6-
import static capital.scalable.restdocs.OperationAttributeHelper.setTranslationResolver;
7-
827
public abstract class TranslationHandlers {
928

1029
public static ResultHandler defaultTranslation() {

spring-auto-restdocs-core/src/main/java/capital/scalable/restdocs/misc/DescriptionSnippet.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@
1919
*/
2020
package capital.scalable.restdocs.misc;
2121

22-
import static capital.scalable.restdocs.OperationAttributeHelper.*;
22+
import static capital.scalable.restdocs.OperationAttributeHelper.determineTemplateFormatting;
23+
import static capital.scalable.restdocs.OperationAttributeHelper.getHandlerMethod;
24+
import static capital.scalable.restdocs.OperationAttributeHelper.getJavadocReader;
25+
import static capital.scalable.restdocs.OperationAttributeHelper.getTranslationResolver;
2326
import static capital.scalable.restdocs.SnippetRegistry.AUTO_DESCRIPTION;
2427
import static capital.scalable.restdocs.javadoc.JavadocUtil.convertFromJavadoc;
2528
import static capital.scalable.restdocs.util.FormatUtil.addDot;

spring-auto-restdocs-core/src/main/java/capital/scalable/restdocs/request/AbstractParameterSnippet.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@
1919
*/
2020
package capital.scalable.restdocs.request;
2121

22-
import static capital.scalable.restdocs.OperationAttributeHelper.*;
22+
import static capital.scalable.restdocs.OperationAttributeHelper.getConstraintReader;
23+
import static capital.scalable.restdocs.OperationAttributeHelper.getHandlerMethod;
24+
import static capital.scalable.restdocs.OperationAttributeHelper.getJavadocReader;
25+
import static capital.scalable.restdocs.OperationAttributeHelper.getTranslationResolver;
2326
import static capital.scalable.restdocs.constraints.ConstraintReader.CONSTRAINTS_ATTRIBUTE;
2427
import static capital.scalable.restdocs.constraints.ConstraintReader.DEFAULT_VALUE_ATTRIBUTE;
2528
import static capital.scalable.restdocs.constraints.ConstraintReader.DEPRECATED_ATTRIBUTE;

spring-auto-restdocs-core/src/main/java/capital/scalable/restdocs/section/SectionSnippet.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@
1919
*/
2020
package capital.scalable.restdocs.section;
2121

22-
import static capital.scalable.restdocs.OperationAttributeHelper.*;
22+
import static capital.scalable.restdocs.OperationAttributeHelper.getDefaultSnippets;
23+
import static capital.scalable.restdocs.OperationAttributeHelper.getDocumentationContext;
24+
import static capital.scalable.restdocs.OperationAttributeHelper.getHandlerMethod;
25+
import static capital.scalable.restdocs.OperationAttributeHelper.getJavadocReader;
26+
import static capital.scalable.restdocs.OperationAttributeHelper.getTranslationResolver;
2327
import static java.util.Collections.emptyList;
2428
import static org.apache.commons.lang3.StringUtils.isBlank;
2529
import static org.apache.commons.lang3.StringUtils.isNotBlank;

spring-auto-restdocs-core/src/main/java/capital/scalable/restdocs/webflux/WebTestClientInitializer.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
import capital.scalable.restdocs.constraints.ConstraintReader;
2323
import capital.scalable.restdocs.constraints.ConstraintReaderImpl;
24-
import capital.scalable.restdocs.i18n.ResourceBundleSnippetTranslationResolver;
2524
import capital.scalable.restdocs.i18n.SnippetTranslationManager;
2625
import capital.scalable.restdocs.jackson.TypeMapping;
2726
import capital.scalable.restdocs.javadoc.JavadocReader;

spring-auto-restdocs-core/src/test/java/capital/scalable/restdocs/constraints/ConstraintReaderImplTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@
3535
import javax.validation.constraints.Null;
3636
import java.lang.reflect.Method;
3737
import java.math.BigDecimal;
38-
import java.util.*;
38+
import java.util.Collection;
39+
import java.util.HashMap;
40+
import java.util.List;
41+
import java.util.Map;
3942

4043
import capital.scalable.restdocs.i18n.SnippetTranslationManager;
4144
import com.fasterxml.jackson.annotation.JsonValue;

0 commit comments

Comments
 (0)