Skip to content

Commit a9112e3

Browse files
author
Marcus Linke
committed
Formatting sources
1 parent be236cc commit a9112e3

File tree

253 files changed

+8502
-8850
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

253 files changed

+8502
-8850
lines changed

src/main/java/com/github/dockerjava/api/BadRequestException.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
11
package com.github.dockerjava.api;
22

3-
43
/**
54
*
65
*/
76
public class BadRequestException extends DockerException {
87

9-
private static final long serialVersionUID = -2450396075981100160L;
8+
private static final long serialVersionUID = -2450396075981100160L;
109

11-
public BadRequestException(String message, Throwable cause) {
10+
public BadRequestException(String message, Throwable cause) {
1211
super(message, 400, cause);
1312
}
14-
15-
public BadRequestException(String message) {
13+
14+
public BadRequestException(String message) {
1615
this(message, null);
1716
}
18-
19-
public BadRequestException(Throwable cause) {
17+
18+
public BadRequestException(Throwable cause) {
2019
this(cause.getMessage(), cause);
2120
}
2221

src/main/java/com/github/dockerjava/api/ConflictException.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
11
package com.github.dockerjava.api;
22

3-
43
/**
54
*
65
*/
76
public class ConflictException extends DockerException {
87

9-
private static final long serialVersionUID = -290093024775500239L;
8+
private static final long serialVersionUID = -290093024775500239L;
109

11-
public ConflictException(String message, Throwable cause) {
10+
public ConflictException(String message, Throwable cause) {
1211
super(message, 409, cause);
1312
}
14-
15-
public ConflictException(String message) {
13+
14+
public ConflictException(String message) {
1615
this(message, null);
1716
}
18-
19-
public ConflictException(Throwable cause) {
17+
18+
public ConflictException(Throwable cause) {
2019
this(cause.getMessage(), cause);
2120
}
2221

src/main/java/com/github/dockerjava/api/DockerClientException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
*/
77
public class DockerClientException extends RuntimeException {
88

9-
private static final long serialVersionUID = 7667768099261650608L;
10-
9+
private static final long serialVersionUID = 7667768099261650608L;
10+
1111
public DockerClientException(String message) {
1212
super(message);
1313
}
Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
package com.github.dockerjava.api;
22

3-
4-
5-
63
/**
74
*
85
* @author Konstantin Pelykh (kpelykh@gmail.com)
@@ -11,9 +8,9 @@
118

129
public class DockerException extends RuntimeException {
1310

14-
private static final long serialVersionUID = 7667768099261650608L;
15-
16-
private int httpStatus = 0;
11+
private static final long serialVersionUID = 7667768099261650608L;
12+
13+
private int httpStatus = 0;
1714

1815
public DockerException(String message, int httpStatus) {
1916
super(message);
@@ -23,8 +20,8 @@ public DockerException(String message, int httpStatus) {
2320
public DockerException(String message, int httpStatus, Throwable cause) {
2421
super(message, cause);
2522
}
26-
23+
2724
public int getHttpStatus() {
28-
return httpStatus;
29-
}
25+
return httpStatus;
26+
}
3027
}

src/main/java/com/github/dockerjava/api/InternalServerErrorException.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55
*/
66
public class InternalServerErrorException extends DockerException {
77

8-
private static final long serialVersionUID = -2450396075981100160L;
8+
private static final long serialVersionUID = -2450396075981100160L;
99

10-
public InternalServerErrorException(String message, Throwable cause) {
10+
public InternalServerErrorException(String message, Throwable cause) {
1111
super(message, 500, cause);
1212
}
13-
14-
public InternalServerErrorException(String message) {
13+
14+
public InternalServerErrorException(String message) {
1515
this(message, null);
1616
}
17-
18-
public InternalServerErrorException(Throwable cause) {
17+
18+
public InternalServerErrorException(Throwable cause) {
1919
this(cause.getMessage(), cause);
2020
}
2121

src/main/java/com/github/dockerjava/api/NotAcceptableException.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55
*/
66
public class NotAcceptableException extends DockerException {
77

8-
private static final long serialVersionUID = -1771212181727204375L;
8+
private static final long serialVersionUID = -1771212181727204375L;
99

10-
public NotAcceptableException(String message, Throwable cause) {
10+
public NotAcceptableException(String message, Throwable cause) {
1111
super(message, 406, cause);
1212
}
13-
14-
public NotAcceptableException(String message) {
13+
14+
public NotAcceptableException(String message) {
1515
this(message, null);
1616
}
17-
18-
public NotAcceptableException(Throwable cause) {
17+
18+
public NotAcceptableException(Throwable cause) {
1919
this(cause.getMessage(), cause);
2020
}
2121

src/main/java/com/github/dockerjava/api/NotFoundException.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@
77
*/
88
public class NotFoundException extends DockerException {
99

10-
private static final long serialVersionUID = -2450396075981100160L;
10+
private static final long serialVersionUID = -2450396075981100160L;
1111

12-
public NotFoundException(String message, Throwable cause) {
12+
public NotFoundException(String message, Throwable cause) {
1313
super(message, 404, cause);
1414
}
15-
16-
public NotFoundException(String message) {
15+
16+
public NotFoundException(String message) {
1717
this(message, null);
1818
}
19-
20-
public NotFoundException(Throwable cause) {
19+
20+
public NotFoundException(Throwable cause) {
2121
this(cause.getMessage(), cause);
2222
}
2323
}

src/main/java/com/github/dockerjava/api/NotModifiedException.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55
*/
66
public class NotModifiedException extends DockerException {
77

8-
private static final long serialVersionUID = -290093024775500239L;
8+
private static final long serialVersionUID = -290093024775500239L;
99

10-
public NotModifiedException(String message, Throwable cause) {
10+
public NotModifiedException(String message, Throwable cause) {
1111
super(message, 304, cause);
1212
}
13-
14-
public NotModifiedException(String message) {
13+
14+
public NotModifiedException(String message) {
1515
this(message, null);
1616
}
17-
18-
public NotModifiedException(Throwable cause) {
17+
18+
public NotModifiedException(Throwable cause) {
1919
this(cause.getMessage(), cause);
2020
}
2121

src/main/java/com/github/dockerjava/api/UnauthorizedException.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55
*/
66
public class UnauthorizedException extends DockerException {
77

8-
private static final long serialVersionUID = 8257731964780578278L;
8+
private static final long serialVersionUID = 8257731964780578278L;
99

10-
public UnauthorizedException(String message, Throwable cause) {
10+
public UnauthorizedException(String message, Throwable cause) {
1111
super(message, 401, cause);
1212
}
13-
14-
public UnauthorizedException(String message) {
13+
14+
public UnauthorizedException(String message) {
1515
this(message, null);
1616
}
17-
18-
public UnauthorizedException(Throwable cause) {
17+
18+
public UnauthorizedException(Throwable cause) {
1919
this(cause.getMessage(), cause);
2020
}
2121

src/main/java/com/github/dockerjava/api/async/ResultCallback.java

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,18 @@
66
* Result callback
77
*/
88
public interface ResultCallback<RES_T> extends Closeable {
9-
/** Called when the async processing starts. The passed {@link Closeable} can be used to close/interrupt the processing */
10-
void onStart(Closeable closeable);
11-
/** Called when an async result event occurs */
9+
/**
10+
* Called when the async processing starts. The passed {@link Closeable} can be used to close/interrupt the
11+
* processing
12+
*/
13+
void onStart(Closeable closeable);
14+
15+
/** Called when an async result event occurs */
1216
void onNext(RES_T object);
17+
1318
/** Called when an exception occurs while processing */
1419
void onError(Throwable throwable);
20+
1521
/** Called when processing was finished either by reaching the end or by aborting it */
1622
void onComplete();
1723

0 commit comments

Comments
 (0)