@@ -122,7 +122,7 @@ public void run() {
122122 }
123123
124124 private void addSessionTrackingShutdownHook () {
125- Runtime .getRuntime ().addShutdownHook (new java . lang . Thread () {
125+ Runtime .getRuntime ().addShutdownHook (new Thread () {
126126 @ Override
127127 public void run () {
128128 close ();
@@ -353,7 +353,7 @@ public void setTimeout(int timeout) {
353353 public BugsnagEvent buildReport (Throwable throwable ) {
354354 HandledState handledState = HandledState .newInstance (
355355 HandledState .SeverityReasonType .REASON_HANDLED_EXCEPTION );
356- return new BugsnagEvent (config , throwable , handledState , java . lang . Thread .currentThread (), featureFlagStore );
356+ return new BugsnagEvent (config , throwable , handledState , Thread .currentThread (), featureFlagStore );
357357 }
358358
359359 /**
@@ -408,8 +408,17 @@ public boolean notify(Throwable throwable, Severity severity, OnErrorCallback ca
408408 }
409409
410410 HandledState handledState = HandledState .newInstance (
411- HandledState .SeverityReasonType .REASON_USER_SPECIFIED , severity );
412- BugsnagEvent event = new BugsnagEvent (config , throwable , handledState , java .lang .Thread .currentThread (), featureFlagStore );
411+ HandledState .SeverityReasonType .REASON_USER_SPECIFIED ,
412+ severity
413+ );
414+
415+ BugsnagEvent event = new BugsnagEvent (
416+ config ,
417+ throwable ,
418+ handledState ,
419+ Thread .currentThread (),
420+ featureFlagStore
421+ );
413422 return notify (event , callback );
414423 }
415424
@@ -426,7 +435,7 @@ public boolean notify(BugsnagEvent event) {
426435 return notify (event , null );
427436 }
428437
429- boolean notify (Throwable throwable , HandledState handledState , java . lang . Thread currentThread ) {
438+ boolean notify (Throwable throwable , HandledState handledState , Thread currentThread ) {
430439 BugsnagEvent event = new BugsnagEvent (config , throwable , handledState , currentThread , featureFlagStore );
431440 return notify (event , null );
432441 }
@@ -673,7 +682,7 @@ SessionTracker getSessionTracker() {
673682 * @return clients which catch uncaught exceptions
674683 */
675684 public static Set <Bugsnag > uncaughtExceptionClients () {
676- UncaughtExceptionHandler handler = java . lang . Thread .getDefaultUncaughtExceptionHandler ();
685+ UncaughtExceptionHandler handler = Thread .getDefaultUncaughtExceptionHandler ();
677686 if (handler instanceof ExceptionHandler ) {
678687 ExceptionHandler bugsnagHandler = (ExceptionHandler ) handler ;
679688 return Collections .unmodifiableSet (bugsnagHandler .uncaughtExceptionClients ());
0 commit comments