Skip to content

Commit

Permalink
Fix: Make AtomicBooleans transitive as they are not serializable (#1305)
Browse files Browse the repository at this point in the history
  • Loading branch information
marandaneto committed Mar 5, 2021
1 parent 2bfdba8 commit 13dd94a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sentry/src/main/java/io/sentry/SentryTransaction.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public final class SentryTransaction extends SentryBaseEvent implements ITransac

private final transient @NotNull SpanContext context;

private final @NotNull AtomicBoolean finished = new AtomicBoolean(false);
private final transient @NotNull AtomicBoolean finished = new AtomicBoolean(false);

/** The {@code type} property is required in JSON payload sent to Sentry. */
@SuppressWarnings("UnusedVariable")
Expand Down
2 changes: 1 addition & 1 deletion sentry/src/main/java/io/sentry/Span.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public final class Span extends SpanContext implements ISpan {

private final transient @NotNull IHub hub;

private final @NotNull AtomicBoolean finished = new AtomicBoolean(false);
private final transient @NotNull AtomicBoolean finished = new AtomicBoolean(false);

Span(
final @NotNull SentryId traceId,
Expand Down

0 comments on commit 13dd94a

Please sign in to comment.