mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8343500: Optimize ArrayClassDescImpl computeDescriptor
Reviewed-by: liach
This commit is contained in:
parent
714472d8a5
commit
67907d5e89
1 changed files with 1 additions and 5 deletions
|
@ -115,11 +115,7 @@ public final class ArrayClassDescImpl implements ClassDesc {
|
||||||
}
|
}
|
||||||
|
|
||||||
private String computeDescriptor() {
|
private String computeDescriptor() {
|
||||||
var componentDesc = elementType.descriptorString();
|
return "[".repeat(rank).concat(elementType.descriptorString());
|
||||||
StringBuilder sb = new StringBuilder(rank + componentDesc.length());
|
|
||||||
sb.repeat('[', rank);
|
|
||||||
sb.append(componentDesc);
|
|
||||||
return sb.toString();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue