Skip to content

Commit

Permalink
support default package when matching source file to class
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry Coles committed Oct 7, 2022
1 parent 3f8c230 commit 014d82d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public Optional<Reader> locate(Collection<String> classes, String fileName) {
}

private String toFileName(ClassName packge, String fileName) {
if (packge.equals("")) {
if (packge.asJavaName().equals("")) {
return fileName;
}
return packge.asJavaName().replace(".", File.separator) + File.separator + fileName;
Expand Down

0 comments on commit 014d82d

Please sign in to comment.