From 394c97d677ab9a2ce706b574aa79a26ee53f1ab1 Mon Sep 17 00:00:00 2001 From: Mihai A Date: Tue, 4 Dec 2018 09:50:14 +0200 Subject: [PATCH] indentation --- .../com/amihaiemil/docker/RtDockerSystem.java | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/src/main/java/com/amihaiemil/docker/RtDockerSystem.java b/src/main/java/com/amihaiemil/docker/RtDockerSystem.java index d0f89959..6da62740 100644 --- a/src/main/java/com/amihaiemil/docker/RtDockerSystem.java +++ b/src/main/java/com/amihaiemil/docker/RtDockerSystem.java @@ -37,27 +37,30 @@ public final class RtDockerSystem implements DockerSystem { * @param baseUri Base URI, ending with /system. * @param dkr The Docker engine. */ - RtDockerSystem(final HttpClient client, final URI baseUri, - final Docker dkr) { + RtDockerSystem( + final HttpClient client, final URI baseUri, final Docker dkr + ) { this.client = client; this.baseUri = baseUri; this.docker = dkr; } @Override - public DiskSpaceInfo diskUsage() throws IOException, - UnexpectedResponseException { + public DiskSpaceInfo diskUsage() + throws IOException, UnexpectedResponseException { final HttpGet init = new HttpGet(this.baseUri.toString() + "/df"); try { - return new SystemDiskSpaceInfo(this.client.execute( + return new SystemDiskSpaceInfo( + this.client.execute( init, new ReadJsonObject( - new MatchStatus( - init.getURI(), - HttpStatus.SC_OK - ) + new MatchStatus( + init.getURI(), + HttpStatus.SC_OK + ) ) - )); + ) + ); } finally { init.releaseConnection(); }