Skip to content

Commit 1a510c8

Browse files
committed
README: Simplify example
1 parent 3e41710 commit 1a510c8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ Collection of Java structures and libraries for interacting with the btrfs files
1818

1919
```java
2020
Path streamFile = Paths.get("/path/to/stream.dat");
21-
try (InputStream is = Files.newInputStream(streamFile);
22-
BufferedInputStream bis = new BufferedInputStream(is);
23-
BtrfsStreamReader reader = new BtrfsStreamReader(bis)) {
21+
try (InputStream is = new BufferedInputStream(Files.newInputStream(streamFile));
22+
BtrfsStreamReader reader = new BtrfsStreamReader(is)) {
2423

2524
while (reader.hasNext()) {
2625
BtrfsStreamElement element = reader.next();

0 commit comments

Comments
 (0)