Skip to content

Commit cc23307

Browse files
author
Marcus Linke
committed
Format sources
1 parent b0efbb4 commit cc23307

18 files changed

+44
-38
lines changed

src/main/java/com/github/dockerjava/api/model/WaitResponse.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
44
import com.fasterxml.jackson.annotation.JsonProperty;
55

6-
76
/**
87
* Represents a wait container command response
98
*/
109
@JsonIgnoreProperties(ignoreUnknown = false)
11-
public class WaitResponse {
10+
public class WaitResponse {
1211

1312
@JsonProperty("StatusCode")
1413
private Integer statusCode;

src/main/java/com/github/dockerjava/core/GoLangFileMatch.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@
2424
* character class (must be non-empty)
2525
* c matches character c (c != '*', '?', '\\', '[')
2626
* '\\' c matches character c
27-
*
27+
*
2828
* character-range:
2929
* c matches character c (c != '\\', '-', ']')
3030
* '\\' c matches character c
3131
* lo '-' hi matches character c for lo <= c <= hi
32-
*
32+
*
3333
* Match requires pattern to match all of name, not just a substring.
3434
* The only possible returned error is ErrBadPattern, when pattern
3535
* is malformed.
36-
*
36+
*
3737
* On Windows, escaping is disabled. Instead, '\\' is treated as
3838
* path separator.
3939
* </pre>

src/main/java/com/github/dockerjava/core/command/WaitContainerCmdImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
*
1111
* Block until container stops, then returns its exit code
1212
*/
13-
public class WaitContainerCmdImpl extends AbstrAsyncDockerCmd<WaitContainerCmd, WaitResponse> implements WaitContainerCmd {
13+
public class WaitContainerCmdImpl extends AbstrAsyncDockerCmd<WaitContainerCmd, WaitResponse> implements
14+
WaitContainerCmd {
1415

1516
private String containerId;
1617

src/main/java/com/github/dockerjava/core/dockerfile/Dockerfile.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public int read() throws IOException {
143143
}
144144

145145
@Override
146-
public int read(byte [] buff, int offset, int len) throws IOException {
146+
public int read(byte[] buff, int offset, int len) throws IOException {
147147
return tarInputStream.read(buff, offset, len);
148148
}
149149

src/main/java/com/github/dockerjava/jaxrs/AbstrDockerCmdExec.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ protected boolean bool(Boolean bool) {
6161
}
6262

6363
protected WebTarget booleanQueryParam(WebTarget webTarget, String name, Boolean value) {
64-
if(bool(value)) {
64+
if (bool(value)) {
6565
webTarget = webTarget.queryParam(name, bool(value) + "");
6666
}
6767

src/main/java/com/github/dockerjava/jaxrs/AttachContainerCmdExec.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ public AttachContainerCmdExec(WebTarget baseResource, DockerClientConfig dockerC
2525
protected AbstractCallbackNotifier<Frame> callbackNotifier(AttachContainerCmd command,
2626
ResultCallback<Frame> resultCallback) {
2727

28-
WebTarget webTarget = getBaseResource().path("/containers/{id}/attach")
29-
.resolveTemplate("id", command.getContainerId());
28+
WebTarget webTarget = getBaseResource().path("/containers/{id}/attach").resolveTemplate("id",
29+
command.getContainerId());
3030

3131
webTarget = booleanQueryParam(webTarget, "logs", command.hasLogsEnabled());
3232
webTarget = booleanQueryParam(webTarget, "stdout", command.hasStdoutEnabled());
33-
//webTarget = booleanQueryParam(webTarget, "stdin", command.hasStdinEnabled());
33+
// webTarget = booleanQueryParam(webTarget, "stdin", command.hasStdinEnabled());
3434
webTarget = booleanQueryParam(webTarget, "stderr", command.hasStderrEnabled());
3535
webTarget = booleanQueryParam(webTarget, "stream", command.hasFollowStreamEnabled());
3636

src/main/java/com/github/dockerjava/jaxrs/ListImagesCmdExec.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@ protected List<Image> execute(ListImagesCmd command) {
3232

3333
LOGGER.trace("GET: {}", webTarget);
3434

35-
List<Image> images = webTarget.request().accept(MediaType.APPLICATION_JSON)
36-
.get(new GenericType<List<Image>>() {
37-
});
35+
List<Image> images = webTarget.request().accept(MediaType.APPLICATION_JSON).get(new GenericType<List<Image>>() {
36+
});
3837
LOGGER.trace("Response: {}", images);
3938

4039
return images;

src/main/java/com/github/dockerjava/jaxrs/LogContainerCmdExec.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ public LogContainerCmdExec(WebTarget baseResource, DockerClientConfig dockerClie
2525
protected AbstractCallbackNotifier<Frame> callbackNotifier(LogContainerCmd command,
2626
ResultCallback<Frame> resultCallback) {
2727

28-
WebTarget webTarget = getBaseResource().path("/containers/{id}/logs")
29-
.resolveTemplate("id", command.getContainerId());
28+
WebTarget webTarget = getBaseResource().path("/containers/{id}/logs").resolveTemplate("id",
29+
command.getContainerId());
3030

31-
if(command.getTail() != null) {
31+
if (command.getTail() != null) {
3232
webTarget = webTarget.queryParam("tail", command.getTail());
3333
}
3434

35-
if(command.getSince() != null) {
35+
if (command.getSince() != null) {
3636
webTarget = webTarget.queryParam("since", command.getSince());
3737
}
3838

src/main/java/com/github/dockerjava/jaxrs/RestartContainerCmdExec.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ public RestartContainerCmdExec(WebTarget baseResource, DockerClientConfig docker
1919

2020
@Override
2121
protected Void execute(RestartContainerCmd command) {
22-
WebTarget webResource = getBaseResource().path("/containers/{id}/restart")
23-
.resolveTemplate("id", command.getContainerId());
22+
WebTarget webResource = getBaseResource().path("/containers/{id}/restart").resolveTemplate("id",
23+
command.getContainerId());
2424

25-
if(command.getTimeout() != null) {
25+
if (command.getTimeout() != null) {
2626
webResource = webResource.queryParam("t", String.valueOf(command.getTimeout()));
2727
}
2828

src/main/java/com/github/dockerjava/jaxrs/StopContainerCmdExec.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ public StopContainerCmdExec(WebTarget baseResource, DockerClientConfig dockerCli
1919

2020
@Override
2121
protected Void execute(StopContainerCmd command) {
22-
WebTarget webResource = getBaseResource().path("/containers/{id}/stop")
23-
.resolveTemplate("id", command.getContainerId());
22+
WebTarget webResource = getBaseResource().path("/containers/{id}/stop").resolveTemplate("id",
23+
command.getContainerId());
2424

25-
if(command.getTimeout() != null) {
25+
if (command.getTimeout() != null) {
2626
webResource = webResource.queryParam("t", String.valueOf(command.getTimeout()));
2727
}
2828

0 commit comments

Comments
 (0)