Skip to content

Commit 8a50c55

Browse files
committed
checkstyle compliance
1 parent 5031bc0 commit 8a50c55

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/resource/ResourceController.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ public String retrieve(@PathVariable String name, @PathVariable String profile,
108108

109109
@RequestMapping(value = "/{name}/{profile}/{path:.*}", params = "useDefaultLabel")
110110
public String retrieveDefault(@PathVariable String name, @PathVariable String profile, @PathVariable String path,
111-
ServletWebRequest request,@RequestParam(defaultValue = "true") boolean resolvePlaceholders
112-
) throws IOException {
111+
ServletWebRequest request, @RequestParam(defaultValue = "true") boolean resolvePlaceholders)
112+
throws IOException {
113113
return retrieve(request, name, profile, null, path, resolvePlaceholders);
114114
}
115115

@@ -177,8 +177,7 @@ public byte[] binary(@PathVariable String name, @PathVariable String profile, @P
177177
@RequestMapping(value = "/{name}/{profile}/{path:.*}", params = "useDefaultLabel",
178178
produces = MediaType.APPLICATION_OCTET_STREAM_VALUE)
179179
public byte[] binaryDefault(@PathVariable String name, @PathVariable String profile, @PathVariable String path,
180-
ServletWebRequest request
181-
) throws IOException {
180+
ServletWebRequest request) throws IOException {
182181
return binary(request, name, profile, null, path);
183182
}
184183

spring-cloud-config-server/src/test/java/org/springframework/cloud/config/server/resource/ResourceControllerIntegrationTests.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import java.util.Map;
2121

2222
import org.junit.Before;
23-
import org.junit.Ignore;
2423
import org.junit.Test;
2524
import org.junit.runner.RunWith;
2625
import org.mockito.Mockito;
@@ -150,8 +149,7 @@ public void resourceNoLabelHttp() throws Exception {
150149

151150
@Test
152151
public void binaryResourceNoLabel() throws Exception {
153-
when(this.repository.findOne("foo", "default", null))
154-
.thenReturn(new Environment("foo", "default", "master"));
152+
when(this.repository.findOne("foo", "default", null)).thenReturn(new Environment("foo", "default", "master"));
155153
when(this.resources.findOne("foo", "default", null, "foo.txt"))
156154
.thenReturn(new ClassPathResource("resource-controller/foo.txt"));
157155
this.mvc.perform(MockMvcRequestBuilders.get("/foo/default/foo.txt").param("useDefaultLabel", "")

0 commit comments

Comments
 (0)