Commit 8330a1b
ref(core): Avoid boxing in DateUtils.nanosToDate (#5523)
* ref(core): Avoid boxing in DateUtils.nanosToDate
nanosToMillis already returns a primitive double, but the result was
stored in a boxed Double and then unboxed again via longValue(). Keep
the value primitive to drop the redundant allocation and unboxing on
this conversion, which runs whenever a SentryDate is turned into a
java.util.Date.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* changelog
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent a28ff12 commit 8330a1b
2 files changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
3 | 9 | | |
4 | 10 | | |
5 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
119 | | - | |
| 118 | + | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
0 commit comments