Skip to content

Commit bec0d59

Browse files
runningcodeclaude
andcommitted
ref(core): Use primitive long for EventProcessorAndOrder.order
Avoid boxing by storing the order as a primitive long instead of a boxed Long. The constructor already normalizes a null order to System.nanoTime(), so the field never needs to represent null. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 8330a1b commit bec0d59

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sentry/src/main/java/io/sentry/internal/eventprocessor/EventProcessorAndOrder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
public final class EventProcessorAndOrder implements Comparable<EventProcessorAndOrder> {
88

99
private final @NotNull EventProcessor eventProcessor;
10-
private final @NotNull Long order;
10+
private final long order;
1111

1212
public EventProcessorAndOrder(
1313
final @NotNull EventProcessor eventProcessor, final @Nullable Long order) {

0 commit comments

Comments
 (0)