Skip to content

Commit 1e6eaf6

Browse files
author
Aidan Melvin
committed
Update metalava prebuilts from build ID 14070385
`development/update_metalava.sh 1.0.0-alpha13 14070385` Also ran `./gradlew updateApiLintBaseline` Bug: 395815342 Test: ./gradlew checkApi Change-Id: I52e8e1aea67bb6f1f8cf083e0f9c18363cfcec2f
1 parent 331a5e5 commit 1e6eaf6

93 files changed

Lines changed: 515 additions & 1189 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

activity/activity/api/api_lint.ignore

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ ForbiddenSuperClass: androidx.activity.ComponentActivity:
1616

1717

1818
InvalidNullabilityOverride: androidx.activity.ComponentActivity#dispatchKeyEvent(android.view.KeyEvent) parameter #0:
19-
Invalid nullability on parameter `event` in method `dispatchKeyEvent`. Parameters of overrides cannot be NonNull if the super parameter is unannotated.
19+
Invalid nullability on type android.view.KeyEvent in parameter `event` in method `dispatchKeyEvent`. Parameter in method override cannot use a non-null type when the corresponding type from the super method is platform-nullness.
2020
InvalidNullabilityOverride: androidx.activity.ComponentActivity#dispatchKeyShortcutEvent(android.view.KeyEvent) parameter #0:
21-
Invalid nullability on parameter `event` in method `dispatchKeyShortcutEvent`. Parameters of overrides cannot be NonNull if the super parameter is unannotated.
21+
Invalid nullability on type android.view.KeyEvent in parameter `event` in method `dispatchKeyShortcutEvent`. Parameter in method override cannot use a non-null type when the corresponding type from the super method is platform-nullness.
2222
InvalidNullabilityOverride: androidx.activity.ComponentActivity#onMultiWindowModeChanged(boolean, android.content.res.Configuration) parameter #1:
23-
Invalid nullability on parameter `newConfig` in method `onMultiWindowModeChanged`. Parameters of overrides cannot be NonNull if the super parameter is unannotated.
23+
Invalid nullability on type android.content.res.Configuration in parameter `newConfig` in method `onMultiWindowModeChanged`. Parameter in method override cannot use a non-null type when the corresponding type from the super method is platform-nullness.
2424
InvalidNullabilityOverride: androidx.activity.ComponentActivity#onPictureInPictureModeChanged(boolean, android.content.res.Configuration) parameter #1:
25-
Invalid nullability on parameter `newConfig` in method `onPictureInPictureModeChanged`. Parameters of overrides cannot be NonNull if the super parameter is unannotated.
25+
Invalid nullability on type android.content.res.Configuration in parameter `newConfig` in method `onPictureInPictureModeChanged`. Parameter in method override cannot use a non-null type when the corresponding type from the super method is platform-nullness.
2626
InvalidNullabilityOverride: androidx.activity.ComponentActivity#onRetainNonConfigurationInstance():
27-
Invalid nullability on method `onRetainNonConfigurationInstance` return. Overrides of unannotated super method cannot be Nullable.
27+
Invalid nullability on type java.lang.Object in method `onRetainNonConfigurationInstance` return. Method override cannot use a nullable type when the corresponding type from the super method is platform-nullness.
2828

2929

3030
MissingGetterMatchingBuilder: androidx.activity.result.IntentSenderRequest.Builder#setFlags(int, int):
@@ -37,3 +37,7 @@ PairedRegistration: androidx.activity.OnBackPressedDispatcher#addCallback(androi
3737
Found addCallback but not removeCallback in androidx.activity.OnBackPressedDispatcher
3838
PairedRegistration: androidx.activity.OnBackPressedDispatcherKt#addCallback(androidx.activity.OnBackPressedDispatcher, androidx.lifecycle.LifecycleOwner, boolean, kotlin.jvm.functions.Function1<? super androidx.activity.OnBackPressedCallback,kotlin.Unit>):
3939
Found addCallback but not removeCallback in androidx.activity.OnBackPressedDispatcherKt
40+
41+
42+
TypeParameterName: androidx.activity.ActivityViewModelLazyKt#viewModels(androidx.activity.ComponentActivity, kotlin.jvm.functions.Function0<androidx.lifecycle.viewmodel.CreationExtras>, kotlin.jvm.functions.Function0<androidx.lifecycle.ViewModelProvider.Factory>):
43+
Invalid type parameter name "VM". Type parameter names must follow the Google naming guidelines specified here: https://developer.android.com/kotlin/style-guide#type_variable_names

