Skip to content

Commit 4e99df6

Browse files
committed
Merge branch '1.2.x'
2 parents 5f7aa1a + 7c6c2e7 commit 4e99df6

File tree

36 files changed

+88
-53
lines changed

36 files changed

+88
-53
lines changed

spring-restdocs-core/src/main/java/org/springframework/restdocs/cli/CliOperationRequest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ private boolean allowedHeader(Map.Entry<String, List<String>> header) {
103103
}
104104
}
105105
return true;
106-
107106
}
108107

109108
@Override

spring-restdocs-core/src/main/java/org/springframework/restdocs/cli/ConcatenatingCommandFormatter.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,12 @@ public String format(List<String> elements) {
4444
if (CollectionUtils.isEmpty(elements)) {
4545
return "";
4646
}
47-
4847
StringBuilder result = new StringBuilder();
49-
5048
for (String element : elements) {
5149
result.append(String.format(this.separator));
5250
result.append(element);
5351
}
54-
5552
return result.toString();
5653
}
54+
5755
}

spring-restdocs-core/src/main/java/org/springframework/restdocs/cli/CurlRequestSnippet.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ private void writeHeaders(CliOperationRequest request, List<String> lines) {
161161

162162
private void writePartsIfNecessary(OperationRequest request, List<String> lines) {
163163
for (OperationRequestPart part : request.getParts()) {
164-
165164
StringBuilder oneLine = new StringBuilder();
166165
oneLine.append(String.format("-F '%s=", part.getName()));
167166
if (!StringUtils.hasText(part.getSubmittedFileName())) {
@@ -174,7 +173,6 @@ private void writePartsIfNecessary(OperationRequest request, List<String> lines)
174173
oneLine.append(";type=");
175174
oneLine.append(part.getHeaders().getContentType().toString());
176175
}
177-
178176
oneLine.append("'");
179177
lines.add(oneLine.toString());
180178
}

spring-restdocs-core/src/main/java/org/springframework/restdocs/cli/HttpieRequestSnippet.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,4 +214,5 @@ private void writeContentUsingParameters(Parameters parameters, List<String> lin
214214
}
215215
}
216216
}
217+
217218
}

spring-restdocs-core/src/main/java/org/springframework/restdocs/config/NestedConfigurer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014-2016 the original author or authors.
2+
* Copyright 2014-2017 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -31,4 +31,5 @@ interface NestedConfigurer<PARENT> {
3131
* @return the parent
3232
*/
3333
PARENT and();
34+
3435
}

spring-restdocs-core/src/main/java/org/springframework/restdocs/constraints/ConstraintDescriptionResolver.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014-2015 the original author or authors.
2+
* Copyright 2014-2017 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -20,7 +20,6 @@
2020
* Resolves a description for a {@link Constraint}.
2121
*
2222
* @author Andy Wilkinson
23-
*
2423
*/
2524
public interface ConstraintDescriptionResolver {
2625

@@ -31,4 +30,5 @@ public interface ConstraintDescriptionResolver {
3130
* @return the description
3231
*/
3332
String resolveDescription(Constraint constraint);
33+
3434
}

spring-restdocs-core/src/main/java/org/springframework/restdocs/constraints/ValidatorConstraintResolver.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014-2015 the original author or authors.
2+
* Copyright 2014-2017 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -77,4 +77,5 @@ public List<Constraint> resolveForProperty(String property, Class<?> clazz) {
7777
}
7878
return constraints;
7979
}
80+
8081
}

spring-restdocs-core/src/main/java/org/springframework/restdocs/hypermedia/ContentTypeLinkExtractor.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
* content type.
3131
*
3232
* @author Andy Wilkinson
33-
*
3433
*/
3534
class ContentTypeLinkExtractor implements LinkExtractor {
3635

spring-restdocs-core/src/main/java/org/springframework/restdocs/hypermedia/HypermediaDocumentation.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014-2016 the original author or authors.
2+
* Copyright 2014-2017 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -472,4 +472,5 @@ public static LinkExtractor halLinks() {
472472
public static LinkExtractor atomLinks() {
473473
return new AtomLinkExtractor();
474474
}
475+
475476
}

spring-restdocs-core/src/main/java/org/springframework/restdocs/operation/preprocess/HeaderRemovingOperationPreprocessor.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014-2016 the original author or authors.
2+
* Copyright 2014-2017 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -66,4 +66,5 @@ private HttpHeaders removeHeaders(HttpHeaders originalHeaders) {
6666
}
6767
return processedHeaders;
6868
}
69+
6970
}

0 commit comments

Comments
 (0)