This CL attempts to annotate accesses on >16 API levels using as small scopes as possible. The TargetApi notations mean "yes, I know I'm accessing a higher API and I take responsibility for gating the call on Android API level". The Encoder/Decoder classes are annotated on the whole class, but they're only accessed through JNI; we should annotate on method level otherwise and preferably on private methods. This patch also fixes some compiler-level deprecation warnings (i.e. -Xlint:deprecation), but probably not all of them. BUG=webrtc:5063 R=henrika@webrtc.org, kjellander@webrtc.org, magjed@webrtc.org Review URL: https://codereview.webrtc.org/1412673008 . Cr-Commit-Position: refs/heads/master@{#10624}
24 lines
988 B
XML
24 lines
988 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<lint>
|
|
<!-- These lint settings is for the Android linter that gets run by
|
|
lint_action.gypi on compile of WebRTC java code. All WebRTC java code
|
|
should lint cleanly for the issues below. -->
|
|
<!-- TODO(phoglund): make work with suppress.py or remove printout referring
|
|
to suppress.py. -->
|
|
<issue id="NewApi"></issue>
|
|
|
|
<issue id="Locale" severity="ignore"/>
|
|
<issue id="SdCardPath" severity="ignore"/>
|
|
<issue id="UseValueOf" severity="ignore"/>
|
|
<issue id="InlinedApi" severity="ignore"/>
|
|
<issue id="DefaultLocale" severity="ignore"/>
|
|
<issue id="Assert" severity="ignore"/>
|
|
<issue id="UseSparseArrays" severity="ignore"/>
|
|
|
|
<!-- These are just from the dummy AndroidManifest.xml we use for linting.
|
|
It's in the same directory as this file. -->
|
|
<issue id="MissingApplicationIcon" severity="ignore"/>
|
|
<issue id="AllowBackup" severity="ignore"/>
|
|
<issue id="MissingVersion" severity="ignore"/>
|
|
</lint>
|