Skip to content
This repository was archived by the owner on Sep 14, 2020. It is now read-only.

Commit b22f8ac

Browse files
committed
fix: remove nullability annotations to fix androidx jetifier issue
1 parent ced2f90 commit b22f8ac

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

android/src/main/java/com/bugsnag/DiagnosticsCallback.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
import com.bugsnag.android.Report;
66
import com.bugsnag.android.Severity;
77

8-
import android.support.annotation.NonNull;
9-
108
import com.facebook.react.bridge.ReadableMap;
119
import com.facebook.react.bridge.ReadableMapKeySetIterator;
1210

@@ -92,7 +90,7 @@ Map<String, Object> readObjectMap(ReadableMap map) {
9290
}
9391

9492
@Override
95-
public void beforeNotify(@NonNull Report report) {
93+
public void beforeNotify(Report report) {
9694
report.getNotifier().setName(NOTIFIER_NAME);
9795
report.getNotifier().setURL(NOTIFIER_URL);
9896
report.getNotifier().setVersion(String.format("%s (Android %s)",

android/src/main/java/com/bugsnag/JavaScriptException.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
import com.bugsnag.android.JsonStream;
44

5-
import android.support.annotation.NonNull;
6-
75
import java.io.IOException;
86

97
/**
@@ -24,7 +22,7 @@ class JavaScriptException extends Exception implements JsonStream.Streamable {
2422
}
2523

2624
@Override
27-
public void toStream(@NonNull JsonStream writer) throws IOException {
25+
public void toStream(JsonStream writer) throws IOException {
2826
writer.beginObject();
2927
writer.name("errorClass").value(name);
3028
writer.name("message").value(getLocalizedMessage());

0 commit comments

Comments
 (0)