Skip to content

Commit 8f58f63

Browse files
committed
added @NotNull annotations
1 parent 7d5276d commit 8f58f63

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sentry/src/main/java/io/sentry/logger/LoggerApi.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,15 +212,15 @@ private void captureLog(
212212
new SentryLogEventAttributeValue(SentryAttributeType.STRING, environment));
213213
}
214214

215-
final @Nullable SentryId scopeReplayId = scopes.getCombinedScopeView().getReplayId();
216-
if (!scopeReplayId.equals(SentryId.EMPTY_ID)) {
215+
final @NotNull SentryId scopeReplayId = scopes.getCombinedScopeView().getReplayId();
216+
if (!SentryId.EMPTY_ID.equals(scopeReplayId)) {
217217
attributes.put(
218218
"sentry.replay_id",
219219
new SentryLogEventAttributeValue(SentryAttributeType.STRING, scopeReplayId.toString()));
220220
} else {
221-
final @Nullable SentryId controllerReplayId =
221+
final @NotNull SentryId controllerReplayId =
222222
scopes.getOptions().getReplayController().getReplayId();
223-
if (!controllerReplayId.equals(SentryId.EMPTY_ID)) {
223+
if (!SentryId.EMPTY_ID.equals(controllerReplayId)) {
224224
attributes.put(
225225
"sentry.replay_id",
226226
new SentryLogEventAttributeValue(

0 commit comments

Comments
 (0)