Skip to content

Commit

Permalink
More wrapping fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
n1hility committed Nov 26, 2014
1 parent b192630 commit c9ab0a1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ The following example demonstrates indexing a class and browsing its methods:</p
// Index java.util.Map
Indexer indexer = new Indexer();
// Normally a direct file is opened, but class-loader backed streams work as well.
InputStream stream = getClass().getClassLoader().getResourceAsStream("java/util/Map.class");
InputStream stream = getClass().getClassLoader()
.getResourceAsStream("java/util/Map.class");
indexer.index(stream);
Index index = indexer.complete();

Expand All @@ -46,7 +47,8 @@ file can later be loaded scanning Java classes:
// Index java.util.Map
Indexer indexer = new Indexer();
// Normally a direct file is opened, but class-loader backed streams work as well.
InputStream stream = getClass().getClassLoader().getResourceAsStream("java/util/Map.class");
InputStream stream = getClass().getClassLoader()
.getResourceAsStream("java/util/Map.class");
indexer.index(stream);
Index index = indexer.complete();

Expand Down

0 comments on commit c9ab0a1

Please sign in to comment.