Skip to content

Commit

Permalink
Оптимизация хранения пустого списка параметров аннотации
Browse files Browse the repository at this point in the history
  • Loading branch information
nixel2007 committed Feb 17, 2025
1 parent 7572ad6 commit 5e44ad9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import lombok.Builder;
import lombok.Value;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
Expand All @@ -38,5 +38,5 @@ public class Annotation {
AnnotationKind kind;

@Builder.Default
List<AnnotationParameterDefinition> parameters = new ArrayList<>();
List<AnnotationParameterDefinition> parameters = Collections.emptyList();
}

0 comments on commit 5e44ad9

Please sign in to comment.