Skip to content

Commit be95843

Browse files
srtaalejclaude
andcommitted
fix(model): remove empty list initialization from CarouselBlock.elements
Follow project convention of not initializing List fields to empty collections — null vs empty has semantic meaning in the Slack API. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent fb48484 commit be95843

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

slack-api-model/src/main/java/com/slack/api/model/block/CarouselBlock.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import lombok.Data;
66
import lombok.NoArgsConstructor;
77

8-
import java.util.ArrayList;
98
import java.util.List;
109

1110
/**
@@ -25,8 +24,7 @@ public class CarouselBlock implements LayoutBlock {
2524
/**
2625
* An array of {@link CardBlock card} blocks. Must contain between 1 and 10 cards.
2726
*/
28-
@Builder.Default
29-
private List<CardBlock> elements = new ArrayList<>();
27+
private List<CardBlock> elements;
3028

3129
private String blockId;
3230
}

0 commit comments

Comments
 (0)