Skip to content

Commit 1a820e6

Browse files
Make sentry-header regex private and final
1 parent eb08701 commit 1a820e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry/src/main/java/io/sentry/SentryTraceHeader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public final class SentryTraceHeader {
1515
private final @NotNull SpanId spanId;
1616
private final @Nullable Boolean sampled;
1717

18-
final Pattern SENTRY_TRACEPARENT_HEADER_REGEX =
18+
private static final Pattern SENTRY_TRACEPARENT_HEADER_REGEX =
1919
Pattern.compile(
2020
"^[ \\t]*(?<traceId>[0-9a-f]{32})-(?<spanId>[0-9a-f]{16})(?<sampled>-[01])?[ \\t]*$",
2121
Pattern.CASE_INSENSITIVE);

0 commit comments

Comments
 (0)