Skip to content

Commit

Permalink
Merge branch 'feat/fast-id-generation' of github.com:getsentry/sentry…
Browse files Browse the repository at this point in the history
…-java into feat/fast-id-generation
  • Loading branch information
lbloder committed Nov 8, 2024
2 parents 143c26e + 05540a3 commit 57d0a9b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sentry/src/main/java/io/sentry/protocol/SentryId.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@
import io.sentry.SentryUUID;
import io.sentry.util.LazyEvaluator;
import io.sentry.util.StringUtils;
import io.sentry.util.UUIDStringUtils;
import java.io.IOException;
import java.util.UUID;

import io.sentry.util.UUIDStringUtils;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

Expand All @@ -27,7 +26,8 @@ public SentryId() {

public SentryId(@Nullable UUID uuid) {
if (uuid != null) {
this.lazyStringValue = new LazyEvaluator<>(() -> normalize(UUIDStringUtils.toSentryIdString(uuid)));
this.lazyStringValue =
new LazyEvaluator<>(() -> normalize(UUIDStringUtils.toSentryIdString(uuid)));
} else {
this.lazyStringValue = new LazyEvaluator<>(SentryUUID::generateSentryId);
}
Expand Down

0 comments on commit 57d0a9b

Please sign in to comment.