@@ -122,7 +122,7 @@ public void run() {
122122 }
123123
124124 private void addSessionTrackingShutdownHook () {
125- Runtime .getRuntime ().addShutdownHook (new Thread () {
125+ Runtime .getRuntime ().addShutdownHook (new java . lang . Thread () {
126126 @ Override
127127 public void run () {
128128 close ();
@@ -349,13 +349,13 @@ public void setTimeout(int timeout) {
349349 *
350350 * @param throwable the exception to send to Bugsnag
351351 * @return the report object
352- * @see Event
353- * @see #notify(Event )
352+ * @see BugsnagEvent
353+ * @see #notify(BugsnagEvent )
354354 */
355- public Event buildReport (Throwable throwable ) {
355+ public BugsnagEvent buildReport (Throwable throwable ) {
356356 HandledState handledState = HandledState .newInstance (
357357 HandledState .SeverityReasonType .REASON_HANDLED_EXCEPTION );
358- return new Event (config , throwable , handledState , Thread .currentThread (), featureFlagStore );
358+ return new BugsnagEvent (config , throwable , handledState , java . lang . Thread .currentThread (), featureFlagStore );
359359 }
360360
361361 /**
@@ -411,39 +411,39 @@ public boolean notify(Throwable throwable, Severity severity, Callback callback)
411411
412412 HandledState handledState = HandledState .newInstance (
413413 HandledState .SeverityReasonType .REASON_USER_SPECIFIED , severity );
414- Event event = new Event (config , throwable , handledState , Thread .currentThread (), featureFlagStore );
414+ BugsnagEvent event = new BugsnagEvent (config , throwable , handledState , java . lang . Thread .currentThread (), featureFlagStore );
415415 return notify (event , callback );
416416 }
417417
418418 /**
419419 * Notify Bugsnag of an exception and provide custom diagnostic data
420420 * for this particular error report.
421421 *
422- * @param event the {@link Event } object to send to Bugsnag
422+ * @param event the {@link BugsnagEvent } object to send to Bugsnag
423423 * @return true unless the error report was ignored
424- * @see Event
424+ * @see BugsnagEvent
425425 * @see #buildReport
426426 */
427- public boolean notify (Event event ) {
427+ public boolean notify (BugsnagEvent event ) {
428428 return notify (event , null );
429429 }
430430
431- boolean notify (Throwable throwable , HandledState handledState , Thread currentThread ) {
432- Event event = new Event (config , throwable , handledState , currentThread , featureFlagStore );
431+ boolean notify (Throwable throwable , HandledState handledState , java . lang . Thread currentThread ) {
432+ BugsnagEvent event = new BugsnagEvent (config , throwable , handledState , currentThread , featureFlagStore );
433433 return notify (event , null );
434434 }
435435
436436 /**
437437 * Notify Bugsnag of an exception and provide custom diagnostic data
438438 * for this particular error report.
439439 *
440- * @param event the {@link Event } object to send to Bugsnag
440+ * @param event the {@link BugsnagEvent } object to send to Bugsnag
441441 * @param reportCallback the {@link Callback} object to run for this Report
442442 * @return false if the error report was ignored
443- * @see Event
443+ * @see BugsnagEvent
444444 * @see #buildReport
445445 */
446- public boolean notify (Event event , Callback reportCallback ) {
446+ public boolean notify (BugsnagEvent event , Callback reportCallback ) {
447447 if (event == null ) {
448448 LOGGER .warn ("Tried to call notify with a null Report" );
449449 return false ;
@@ -675,7 +675,7 @@ SessionTracker getSessionTracker() {
675675 * @return clients which catch uncaught exceptions
676676 */
677677 public static Set <Bugsnag > uncaughtExceptionClients () {
678- UncaughtExceptionHandler handler = Thread .getDefaultUncaughtExceptionHandler ();
678+ UncaughtExceptionHandler handler = java . lang . Thread .getDefaultUncaughtExceptionHandler ();
679679 if (handler instanceof ExceptionHandler ) {
680680 ExceptionHandler bugsnagHandler = (ExceptionHandler ) handler ;
681681 return Collections .unmodifiableSet (bugsnagHandler .uncaughtExceptionClients ());
0 commit comments