Skip to content

Commit

Permalink
JANDEX-7 Skip non-class files
Browse files Browse the repository at this point in the history
  • Loading branch information
n1hility committed Aug 24, 2011
1 parent a171e94 commit e4a6589
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/org/jboss/jandex/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ private void scanFile(File source, Indexer indexer) throws FileNotFoundException
return;
}

if (! source.getName().endsWith(".class"))
return;

FileInputStream input = new FileInputStream(source);

try {
Expand Down

0 comments on commit e4a6589

Please sign in to comment.