Skip to content
This repository was archived by the owner on Aug 11, 2025. It is now read-only.

Optimize use of empty lists#14

Open
AlexisMardas wants to merge 1 commit intoRandgalt:masterfrom
HliasMpGH:memory-optimization
Open

Optimize use of empty lists#14
AlexisMardas wants to merge 1 commit intoRandgalt:masterfrom
HliasMpGH:memory-optimization

Conversation

@AlexisMardas
Copy link

Closes #13

This Pull Request replaces new Arraylist<>() with Collections.emptyList(), throughout the codebase, wherever empty immutable lists need to be used. Specifically this optimization was applied to the classes ArrayTypeName, TypeName, ParameterizedTypeName, TypeVariableName and WildCardTypeName.

The implemented changes are in accordance with classes, such as ClassName, where Collections.emptyList() is already used in the same exact way.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Memory usage optimization

1 participant