Skip to content

Commit 71d79f1

Browse files
committed
Code Review changes
1 parent bde13a9 commit 71d79f1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sentry-opentelemetry/sentry-opentelemetry-core/src/main/java/io/sentry/opentelemetry/SentrySpanProcessor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,8 @@ private boolean hasSentryBeenInitialized() {
235235
return Sentry.isEnabled();
236236
}
237237

238-
private @NotNull Map<String, Object> toMapWithStringKeys(@Nullable Attributes attributes) {
239-
@NotNull Map<String, Object> mapWithStringKeys = new HashMap<>();
238+
private @NotNull Map<String, Object> toMapWithStringKeys(final @Nullable Attributes attributes) {
239+
final @NotNull Map<String, Object> mapWithStringKeys = new HashMap<>();
240240

241241
if (attributes != null) {
242242
attributes.forEach(

sentry/src/main/java/io/sentry/SentryTracer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ Map<String, MeasurementValue> getMeasurements() {
665665

666666
@ApiStatus.Internal
667667
@Override
668-
public void setContext(@NotNull String key, @NotNull Object context) {
668+
public void setContext(final @NotNull String key, final @NotNull Object context) {
669669
contexts.put(key, context);
670670
}
671671

0 commit comments

Comments
 (0)