Skip to content

Commit 5efb2d7

Browse files
runningcodeclaude
andauthored
ref(android): Mark AppStartMetrics.setAppStartType as @testonly (#6121)
No production code calls this setter; the cold/warm classification assigns the field directly. Its only callers are tests, so annotate it the way the neighboring test seams (setFirstIdle, getFirstIdle, clear) already are. It has to stay public: most of those call sites live in io.sentry.android.core, a different package from AppStartMetrics. Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 033ce52 commit 5efb2d7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

sentry-android-core/src/main/java/io/sentry/android/core/performance/AppStartMetrics.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ public AppStartMetrics() {
156156
return applicationOnCreate;
157157
}
158158

159+
@TestOnly
159160
public void setAppStartType(final @NotNull AppStartType appStartType) {
160161
this.appStartType = appStartType;
161162
}

0 commit comments

Comments
 (0)