Skip to content
Open
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 @@ -1331,7 +1331,7 @@ public String describe() {
}
else {
// name allows for inner classes
String name = getFullyQualifiedName().replaceFirst( "^" + getPackageName() + ".", "" );
String name = getNameKeepingInnerClasses();
List<Type> typeParams = getTypeParameters();
if ( typeParams.isEmpty() ) {
return name;
Expand All @@ -1343,6 +1343,15 @@ public String describe() {
}
}

private String getNameKeepingInnerClasses() {
String packageNamePrefix = getPackageName() + ".";
String fullyQualifiedName = getFullyQualifiedName();
if (fullyQualifiedName.startsWith( packageNamePrefix ) ) {
return fullyQualifiedName.substring( packageNamePrefix.length() );
}
return fullyQualifiedName;
}

/**
*
* @return an identification that can be used as part in a forged method name.
Expand Down