Skip to content

Commit aa2ade1

Browse files
committed
mark all methods and ctors internal to not expose other classes
1 parent 7585ca7 commit aa2ade1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

sentry/src/main/java/io/sentry/SentryEnvelope.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import java.io.IOException;
88
import java.util.ArrayList;
99
import java.util.List;
10+
import org.jetbrains.annotations.ApiStatus;
1011
import org.jetbrains.annotations.NotNull;
1112
import org.jetbrains.annotations.Nullable;
1213

@@ -17,21 +18,25 @@ public final class SentryEnvelope {
1718
private final @NotNull SentryEnvelopeHeader header;
1819
private final @NotNull Iterable<SentryEnvelopeItem> items;
1920

21+
@ApiStatus.Internal
2022
public @NotNull Iterable<SentryEnvelopeItem> getItems() {
2123
return items;
2224
}
2325

26+
@ApiStatus.Internal
2427
public @NotNull SentryEnvelopeHeader getHeader() {
2528
return header;
2629
}
2730

31+
@ApiStatus.Internal
2832
public SentryEnvelope(
2933
final @NotNull SentryEnvelopeHeader header,
3034
final @NotNull Iterable<SentryEnvelopeItem> items) {
3135
this.header = Objects.requireNonNull(header, "SentryEnvelopeHeader is required.");
3236
this.items = Objects.requireNonNull(items, "SentryEnvelope items are required.");
3337
}
3438

39+
@ApiStatus.Internal
3540
public SentryEnvelope(
3641
final @Nullable SentryId eventId,
3742
final @Nullable SdkVersion sdkVersion,
@@ -40,6 +45,7 @@ public SentryEnvelope(
4045
this.items = Objects.requireNonNull(items, "SentryEnvelope items are required.");
4146
}
4247

48+
@ApiStatus.Internal
4349
public SentryEnvelope(
4450
final @Nullable SentryId eventId,
4551
final @Nullable SdkVersion sdkVersion,
@@ -52,6 +58,7 @@ public SentryEnvelope(
5258
this.items = items;
5359
}
5460

61+
@ApiStatus.Internal
5562
public static @NotNull SentryEnvelope from(
5663
final @NotNull ISerializer serializer,
5764
final @NotNull Session session,
@@ -64,6 +71,7 @@ public SentryEnvelope(
6471
null, sdkVersion, SentryEnvelopeItem.fromSession(serializer, session));
6572
}
6673

74+
@ApiStatus.Internal
6775
public static @NotNull SentryEnvelope from(
6876
final @NotNull ISerializer serializer,
6977
final @NotNull SentryBaseEvent event,
@@ -76,6 +84,7 @@ public SentryEnvelope(
7684
event.getEventId(), sdkVersion, SentryEnvelopeItem.fromEvent(serializer, event));
7785
}
7886

87+
@ApiStatus.Internal
7988
public static @NotNull SentryEnvelope from(
8089
final @NotNull ISerializer serializer,
8190
final @NotNull ProfilingTraceData profilingTraceData,

0 commit comments

Comments
 (0)