Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

Commit 5cb71c7

Browse files
committed
Enable the initialization using argument passing style in addition to
the callback style configuration.
1 parent b55a4ea commit 5cb71c7

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,9 @@ public static void init(
118118
*
119119
* @param options options the SentryOptions
120120
* @param globalHubMode the globalHubMode
121-
* @param <T> a class that extends SentryOptions or SentryOptions itself.
122121
*/
123-
private static synchronized <T extends SentryOptions> void init(
124-
@NotNull T options, boolean globalHubMode) {
122+
public static synchronized void init(
123+
@NotNull SentryOptions options, boolean globalHubMode) {
125124
String dsn = options.getDsn();
126125
if (dsn == null) {
127126
throw new IllegalArgumentException("DSN is required. Use empty string to disable SDK.");

0 commit comments

Comments
 (0)