```public void clearView(@NotNull RecyclerView rec...
# android
m
Copy code
public void clearView(@NotNull RecyclerView recyclerView, @NotNull ViewHolder viewHolder) {
      Intrinsics.checkParameterIsNotNull(recyclerView, "recyclerView");
      Intrinsics.checkParameterIsNotNull(viewHolder, "viewHolder");
      super.clearView(recyclerView, viewHolder);
      ...
   }
t
Because
clearView
parameters are annotated with
@NonNull
, the Kotlin compiler overrides then as non-null. For Java interop, any function that can be called from Java code is protected by those
intrinsics
checks. Maybe you could file a bug for that AndroidX library, as the non-null constract is violated. As a workaround, try setting those parameters as nullable in Kotlin: this should remove the intrinsics checks.