appcompat/appcompat-resources/api/api_lint.ignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Baseline format: 1.0
22
InvalidNullabilityOverride: androidx.appcompat.graphics.drawable.DrawableContainerCompat#setTintMode(android.graphics.PorterDuff.Mode) parameter #0:
3-
Invalid nullability on parameter `tintMode` in method `setTintMode`. Parameters of overrides cannot be NonNull if super parameter is Nullable.
3+
Invalid nullability on type android.graphics.PorterDuff.Mode in parameter `tintMode` in method `setTintMode`. Parameter in method override cannot use a non-null type when the corresponding type from the super method is nullable.
44

55

66
MissingNullability: androidx.appcompat.content.res.AppCompatResources#getColorStateList(android.content.Context, int):

appcompat/appcompat/api/api_lint.ignore

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -52,49 +52,49 @@ GetterSetterNames: androidx.appcompat.widget.SwitchCompat#getSplitTrack():
5252

5353

5454
InvalidNullabilityOverride: androidx.appcompat.app.AppCompatActivity#onSupportActionModeFinished(androidx.appcompat.view.ActionMode) parameter #0:
55-
Invalid nullability on parameter `mode` in method `onSupportActionModeFinished`. Parameters of overrides cannot be NonNull if the super parameter is unannotated.
55+
Invalid nullability on type androidx.appcompat.view.ActionMode in parameter `mode` in method `onSupportActionModeFinished`. Parameter in method override cannot use a non-null type when the corresponding type from the super method is platform-nullness.
5656
InvalidNullabilityOverride: androidx.appcompat.app.AppCompatActivity#onSupportActionModeStarted(androidx.appcompat.view.ActionMode) parameter #0:
57-
Invalid nullability on parameter `mode` in method `onSupportActionModeStarted`. Parameters of overrides cannot be NonNull if the super parameter is unannotated.
57+
Invalid nullability on type androidx.appcompat.view.ActionMode in parameter `mode` in method `onSupportActionModeStarted`. Parameter in method override cannot use a non-null type when the corresponding type from the super method is platform-nullness.
5858
InvalidNullabilityOverride: androidx.appcompat.app.AppCompatActivity#onWindowStartingSupportActionMode(androidx.appcompat.view.ActionMode.Callback) parameter #0:
59-
Invalid nullability on parameter `callback` in method `onWindowStartingSupportActionMode`. Parameters of overrides cannot be NonNull if the super parameter is unannotated.
59+
Invalid nullability on type androidx.appcompat.view.ActionMode.Callback in parameter `callback` in method `onWindowStartingSupportActionMode`. Parameter in method override cannot use a non-null type when the corresponding type from the super method is platform-nullness.
6060
InvalidNullabilityOverride: androidx.appcompat.widget.AppCompatAutoCompleteTextView#getCustomSelectionActionModeCallback():
61-
Invalid nullability on method `getCustomSelectionActionModeCallback` return. Overrides of unannotated super method cannot be Nullable.
61+
Invalid nullability on type android.view.ActionMode.Callback in method `getCustomSelectionActionModeCallback` return. Method override cannot use a nullable type when the corresponding type from the super method is platform-nullness.
6262
InvalidNullabilityOverride: androidx.appcompat.widget.AppCompatButton#getCustomSelectionActionModeCallback():
63-
Invalid nullability on method `getCustomSelectionActionModeCallback` return. Overrides of unannotated super method cannot be Nullable.
63+
Invalid nullability on type android.view.ActionMode.Callback in method `getCustomSelectionActionModeCallback` return. Method override cannot use a nullable type when the corresponding type from the super method is platform-nullness.
6464
InvalidNullabilityOverride: androidx.appcompat.widget.AppCompatButton#setFilters(android.text.InputFilter[]) parameter #0:
65-
Invalid nullability on parameter `filters` in method `setFilters`. Parameters of overrides cannot be NonNull if the super parameter is unannotated.
65+
Invalid nullability on type android.text.InputFilter[] in parameter `filters` in method `setFilters`. Parameter in method override cannot use a non-null type when the corresponding type from the super method is platform-nullness.
6666
InvalidNullabilityOverride: androidx.appcompat.widget.AppCompatCheckBox#setFilters(android.text.InputFilter[]) parameter #0:
67-
Invalid nullability on parameter `filters` in method `setFilters`. Parameters of overrides cannot be NonNull if the super parameter is unannotated.
67+
Invalid nullability on type android.text.InputFilter[] in parameter `filters` in method `setFilters`. Parameter in method override cannot use a non-null type when the corresponding type from the super method is platform-nullness.
6868
InvalidNullabilityOverride: androidx.appcompat.widget.AppCompatCheckedTextView#getCustomSelectionActionModeCallback():
69-
Invalid nullability on method `getCustomSelectionActionModeCallback` return. Overrides of unannotated super method cannot be Nullable.
69+
Invalid nullability on type android.view.ActionMode.Callback in method `getCustomSelectionActionModeCallback` return. Method override cannot use a nullable type when the corresponding type from the super method is platform-nullness.
7070
InvalidNullabilityOverride: androidx.appcompat.widget.AppCompatCheckedTextView#onCreateInputConnection(android.view.inputmethod.EditorInfo):
71-
Invalid nullability on method `onCreateInputConnection` return. Overrides of unannotated super method cannot be Nullable.
71+
Invalid nullability on type android.view.inputmethod.InputConnection in method `onCreateInputConnection` return. Method override cannot use a nullable type when the corresponding type from the super method is platform-nullness.
7272
InvalidNullabilityOverride: androidx.appcompat.widget.AppCompatCheckedTextView#onCreateInputConnection(android.view.inputmethod.EditorInfo) parameter #0:
73-
Invalid nullability on parameter `outAttrs` in method `onCreateInputConnection`. Parameters of overrides cannot be NonNull if the super parameter is unannotated.
73+
Invalid nullability on type android.view.inputmethod.EditorInfo in parameter `outAttrs` in method `onCreateInputConnection`. Parameter in method override cannot use a non-null type when the corresponding type from the super method is platform-nullness.
7474
InvalidNullabilityOverride: androidx.appcompat.widget.AppCompatCheckedTextView#setTextAppearance(android.content.Context, int) parameter #0:
75-
Invalid nullability on parameter `context` in method `setTextAppearance`. Parameters of overrides cannot be NonNull if the super parameter is unannotated.
75+
Invalid nullability on type android.content.Context in parameter `context` in method `setTextAppearance`. Parameter in method override cannot use a non-null type when the corresponding type from the super method is platform-nullness.
7676
InvalidNullabilityOverride: androidx.appcompat.widget.AppCompatEditText#getCustomSelectionActionModeCallback():
77-
Invalid nullability on method `getCustomSelectionActionModeCallback` return. Overrides of unannotated super method cannot be Nullable.
77+
Invalid nullability on type android.view.ActionMode.Callback in method `getCustomSelectionActionModeCallback` return. Method override cannot use a nullable type when the corresponding type from the super method is platform-nullness.
7878
InvalidNullabilityOverride: androidx.appcompat.widget.AppCompatEditText#getText():
79-
Invalid nullability on method `getText` return. Overrides of unannotated super method cannot be Nullable.
79+
Invalid nullability on type android.text.Editable in method `getText` return. Method override cannot use a nullable type when the corresponding type from the super method is platform-nullness.
8080
InvalidNullabilityOverride: androidx.appcompat.widget.AppCompatEditText#onCreateInputConnection(android.view.inputmethod.EditorInfo):
81-
Invalid nullability on method `onCreateInputConnection` return. Overrides of unannotated super method cannot be Nullable.
81+
Invalid nullability on type android.view.inputmethod.InputConnection in method `onCreateInputConnection` return. Method override cannot use a nullable type when the corresponding type from the super method is platform-nullness.
8282
InvalidNullabilityOverride: androidx.appcompat.widget.AppCompatEditText#onCreateInputConnection(android.view.inputmethod.EditorInfo) parameter #0:
83-
Invalid nullability on parameter `outAttrs` in method `onCreateInputConnection`. Parameters of overrides cannot be NonNull if the super parameter is unannotated.
83+
Invalid nullability on type android.view.inputmethod.EditorInfo in parameter `outAttrs` in method `onCreateInputConnection`. Parameter in method override cannot use a non-null type when the corresponding type from the super method is platform-nullness.
8484
InvalidNullabilityOverride: androidx.appcompat.widget.AppCompatRadioButton#setFilters(android.text.InputFilter[]) parameter #0:
85-
Invalid nullability on parameter `filters` in method `setFilters`. Parameters of overrides cannot be NonNull if the super parameter is unannotated.
85+
Invalid nullability on type android.text.InputFilter[] in parameter `filters` in method `setFilters`. Parameter in method override cannot use a non-null type when the corresponding type from the super method is platform-nullness.
8686
InvalidNullabilityOverride: androidx.appcompat.widget.AppCompatTextView#getCustomSelectionActionModeCallback():
87-
Invalid nullability on method `getCustomSelectionActionModeCallback` return. Overrides of unannotated super method cannot be Nullable.
87+
Invalid nullability on type android.view.ActionMode.Callback in method `getCustomSelectionActionModeCallback` return. Method override cannot use a nullable type when the corresponding type from the super method is platform-nullness.
8888
InvalidNullabilityOverride: androidx.appcompat.widget.AppCompatTextView#setFilters(android.text.InputFilter[]) parameter #0:
89-
Invalid nullability on parameter `filters` in method `setFilters`. Parameters of overrides cannot be NonNull if the super parameter is unannotated.
89+
Invalid nullability on type android.text.InputFilter[] in parameter `filters` in method `setFilters`. Parameter in method override cannot use a non-null type when the corresponding type from the super method is platform-nullness.
9090
InvalidNullabilityOverride: androidx.appcompat.widget.AppCompatToggleButton#setFilters(android.text.InputFilter[]) parameter #0:
91-
Invalid nullability on parameter `filters` in method `setFilters`. Parameters of overrides cannot be NonNull if the super parameter is unannotated.
91+
Invalid nullability on type android.text.InputFilter[] in parameter `filters` in method `setFilters`. Parameter in method override cannot use a non-null type when the corresponding type from the super method is platform-nullness.
9292
InvalidNullabilityOverride: androidx.appcompat.widget.ListPopupWindow#getListView():
93-
Invalid nullability on method `getListView` return. Overrides of unannotated super method cannot be Nullable.
93+
Invalid nullability on type android.widget.ListView in method `getListView` return. Method override cannot use a nullable type when the corresponding type from the super method is platform-nullness.
9494
InvalidNullabilityOverride: androidx.appcompat.widget.SwitchCompat#getCustomSelectionActionModeCallback():
95-
Invalid nullability on method `getCustomSelectionActionModeCallback` return. Overrides of unannotated super method cannot be Nullable.
95+
Invalid nullability on type android.view.ActionMode.Callback in method `getCustomSelectionActionModeCallback` return. Method override cannot use a nullable type when the corresponding type from the super method is platform-nullness.
9696
InvalidNullabilityOverride: androidx.appcompat.widget.SwitchCompat#setFilters(android.text.InputFilter[]) parameter #0:
97-
Invalid nullability on parameter `filters` in method `setFilters`. Parameters of overrides cannot be NonNull if the super parameter is unannotated.
97+
Invalid nullability on type android.text.InputFilter[] in parameter `filters` in method `setFilters`. Parameter in method override cannot use a non-null type when the corresponding type from the super method is platform-nullness.
9898

