From 1bafebe39d32601609c841e855bd4f787340cb31 Mon Sep 17 00:00:00 2001 From: Aleksandr Turchenko Date: Mon, 14 Mar 2022 15:58:35 +0400 Subject: [PATCH] Fix checkstyle --- .../org/postgresql/core/CountingInputStream.java | 15 ++++++++++----- .../org/postgresql/core/CountingOutputStream.java | 15 ++++++++++----- 2 files changed, 20 insertions(+), 10 deletions(-) diff --git a/pgjdbc/src/main/java/org/postgresql/core/CountingInputStream.java b/pgjdbc/src/main/java/org/postgresql/core/CountingInputStream.java index 4733380435..fefcc39032 100644 --- a/pgjdbc/src/main/java/org/postgresql/core/CountingInputStream.java +++ b/pgjdbc/src/main/java/org/postgresql/core/CountingInputStream.java @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2017, PostgreSQL Global Development Group + * See the LICENSE file in the project root for more information. + */ + package org.postgresql.core; import java.io.IOException; @@ -10,12 +15,12 @@ final class CountingInputStream extends InputStream { private final InputStream peer; - private final AtomicLong counter; + private final AtomicLong counter; - public CountingInputStream(InputStream in, AtomicLong counter) { - this.peer = in; - this.counter = counter; - } + CountingInputStream(InputStream in, AtomicLong counter) { + this.peer = in; + this.counter = counter; + } @Override public int read() throws IOException { diff --git a/pgjdbc/src/main/java/org/postgresql/core/CountingOutputStream.java b/pgjdbc/src/main/java/org/postgresql/core/CountingOutputStream.java index f25eb65a7f..8db1c84d0c 100644 --- a/pgjdbc/src/main/java/org/postgresql/core/CountingOutputStream.java +++ b/pgjdbc/src/main/java/org/postgresql/core/CountingOutputStream.java @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2017, PostgreSQL Global Development Group + * See the LICENSE file in the project root for more information. + */ + package org.postgresql.core; import java.io.IOException; @@ -10,12 +15,12 @@ final class CountingOutputStream extends OutputStream { private final OutputStream peer; - private final AtomicLong counter; + private final AtomicLong counter; - public CountingOutputStream(OutputStream out, AtomicLong counter) { - this.peer = out; - this.counter = counter; - } + CountingOutputStream(OutputStream out, AtomicLong counter) { + this.peer = out; + this.counter = counter; + } @Override public void write(int b) throws IOException {