Skip to content

Commit 01f82d2

Browse files
committed
Checkstyle: redundant lines.
Disabled for now.
1 parent c76a187 commit 01f82d2

File tree

3 files changed

+20
-16
lines changed

3 files changed

+20
-16
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
*/
1414
public interface AsyncDockerCmd<CMD_T extends AsyncDockerCmd<CMD_T, A_RES_T>, A_RES_T> extends DockerCmd<Void> {
1515

16-
public <T extends ResultCallback<A_RES_T>> T exec(T resultCallback);
16+
<T extends ResultCallback<A_RES_T>> T exec(T resultCallback);
1717

1818
}

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

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,46 +26,46 @@
2626
public interface AttachContainerCmd extends AsyncDockerCmd<AttachContainerCmd, Frame> {
2727

2828
@CheckForNull
29-
public String getContainerId();
29+
String getContainerId();
3030

3131
@CheckForNull
32-
public Boolean hasLogsEnabled();
32+
Boolean hasLogsEnabled();
3333

3434
@CheckForNull
35-
public Boolean hasFollowStreamEnabled();
35+
Boolean hasFollowStreamEnabled();
3636

3737
@CheckForNull
38-
public Boolean hasTimestampsEnabled();
38+
Boolean hasTimestampsEnabled();
3939

4040
@CheckForNull
41-
public Boolean hasStdoutEnabled();
41+
Boolean hasStdoutEnabled();
4242

4343
@CheckForNull
44-
public Boolean hasStderrEnabled();
44+
Boolean hasStderrEnabled();
4545

4646
@CheckForNull
47-
public InputStream getStdin();
47+
InputStream getStdin();
4848

49-
public AttachContainerCmd withContainerId(@Nonnull String containerId);
49+
AttachContainerCmd withContainerId(@Nonnull String containerId);
5050

5151
/**
5252
* Following the stream means the resulting {@link InputStream} returned by {@link #exec()} reads infinitely. So a
5353
* {@link InputStream#read()} MAY BLOCK FOREVER as long as no data is streamed from the docker host to
5454
* {@link DockerClient}!
5555
*/
56-
public AttachContainerCmd withFollowStream(Boolean followStream);
56+
AttachContainerCmd withFollowStream(Boolean followStream);
5757

58-
public AttachContainerCmd withTimestamps(Boolean timestamps);
58+
AttachContainerCmd withTimestamps(Boolean timestamps);
5959

60-
public AttachContainerCmd withStdOut(Boolean stdout);
60+
AttachContainerCmd withStdOut(Boolean stdout);
6161

62-
public AttachContainerCmd withStdErr(Boolean stderr);
62+
AttachContainerCmd withStdErr(Boolean stderr);
6363

64-
public AttachContainerCmd withStdIn(InputStream stdin);
64+
AttachContainerCmd withStdIn(InputStream stdin);
6565

66-
public AttachContainerCmd withLogs(Boolean logs);
66+
AttachContainerCmd withLogs(Boolean logs);
6767

68-
public static interface Exec extends DockerCmdAsyncExec<AttachContainerCmd, Frame> {
68+
interface Exec extends DockerCmdAsyncExec<AttachContainerCmd, Frame> {
6969
}
7070

7171
}

src/test/resources/checkstyle/checkstyle-config.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@
113113
<!-- some weirdness with logger in CommitCmdExec and CreateImageCmdExec -->
114114
<!--<module name="WhitespaceAround"/>-->
115115

116+
<!-- Modifier Checks -->
117+
<!-- Verify with @marcuslinke before. 576 violations -->
118+
<!--<module name="RedundantModifier"/>-->
119+
116120
</module>
117121

118122
</module>

0 commit comments

Comments
 (0)