Skip to content

Commit 47ef869

Browse files
committed
Changes synced with reference code
1 parent 03ee525 commit 47ef869

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

  • exercises/practice/paasio/.meta/src/reference/java

exercises/practice/paasio/.meta/src/reference/java/Paasio.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class Paasio implements Closeable {
1010
private final InputStream inputStream;
1111
private final OutputStream outputStream;
1212

13-
public Paasio(InputStream inputStream, OutputStream outputStream) throws FileNotFoundException {
13+
public Paasio(InputStream inputStream, OutputStream outputStream) {
1414
this.inputStream = inputStream;
1515
this.outputStream = outputStream;
1616
}
@@ -61,7 +61,6 @@ public byte[] readAllBytes() throws IOException {
6161
}
6262

6363
public byte[] readNBytes(int len) throws IOException {
64-
// return new byte[0];
6564

6665
byte[] allData = this.inputStream.readNBytes(len);
6766
if (allData.length > 0) {
@@ -135,3 +134,7 @@ public void close() throws IOException {
135134
}
136135

137136
}
137+
138+
139+
140+

0 commit comments

Comments
 (0)