Skip to content

Commit

Permalink
Fix property name
Browse files Browse the repository at this point in the history
  • Loading branch information
geoand committed Dec 7, 2022
1 parent 61e61ec commit 034e473
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public class BytecodeRecorderImpl implements RecorderContext {

private final List<ObjectLoader> loaders = new ArrayList<>();
private final Map<Class<?>, ConstantHolder<?>> constants = new HashMap<>();
private final Set<Class> classesToUseRecorableConstructor = new HashSet<>();
private final Set<Class> classesToUseRecordableConstructor = new HashSet<>();
private final boolean useIdentityComparison;

/**
Expand Down Expand Up @@ -394,7 +394,7 @@ public void run() {
}

public void markClassAsConstructorRecordable(Class<?> clazz) {
classesToUseRecorableConstructor.add(clazz);
classesToUseRecordableConstructor.add(clazz);
}

private ProxyInstance getProxyInstance(Class<?> returnType) throws InstantiationException, IllegalAccessException {
Expand Down Expand Up @@ -1173,7 +1173,7 @@ public void prepare(MethodContext context) {
nonDefaultConstructorHandles[i] = loadObjectInstance(obj, existing,
parameterTypes[count++], relaxedValidation);
}
} else if (classesToUseRecorableConstructor.contains(param.getClass())) {
} else if (classesToUseRecordableConstructor.contains(param.getClass())) {
Constructor<?> current = null;
int count = 0;
for (var c : param.getClass().getConstructors()) {
Expand Down

0 comments on commit 034e473

Please sign in to comment.