Skip to content

Commit ead511d

Browse files
ref(core): Mark NoOp stubs as @ApiStatus.Internal (#6016)
These no-op implementations are SDK plumbing, not public API. Marking them internal now documents the contract so they can be relocated in a future major without implying customer support. Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Nelson Osacky <nelson.osacky@sentry.io>
1 parent 5183e3a commit ead511d

28 files changed

Lines changed: 56 additions & 1 deletion

sentry-graphql-core/src/main/java/io/sentry/graphql/NoOpSubscriptionHandler.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
import graphql.execution.instrumentation.parameters.InstrumentationFieldFetchParameters;
44
import io.sentry.IScopes;
5+
import org.jetbrains.annotations.ApiStatus;
56
import org.jetbrains.annotations.NotNull;
67

8+
@ApiStatus.Internal
79
public final class NoOpSubscriptionHandler implements SentrySubscriptionHandler {
810

911
private static final @NotNull NoOpSubscriptionHandler instance = new NoOpSubscriptionHandler();

sentry/src/main/java/io/sentry/NoOpCompositePerformanceCollector.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
package io.sentry;
22

33
import java.util.List;
4+
import org.jetbrains.annotations.ApiStatus;
45
import org.jetbrains.annotations.NotNull;
56
import org.jetbrains.annotations.Nullable;
67

8+
@ApiStatus.Internal
79
public final class NoOpCompositePerformanceCollector implements CompositePerformanceCollector {
810

911
private static final NoOpCompositePerformanceCollector instance =

sentry/src/main/java/io/sentry/NoOpContinuousProfiler.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
package io.sentry;
22

33
import io.sentry.protocol.SentryId;
4+
import org.jetbrains.annotations.ApiStatus;
45
import org.jetbrains.annotations.NotNull;
56

7+
@ApiStatus.Internal
68
public final class NoOpContinuousProfiler implements IContinuousProfiler {
79

810
private static final NoOpContinuousProfiler instance = new NoOpContinuousProfiler();

sentry/src/main/java/io/sentry/NoOpDistributionApi.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import org.jetbrains.annotations.NotNull;
99

1010
/** No-op implementation of IDistributionApi. Used when distribution module is not available. */
11+
@ApiStatus.Internal
1112
@ApiStatus.Experimental
1213
public final class NoOpDistributionApi implements IDistributionApi {
1314

sentry/src/main/java/io/sentry/NoOpEnvelopeReader.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
import java.io.IOException;
44
import java.io.InputStream;
5+
import org.jetbrains.annotations.ApiStatus;
56
import org.jetbrains.annotations.NotNull;
67
import org.jetbrains.annotations.Nullable;
78

9+
@ApiStatus.Internal
810
public final class NoOpEnvelopeReader implements IEnvelopeReader {
911

1012
private static final NoOpEnvelopeReader instance = new NoOpEnvelopeReader();

sentry/src/main/java/io/sentry/NoOpFeedbackApi.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
import io.sentry.protocol.Feedback;
44
import io.sentry.protocol.SentryId;
5+
import org.jetbrains.annotations.ApiStatus;
56
import org.jetbrains.annotations.NotNull;
67
import org.jetbrains.annotations.Nullable;
78

9+
@ApiStatus.Internal
810
public final class NoOpFeedbackApi implements IFeedbackApi {
911

1012
private static final NoOpFeedbackApi instance = new NoOpFeedbackApi();

sentry/src/main/java/io/sentry/NoOpHub.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@
1414
import org.jetbrains.annotations.NotNull;
1515
import org.jetbrains.annotations.Nullable;
1616

17-
@Deprecated
1817
/**
1918
* @deprecated use {@link NoOpScopes} instead.
2019
*/
20+
@Deprecated
21+
@ApiStatus.Internal
2122
public final class NoOpHub implements IHub {
2223

2324
private static final NoOpHub instance = new NoOpHub();

sentry/src/main/java/io/sentry/NoOpLogger.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
package io.sentry;
22

3+
import org.jetbrains.annotations.ApiStatus;
34
import org.jetbrains.annotations.NotNull;
45
import org.jetbrains.annotations.Nullable;
56

67
/** No-op implementation of ILogger */
8+
@ApiStatus.Internal
79
public final class NoOpLogger implements ILogger {
810

911
private static final NoOpLogger instance = new NoOpLogger();

sentry/src/main/java/io/sentry/NoOpProfileConverter.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
import io.sentry.protocol.profiling.SentryProfile;
44
import java.io.IOException;
5+
import org.jetbrains.annotations.ApiStatus;
56
import org.jetbrains.annotations.NotNull;
67

8+
@ApiStatus.Internal
79
public final class NoOpProfileConverter implements IProfileConverter {
810

911
private static final NoOpProfileConverter instance = new NoOpProfileConverter();

sentry/src/main/java/io/sentry/NoOpReplayBreadcrumbConverter.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
package io.sentry;
22

33
import io.sentry.rrweb.RRWebEvent;
4+
import org.jetbrains.annotations.ApiStatus;
45
import org.jetbrains.annotations.NotNull;
56
import org.jetbrains.annotations.Nullable;
67

8+
@ApiStatus.Internal
79
public final class NoOpReplayBreadcrumbConverter implements ReplayBreadcrumbConverter {
810

911
private static final NoOpReplayBreadcrumbConverter instance = new NoOpReplayBreadcrumbConverter();

0 commit comments

Comments
 (0)