Skip to content

Commit

Permalink
Fix checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
turchenkoalex committed Mar 25, 2024
1 parent 3d3327a commit 1bafebe
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
15 changes: 10 additions & 5 deletions pgjdbc/src/main/java/org/postgresql/core/CountingInputStream.java
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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 {
Expand Down
15 changes: 10 additions & 5 deletions pgjdbc/src/main/java/org/postgresql/core/CountingOutputStream.java
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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 {
Expand Down

0 comments on commit 1bafebe

Please sign in to comment.