Skip to content

Commit 46b442b

Browse files
runningcodeclaude
andauthored
ref(core): Use primitive long for EventProcessorAndOrder.order (#5527)
* 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> * changelog * changelog --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent b988b37 commit 46b442b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
### Improvements
66

7-
- Reduce unboxing in `DateUtils.nanosToDate` ([#5523](https://github.com/getsentry/sentry-java/pull/5523))
7+
- Reduce boxing to improve performance ([#5523](https://github.com/getsentry/sentry-java/pull/5523), [#5527](https://github.com/getsentry/sentry-java/pull/5527))
88

99
### Fixes
1010

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)