Minor reformatting

This commit is contained in:
Jeroen van Erp
2017-05-22 14:21:59 +02:00
parent 93bf6c0089
commit d43fc4551e
2 changed files with 3 additions and 6 deletions

View File

@@ -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);

View File

@@ -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);