Apply suggestions from code review

Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
This commit is contained in:
Adam Sotona 2024-01-08 15:23:20 +01:00 committed by GitHub
parent a5829143a0
commit 803409149e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
} }