88import io .sentry .protocol .SentryTransaction ;
99import io .sentry .protocol .User ;
1010import io .sentry .util .HintUtils ;
11- import io .sentry .util .Objects ;
1211import java .io .Closeable ;
1312import java .io .IOException ;
1413import java .util .ArrayList ;
@@ -29,7 +28,7 @@ public final class MainEventProcessor implements EventProcessor, Closeable {
2928 private volatile @ Nullable HostnameCache hostnameCache = null ;
3029
3130 public MainEventProcessor (final @ NotNull SentryOptions options ) {
32- this .options = Objects . requireNonNull ( options , "The SentryOptions is required." ) ;
31+ this .options = options ;
3332
3433 final SentryStackTraceFactory sentryStackTraceFactory =
3534 new SentryStackTraceFactory (this .options );
@@ -38,17 +37,6 @@ public MainEventProcessor(final @NotNull SentryOptions options) {
3837 sentryThreadFactory = new SentryThreadFactory (sentryStackTraceFactory );
3938 }
4039
41- MainEventProcessor (
42- final @ NotNull SentryOptions options ,
43- final @ NotNull SentryThreadFactory sentryThreadFactory ,
44- final @ NotNull SentryExceptionFactory sentryExceptionFactory ) {
45- this .options = Objects .requireNonNull (options , "The SentryOptions is required." );
46- this .sentryThreadFactory =
47- Objects .requireNonNull (sentryThreadFactory , "The SentryThreadFactory is required." );
48- this .sentryExceptionFactory =
49- Objects .requireNonNull (sentryExceptionFactory , "The SentryExceptionFactory is required." );
50- }
51-
5240 @ Override
5341 public @ NotNull SentryEvent process (final @ NotNull SentryEvent event , final @ NotNull Hint hint ) {
5442 setCommons (event );
0 commit comments