9999

100100
ListenerLast: androidx.appcompat.app.AlertDialog.Builder#setCursor(android.database.Cursor, android.content.DialogInterface.OnClickListener, String) parameter #2:
Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
// Baseline format: 1.0
22
NullableCollection: androidx.appsearch.app.GenericDocument#getPropertyDocumentArray(String):
3-
Return type of method androidx.appsearch.app.GenericDocument.getPropertyDocumentArray(String) is a nullable collection (`androidx.appsearch.app.GenericDocument[]`); must be non-null
3+
Return type of method androidx.appsearch.app.GenericDocument.getPropertyDocumentArray(String) uses a nullable collection (`androidx.appsearch.app.GenericDocument[]`); must be non-null
44
NullableCollection: androidx.appsearch.app.GenericDocument#getPropertyStringArray(String):
5-
Return type of method androidx.appsearch.app.GenericDocument.getPropertyStringArray(String) is a nullable collection (`java.lang.String[]`); must be non-null
5+
Return type of method androidx.appsearch.app.GenericDocument.getPropertyStringArray(String) uses a nullable collection (`java.lang.String[]`); must be non-null
6+
7+
8+
TypeParameterName: androidx.appsearch.app.AppSearchBatchResult:
9+
Invalid type parameter name "KeyType". Type parameter names must follow the Google naming guidelines specified here: https://developer.android.com/kotlin/style-guide#type_variable_names
10+
TypeParameterName: androidx.appsearch.app.AppSearchBatchResult.Builder:
11+
Invalid type parameter name "KeyType". Type parameter names must follow the Google naming guidelines specified here: https://developer.android.com/kotlin/style-guide#type_variable_names
12+
TypeParameterName: androidx.appsearch.app.AppSearchResult:
13+
Invalid type parameter name "ValueType". Type parameter names must follow the Google naming guidelines specified here: https://developer.android.com/kotlin/style-guide#type_variable_names
14+
TypeParameterName: androidx.appsearch.app.AppSearchResult#newFailedResult(int, String):
15+
Invalid type parameter name "ValueType". Type parameter names must follow the Google naming guidelines specified here: https://developer.android.com/kotlin/style-guide#type_variable_names
16+
TypeParameterName: androidx.appsearch.app.AppSearchResult#newSuccessfulResult(ValueType):
17+
Invalid type parameter name "ValueType". Type parameter names must follow the Google naming guidelines specified here: https://developer.android.com/kotlin/style-guide#type_variable_names
18+
TypeParameterName: androidx.appsearch.app.GenericDocument.Builder:
19+
Invalid type parameter name "BuilderType". Type parameter names must follow the Google naming guidelines specified here: https://developer.android.com/kotlin/style-guide#type_variable_names
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
// Baseline format: 1.0
2-
GetterSetterNames: androidx.benchmark.junit4.PerfettoTraceRule#enableAppTagTracing:
3-
Invalid name for boolean property `enableAppTagTracing`. Should start with one of `has`, `can`, `should`, `is`.
42
GetterSetterNames: androidx.benchmark.junit4.PerfettoTraceRule#enableUserspaceTracing:
53
Invalid name for boolean property `enableUserspaceTracing`. Should start with one of `has`, `can`, `should`, `is`.
64

75

86
InvalidNullabilityOverride: androidx.benchmark.junit4.BenchmarkRule#apply(org.junit.runners.model.Statement, org.junit.runner.Description) parameter #0:
9-
Invalid nullability on parameter `base` in method `apply`. Parameters of overrides cannot be NonNull if the super parameter is unannotated.
7+
Invalid nullability on type org.junit.runners.model.Statement in parameter `base` in method `apply`. Parameter in method override cannot use a non-null type when the corresponding type from the super method is platform-nullness.
108
InvalidNullabilityOverride: androidx.benchmark.junit4.BenchmarkRule#apply(org.junit.runners.model.Statement, org.junit.runner.Description) parameter #1:
11-
Invalid nullability on parameter `description` in method `apply`. Parameters of overrides cannot be NonNull if the super parameter is unannotated.
9+
Invalid nullability on type org.junit.runner.Description in parameter `description` in method `apply`. Parameter in method override cannot use a non-null type when the corresponding type from the super method is platform-nullness.

0 commit comments

Comments
 (0)