Skip to content

Commit

Permalink
(jcabi#178) Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
andreoss committed Jun 26, 2020
1 parent becd877 commit 4253c5d
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/main/java/com/jcabi/http/request/JdkRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ private HttpURLConnection createHttpUrlConnection(
final Collection<Map.Entry<String, String>> headers,
final SSLContext sslcontext
) throws IOException {

final HttpURLConnection conn = HttpURLConnection.class.cast(raw);
conn.setConnectTimeout(connect);
conn.setReadTimeout(read);
Expand Down Expand Up @@ -172,8 +171,11 @@ private void writeFully(
) throws IOException {
// @checkstyle MagicNumber (1 line)
final byte[] buffer = new byte[8192];
for (int bytes = content.read(buffer); bytes != -1;
bytes = content.read(buffer)) {
for (
int bytes = content.read(buffer);
bytes != -1;
bytes = content.read(buffer)
) {
output.write(buffer, 0, bytes);
}
}
Expand Down Expand Up @@ -222,8 +224,11 @@ private byte[] body(final HttpURLConnection conn) throws IOException {
final byte[] buffer = new byte[8192];
final ByteArrayOutputStream output =
new ByteArrayOutputStream();
for (int bytes = input.read(buffer); bytes != -1;
bytes = input.read(buffer)) {
for (
int bytes = input.read(buffer);
bytes != -1;
bytes = input.read(buffer)
) {
output.write(buffer, 0, bytes);
}
body = output.toByteArray();
Expand Down

0 comments on commit 4253c5d

Please sign in to comment.