Skip to content

Commit c76a187

Browse files
committed
Checkstyle: whitespace checks.
1 parent 5bcb8f8 commit c76a187

File tree

6 files changed

+13
-10
lines changed

6 files changed

+13
-10
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public void bind(ExposedPort exposedPort, Binding binding) {
7070
if (binding == null) {
7171
ports.put(exposedPort, null);
7272
} else {
73-
ports.put(exposedPort, new Binding[] { binding });
73+
ports.put(exposedPort, new Binding[]{binding});
7474
}
7575
}
7676
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ private static Properties overrideDockerPropertiesWithSystemProperties(Propertie
178178
Properties overriddenProperties = new Properties();
179179
overriddenProperties.putAll(p);
180180

181-
for (String key : new String[] { DOCKER_IO_URL_PROPERTY, DOCKER_IO_VERSION_PROPERTY,
181+
for (String key : new String[]{DOCKER_IO_URL_PROPERTY, DOCKER_IO_VERSION_PROPERTY,
182182
DOCKER_IO_USERNAME_PROPERTY, DOCKER_IO_PASSWORD_PROPERTY, DOCKER_IO_EMAIL_PROPERTY,
183183
DOCKER_IO_SERVER_ADDRESS_PROPERTY, DOCKER_IO_DOCKER_CERT_PATH_PROPERTY,
184184
DOCKER_IO_DOCKER_CFG_PATH_PROPERTY, }) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public SSLContext getSSLContext() throws KeyManagementException, UnrecoverableKe
8787
final KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance(KeyManagerFactory
8888
.getDefaultAlgorithm());
8989
keyManagerFactory.init(keystore, keystorePassword.toCharArray());
90-
context.init(keyManagerFactory.getKeyManagers(), new TrustManager[] { new X509TrustManager() {
90+
context.init(keyManagerFactory.getKeyManagers(), new TrustManager[]{new X509TrustManager() {
9191
@Override
9292
public X509Certificate[] getAcceptedIssuers() {
9393
return new X509Certificate[] {};

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

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

149149
@Override
150-
public int read(byte [] buff, int offset, int len) throws IOException {
150+
public int read(byte[] buff, int offset, int len) throws IOException {
151151
return tarInputStream.read(buff, offset, len);
152152
}
153153

src/main/java/com/github/dockerjava/core/util/CertificateUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ private CertificateUtils() {
3131
}
3232

3333
public static boolean verifyCertificatesExist(String dockerCertPath) {
34-
String[] files = { "ca.pem", "cert.pem", "key.pem" };
34+
String[] files = {"ca.pem", "cert.pem", "key.pem"};
3535
for (String file : files) {
3636
File path = new File(dockerCertPath, file);
3737
return path.exists();

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

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,17 +98,20 @@
9898

9999
<!-- Checks for whitespace -->
100100
<!-- See http://checkstyle.sf.net/config_whitespace.html -->
101-
<module name="EmptyForIteratorPad"/>
101+
<!-- @KostyaSha unsure -->
102+
<!--<module name="EmptyForIteratorPad"/>-->
102103
<module name="MethodParamPad"/>
103104
<module name="NoWhitespaceAfter"/>
104105
<module name="NoWhitespaceBefore"/>
105-
<module name="OperatorWrap">
106-
<property name="option" value="eol"/>
107-
</module>
106+
<!-- upto @marcuslinke -->
107+
<!--<module name="OperatorWrap">-->
108+
<!--<property name="option" value="eol"/>-->
109+
<!--</module>-->
108110
<module name="ParenPad"/>
109111
<module name="TypecastParenPad"/>
110112
<module name="WhitespaceAfter"/>
111-
<module name="WhitespaceAround"/>
113+
<!-- some weirdness with logger in CommitCmdExec and CreateImageCmdExec -->
114+
<!--<module name="WhitespaceAround"/>-->
112115

113116
</module>
114117

0 commit comments

Comments
 (0)