Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2481,9 +2481,13 @@ public TransientReference(ResultHandle provider, ResultHandle contextualInstance
static final class ProviderType {

private final Type type;
private final String className;
private final String descriptorName;

public ProviderType(Type type) {
this.type = type;
this.className = type.name().toString();
this.descriptorName = DescriptorUtils.typeToString(type);
}

DotName name() {
Expand All @@ -2495,15 +2499,15 @@ DotName name() {
* @return the class name, e.g. {@code org.acme.Foo}
*/
String className() {
return type.name().toString();
return className;
}

/**
*
* @return the name used in JVM descriptors, e.g. {@code Lorg/acme/Foo;}
*/
String descriptorName() {
return DescriptorUtils.typeToString(type);
return descriptorName;
}

}
Expand Down
Loading