Skip to content

Commit 3973912

Browse files
author
Marcus Linke
committed
Format sources
1 parent e12e3b6 commit 3973912

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

src/main/java/com/github/dockerjava/api/command/LogContainerCmd.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
* @param tail
2020
* - `all` or `<number>`, Output specified number of lines at the end of logs
2121
* @param since
22-
* - UNIX timestamp (integer) to filter logs. Specifying a timestamp will only output log-entries since that timestamp. Default: 0 (unfiltered)
22+
* - UNIX timestamp (integer) to filter logs. Specifying a timestamp will only output log-entries since that
23+
* timestamp. Default: 0 (unfiltered)
2324
*/
2425
public interface LogContainerCmd extends AsyncDockerCmd<LogContainerCmd, Frame> {
2526

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
* @param tail
2020
* - `all` or `<number>`, Output specified number of lines at the end of logs
2121
* @param since
22-
* - UNIX timestamp (integer) to filter logs. Specifying a timestamp will only output log-entries since that timestamp. Default: 0 (unfiltered)
22+
* - UNIX timestamp (integer) to filter logs. Specifying a timestamp will only output log-entries since that
23+
* timestamp. Default: 0 (unfiltered)
2324
*/
2425
public class LogContainerCmdImpl extends AbstrAsyncDockerCmd<LogContainerCmd, Frame> implements LogContainerCmd {
2526

@@ -67,7 +68,9 @@ public boolean hasStderrEnabled() {
6768
}
6869

6970
@Override
70-
public int getSince() {return since; }
71+
public int getSince() {
72+
return since;
73+
}
7174

7275
@Override
7376
public LogContainerCmd withContainerId(String containerId) {
@@ -141,8 +144,7 @@ public LogContainerCmd withSince(int since) {
141144
@Override
142145
public String toString() {
143146
return new StringBuilder("logs ").append(followStream ? "--follow=true" : "")
144-
.append(timestamps ? "--timestamps=true" : "")
145-
.append(since > 0 ? "--since=" + since : "")
147+
.append(timestamps ? "--timestamps=true" : "").append(since > 0 ? "--since=" + since : "")
146148
.append(containerId).toString();
147149
}
148150

0 commit comments

Comments
 (0)