Skip to content

Commit

Permalink
Merge pull request #39 from sweetStreet/path-to-class-name
Browse files Browse the repository at this point in the history
Fix incorrect class name generation from file path when path contains /java
  • Loading branch information
I-Al-Istannen authored Dec 21, 2023
2 parents da2d8ea + b7b8ecc commit c2f1c24
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ InMemoryOutputObject getForClassPath(String path) {

String sanitizeToClassName(String path) {
return path
.replace("/", ".")
.replace(".java", "");
.replace(".java", "")
.replace("/", ".");
}

/**
Expand Down

0 comments on commit c2f1c24

Please sign in to comment.