Skip to content

Conversation

@sebersole
Copy link
Member Author

This first commit is mostly a rough copy of the ClassDetails (and friends) parts of the "annotation source" work. It is a basis for a better understanding of the domain model when deciding what and how to enhance.

Without big changes to EnhancementContext, we are never going to be able to get this 100% correct. And really, the "annotation source" work will make this all faster and even more robust.

* @author Steve Ebersole
*/
public class ManagedTypeDescriptorRegistryImpl implements ManagedTypeDescriptorRegistry {
private final Map<String,ManagedTypeDescriptor> managedTypeDescriptorMap = new LinkedHashMap<>();

Check failure

Code scanning / CodeQL

Container contents are never initialized

The contents of this container are never initialized.

DynamicType.Builder<?> applyTo(DynamicType.Builder<?> builder) {
DynamicType.Builder<?> applyTo(DynamicType.Builder<?> builder, ManagedTypeModelContext managedTypeModelContext) {
final ManagedTypeDescriptor managedTypeDescriptor = managedTypeModelContext.getDescriptorRegistry().resolveDescriptor( managedCtClass.getName() );

Check notice

Code scanning / CodeQL

Unread local variable

Variable 'ManagedTypeDescriptor managedTypeDescriptor' is never read.
return existing;
}

final ClassDetails classDetails = modelContext.getModelProcessingContext().getClassDetailsRegistry().resolveClassDetails( name );

Check notice

Code scanning / CodeQL

Unread local variable

Variable 'ClassDetails classDetails' is never read.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant