Skip to content

Commit

Permalink
Normalize target class names
Browse files Browse the repository at this point in the history
  • Loading branch information
shartte committed Jan 1, 2025
1 parent 8bba47e commit a0bb2e1
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ default String[] labels() {
* type variable T
*/
record Target<T>(String className, String elementName, String elementDescriptor, TargetType<T> targetType) {
public Target {
// Silently convert to source names
className = className.replace('/', '.');
}

/**
* Convenience method returning a {@link Target} for a class
*
Expand Down

0 comments on commit a0bb2e1

Please sign in to comment.