Skip to content

Commit

Permalink
Improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
dstepanov committed Dec 5, 2024
1 parent 23bfc67 commit d62d71d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1125,7 +1125,7 @@ public void visitBeanDefinitionEnd() {
classDefBuilder.addMethod(
MethodDef.override(
LOAD_REFERENCE_METHOD
).build((aThis, methodParameters) -> beanDefinitionTypeDef.instantiate().returning())
).build((aThis, methodParameters) -> aThis.type().instantiate().returning())
);

if (annotationMetadata.hasDeclaredAnnotation(Context.class)) {
Expand Down Expand Up @@ -1604,7 +1604,7 @@ public VariableDef get() {
} else {
constructorType = AbstractInitializableBeanDefinition.FieldReference.class;
}
constructorDef[0] = beanDefinitionTypeDef
constructorDef[0] = aThis.type()
.getStaticField(FIELD_CONSTRUCTOR, ClassTypeDef.of(AbstractInitializableBeanDefinition.MethodOrFieldReference.class))
.cast(constructorType)
.newLocal("constructorDef");
Expand Down Expand Up @@ -2286,7 +2286,7 @@ private StatementDef addInnerConfigurationMethod() {

classDefBuilder.addMethod(
MethodDef.override(IS_INNER_CONFIGURATION_METHOD)
.build((aThis, methodParameters) -> beanDefinitionTypeDef.getStaticField(innerClassesField)
.build((aThis, methodParameters) -> aThis.type().getStaticField(innerClassesField)
.invoke(CONTAINS_METHOD, methodParameters.get(0))
.returning())
);
Expand All @@ -2310,7 +2310,7 @@ private StatementDef addGetExposedTypes() {

classDefBuilder.addMethod(
MethodDef.override(GET_EXPOSED_TYPES_METHOD)
.build((aThis, methodParameters) -> beanDefinitionTypeDef.getStaticField(exposedTypesField).returning())
.build((aThis, methodParameters) -> aThis.type().getStaticField(exposedTypesField).returning())
);

return beanDefinitionTypeDef.getStaticField(exposedTypesField).put(getClassesAsSetExpression(exposedTypes));
Expand Down

0 comments on commit d62d71d

Please sign in to comment.