Skip to content

Commit 9b0cd9f

Browse files
committed
Format code
1 parent b68cb00 commit 9b0cd9f

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

sentry-android-core/src/main/java/io/sentry/android/core/AndroidOptionsInitializer.java

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -393,13 +393,19 @@ static void installDefaultIntegrations(
393393
options.setReplayController(replay);
394394
}
395395
if (isDistributionAvailable) {
396-
final Class<?> distributionIntegrationClass = loadClass.loadClass(
397-
"io.sentry.android.distribution.internal.DistributionIntegration", options.getLogger());
396+
final Class<?> distributionIntegrationClass =
397+
loadClass.loadClass(
398+
"io.sentry.android.distribution.internal.DistributionIntegration",
399+
options.getLogger());
398400
if (distributionIntegrationClass != null) {
399401
try {
400-
options.addIntegration((io.sentry.Integration) distributionIntegrationClass.getDeclaredConstructor().newInstance());
402+
options.addIntegration(
403+
(io.sentry.Integration)
404+
distributionIntegrationClass.getDeclaredConstructor().newInstance());
401405
} catch (Exception e) {
402-
options.getLogger().log(SentryLevel.ERROR, "Failed to instantiate DistributionIntegration", e);
406+
options
407+
.getLogger()
408+
.log(SentryLevel.ERROR, "Failed to instantiate DistributionIntegration", e);
403409
}
404410
}
405411
}

sentry-android-distribution/src/main/java/io/sentry/android/distribution/internal/DistributionIntegration.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ public class DistributionIntegration : Integration {
1111
public override fun register(scopes: IScopes, options: SentryOptions) {
1212
// Distribution integration automatically enables when module is present
1313
// No configuration needed - just having this class on the classpath enables the feature
14-
14+
1515
// If needed, we could initialize DistributionInternal here in the future
1616
// For now, Distribution.init() still needs to be called manually
1717
}
18-
}
18+
}

sentry/src/main/java/io/sentry/Sentry.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1302,14 +1302,14 @@ public static IReplayApi replay() {
13021302
}
13031303

13041304
/**
1305-
* Returns the distribution API. This feature is only available when the sentry-android-distribution
1306-
* module is included in the build.
1305+
* Returns the distribution API. This feature is only available when the
1306+
* sentry-android-distribution module is included in the build.
13071307
*
13081308
* @return The distribution API object that provides update checking functionality
13091309
*/
13101310
public static @Nullable Object distribution() {
13111311
try {
1312-
// Try to get the Distribution object via reflection
1312+
// Try to get the Distribution object via reflection
13131313
Class<?> distributionClass = Class.forName("io.sentry.android.distribution.Distribution");
13141314
return distributionClass.getField("INSTANCE").get(null);
13151315
} catch (Exception e) {

0 commit comments

Comments
 (0)