diff --git a/sdk/lint-baseline.xml b/sdk/lint-baseline.xml index 0c900ea019..776acbdbca 100644 --- a/sdk/lint-baseline.xml +++ b/sdk/lint-baseline.xml @@ -925,336 +925,6 @@ column="26"/> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - getErrorApiHeaders() { Map map = new HashMap<>(); map.put(HEADER_API_PAYLOAD_VERSION, "4.0"); @@ -637,6 +647,7 @@ public Map getErrorApiHeaders() { * * @return the HTTP headers */ + @NonNull public Map getSessionApiHeaders() { Map map = new HashMap<>(); map.put(HEADER_API_PAYLOAD_VERSION, "1.0"); @@ -666,7 +677,7 @@ public Map getSessionApiHeaders() { * @see BeforeSend * @see Report */ - public void beforeSend(BeforeSend beforeSend) { + public void beforeSend(@NonNull BeforeSend beforeSend) { if (!beforeSendTasks.contains(beforeSend)) { beforeSendTasks.add(beforeSend); } @@ -678,7 +689,7 @@ public void beforeSend(BeforeSend beforeSend) { * @param releaseStage the release stage to check * @return true if the release state should be notified else false */ - protected boolean shouldNotifyForReleaseStage(String releaseStage) { + protected boolean shouldNotifyForReleaseStage(@Nullable String releaseStage) { if (this.notifyReleaseStages == null) { return true; } @@ -693,7 +704,7 @@ protected boolean shouldNotifyForReleaseStage(String releaseStage) { * @param className the exception class to check * @return true if the exception class should be ignored else false */ - protected boolean shouldIgnoreClass(String className) { + protected boolean shouldIgnoreClass(@Nullable String className) { if (this.ignoreClasses == null) { return false; } @@ -707,7 +718,7 @@ protected boolean shouldIgnoreClass(String className) { * * @param beforeNotify the new before notify task */ - protected void beforeNotify(BeforeNotify beforeNotify) { + protected void beforeNotify(@NonNull BeforeNotify beforeNotify) { if (!beforeNotifyTasks.contains(beforeNotify)) { beforeNotifyTasks.add(beforeNotify); } @@ -718,7 +729,7 @@ protected void beforeNotify(BeforeNotify beforeNotify) { * * @param beforeRecordBreadcrumb the new before breadcrumb task */ - protected void beforeRecordBreadcrumb(BeforeRecordBreadcrumb beforeRecordBreadcrumb) { + protected void beforeRecordBreadcrumb(@NonNull BeforeRecordBreadcrumb beforeRecordBreadcrumb) { if (!beforeRecordBreadcrumbTasks.contains(beforeRecordBreadcrumb)) { beforeRecordBreadcrumbTasks.add(beforeRecordBreadcrumb); } @@ -747,6 +758,7 @@ protected boolean inProject(@NonNull String className) { * * @return the before breadcrumb tasks */ + @NonNull protected Collection getBeforeRecordBreadcrumbTasks() { return beforeRecordBreadcrumbTasks; }