Skip to content

Commit 022a2a6

Browse files
author
Marcus Linke
committed
Merge from master
1 parent a9112e3 commit 022a2a6

File tree

7 files changed

+11
-9
lines changed

7 files changed

+11
-9
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,4 @@ public interface AttachContainerCmd extends AsyncDockerCmd<AttachContainerCmd, F
7575
public static interface Exec extends DockerCmdExec<AttachContainerCmd, Void> {
7676
}
7777

78-
}
78+
}

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,16 @@
2020
* - true or false, if true, print timestamps for every log line. Defaults to false.
2121
* @param tail
2222
* - `all` or `<number>`, Output specified number of lines at the end of logs
23+
<<<<<<< HEAD
2324
*
2425
* Consider wrapping any input stream you get with a frame reader to make reading frame easier.
2526
*
27+
=======
28+
*
29+
* Consider wrapping any input stream you get with a frame reader to make reading frame easier.
30+
*
31+
* @see com.github.dockerjava.core.command.FrameReader
32+
>>>>>>> refs/heads/master
2633
*/
2734
public interface LogContainerCmd extends AsyncDockerCmd<LogContainerCmd, Frame, Void> {
2835

@@ -80,4 +87,4 @@ public interface LogContainerCmd extends AsyncDockerCmd<LogContainerCmd, Frame,
8087
public static interface Exec extends DockerCmdExec<LogContainerCmd, Void> {
8188
}
8289

83-
}
90+
}

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
import java.io.InputStream;
55
import java.util.Arrays;
66

7-
import org.apache.commons.io.HexDump;
8-
97
import com.github.dockerjava.api.model.Frame;
108
import com.github.dockerjava.api.model.StreamType;
119

@@ -75,7 +73,6 @@ public Frame readFrame() throws IOException {
7573
return new Frame(streamType(buffer[0]), payload);
7674

7775
}
78-
7976
}
8077

8178
@Override

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

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

88
import com.github.dockerjava.api.command.EventsCmd;
99
import com.github.dockerjava.api.model.Event;
10-
import com.github.dockerjava.api.model.Frame;
1110
import com.github.dockerjava.core.async.JsonStreamProcessor;
1211
import com.github.dockerjava.jaxrs.async.AbstractCallbackNotifier;
1312
import com.github.dockerjava.jaxrs.async.GETCallbackNotifier;

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import com.github.dockerjava.api.command.LogContainerCmd;
99
import com.github.dockerjava.api.model.Frame;
1010
import com.github.dockerjava.core.async.FrameStreamProcessor;
11-
import com.github.dockerjava.core.async.JsonStreamProcessor;
1211
import com.github.dockerjava.jaxrs.async.AbstractCallbackNotifier;
1312
import com.github.dockerjava.jaxrs.async.GETCallbackNotifier;
1413

src/main/java/com/github/dockerjava/jaxrs/util/WrappedResponseInputStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* This is a wrapper around {@link Response} that acts as a {@link InputStream}. When this
1010
* {@link WrappedResponseInputStream} is closed it closes the underlying {@link Response} object also to prevent
1111
* blocking/hanging connections.
12-
*
12+
*
1313
* @author marcus
1414
*/
1515
public class WrappedResponseInputStream extends InputStream {

src/test/java/com/github/dockerjava/core/command/AttachContainerCmdImplTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public void onNext(Frame frame) {
7878

7979
collectFramesCallback.close();
8080

81-
assertThat(collectFramesCallback.toString(), endsWith(snippet));
81+
assertThat(collectFramesCallback.toString(), containsString(snippet));
8282
}
8383

8484
@Test

0 commit comments

Comments
 (0)