mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-06 15:20:54 +03:00
Minor reformatting
This commit is contained in:
@@ -149,8 +149,7 @@ public final class ChannelOutputStream extends OutputStream implements ErrorNoti
|
|||||||
this.error = error;
|
this.error = error;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void checkClose()
|
private void checkClose() throws SSHException {
|
||||||
throws SSHException {
|
|
||||||
if (closed) {
|
if (closed) {
|
||||||
if (error != null)
|
if (error != null)
|
||||||
throw error;
|
throw error;
|
||||||
@@ -160,8 +159,7 @@ public final class ChannelOutputStream extends OutputStream implements ErrorNoti
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public synchronized void close()
|
public synchronized void close() throws IOException {
|
||||||
throws IOException {
|
|
||||||
if (!closed) {
|
if (!closed) {
|
||||||
try {
|
try {
|
||||||
buffer.flush(false);
|
buffer.flush(false);
|
||||||
|
|||||||
@@ -77,8 +77,7 @@ public abstract class Window {
|
|||||||
super(initialWinSize, maxPacketSize, loggerFactory);
|
super(initialWinSize, maxPacketSize, loggerFactory);
|
||||||
}
|
}
|
||||||
|
|
||||||
public long awaitExpansion(long was)
|
public long awaitExpansion(long was) throws ConnectionException {
|
||||||
throws ConnectionException {
|
|
||||||
synchronized (lock) {
|
synchronized (lock) {
|
||||||
while (size <= was) {
|
while (size <= was) {
|
||||||
log.debug("Waiting, need size to grow from {} bytes", was);
|
log.debug("Waiting, need size to grow from {} bytes", was);
|
||||||
|
|||||||
Reference in New Issue
Block a user