Clean up NewApi lint suppressions

Remove all @SuppressLint("NewApi") for API levels below 23.
Switch @SuppressLint("NewApi") to @RequiresApi for API levels above 23.

Bug: 1282288
Change-Id: Ibc15eb2f434bd85f594c214e67e4d0f8411b436f
Commit-Queue: Bo Liu <>
Reviewed-by: Bo Liu <>
Auto-Submit: Neden Wang <>
Cr-Commit-Position: refs/heads/main@{#1003936}
GitOrigin-RevId: 56815c187471b01b99d622d8db5014484591cd22
2 files changed
tree: 36baad29f0c1ba2744d14bceb8a173760f40c66c
  1. java/


This folder contains a shim layer between the public frameworks APIs (android.webkit.*) and WebView's implementation, and allows them to (mostly) not directly depend on each other.

Folder Dependencies

//android_webview/java/ must not depend on this directory.

See Also