mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
Apply suggestions from code review
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
This commit is contained in:
parent
a5829143a0
commit
803409149e
1 changed files with 2 additions and 2 deletions
|
@ -301,11 +301,11 @@ final class ProxyGenerator {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@return the entries of the given type}
|
* {@return the entries of the given type}
|
||||||
* @param type the {@code Class} objects, no primitives nor arrays
|
* @param types the {@code Class} objects, not primitive types nor array types
|
||||||
*/
|
*/
|
||||||
private static ClassEntry[] toClassEntries(ConstantPoolBuilder cp, List<Class<?>> types) {
|
private static ClassEntry[] toClassEntries(ConstantPoolBuilder cp, List<Class<?>> types) {
|
||||||
var ces = new ClassEntry[types.size()];
|
var ces = new ClassEntry[types.size()];
|
||||||
for (int i = 0; i< ces.length; i++)
|
for (int i = 0; i < ces.length; i++)
|
||||||
ces[i] = cp.classEntry(cp.utf8Entry(types.get(i).getName().replace('.', '/')));
|
ces[i] = cp.classEntry(cp.utf8Entry(types.get(i).getName().replace('.', '/')));
|
||||||
return ces;
|
return ces;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue