Skip to content

Commit f50173b

Browse files
committed
Format code
1 parent bd0c3b4 commit f50173b

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

sentry/src/main/java/io/sentry/SentryIntegrationPackageStorage.java

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import io.sentry.util.Objects;
66
import java.util.Set;
77
import java.util.concurrent.CopyOnWriteArraySet;
8-
98
import org.jetbrains.annotations.ApiStatus;
109
import org.jetbrains.annotations.NotNull;
1110
import org.jetbrains.annotations.Nullable;
@@ -17,7 +16,8 @@ public final class SentryIntegrationPackageStorage {
1716
private static final @NotNull AutoClosableReentrantLock staticLock =
1817
new AutoClosableReentrantLock();
1918
private static volatile @Nullable Boolean mixedVersionsDetected = null;
20-
private static final @NotNull AutoClosableReentrantLock mixedVersionsLock = new AutoClosableReentrantLock();
19+
private static final @NotNull AutoClosableReentrantLock mixedVersionsLock =
20+
new AutoClosableReentrantLock();
2121

2222
public static @NotNull SentryIntegrationPackageStorage getInstance() {
2323
if (INSTANCE == null) {
@@ -86,8 +86,14 @@ public boolean checkForMixedVersions(final @NotNull ILogger logger) {
8686
boolean mixedVersionsDetectedThisCheck = false;
8787

8888
for (SentryPackage pkg : packages) {
89-
if (pkg.getName().startsWith("maven:io.sentry:") && !sdkVersion.equalsIgnoreCase(pkg.getVersion())) {
90-
logger.log(SentryLevel.ERROR, "The Sentry SDK has been configured with mixed versions. Expected %s to match core SDK version %s but was %s", pkg.getName(), sdkVersion, pkg.getVersion());
89+
if (pkg.getName().startsWith("maven:io.sentry:")
90+
&& !sdkVersion.equalsIgnoreCase(pkg.getVersion())) {
91+
logger.log(
92+
SentryLevel.ERROR,
93+
"The Sentry SDK has been configured with mixed versions. Expected %s to match core SDK version %s but was %s",
94+
pkg.getName(),
95+
sdkVersion,
96+
pkg.getVersion());
9197
mixedVersionsDetectedThisCheck = true;
9298
}
9399
}

0 commit comments

Comments
 (0)