mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-09 09:38:33 +00:00
Update Lint suppressions.
This commit is contained in:
parent
12c2b53f7c
commit
f14a71a076
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
<issue
|
<issue
|
||||||
id="LintError"
|
id="LintError"
|
||||||
message="Unexpected failure during lint analysis of JobManager.java (this is a bug in lint or one of the libraries it depends on)

Stack: `NullPointerException:ClsFileImpl.getMirror(ClsFileImpl.java:343)←ClsElementImpl.getMirror(ClsElementImpl.java:159)←ClsElementImpl.getText(ClsElementImpl.java:202)←InferenceSession.argConstraints(InferenceSession.java:1817)←InferenceSession.isFunctionalTypeMoreSpecific(InferenceSession.java:1748)←InferenceSession.isFunctionalTypeMoreSpecificOnExpression(InferenceSession.java:1729)←JavaMethodsConflictResolver.isFunctionalTypeMoreSpecific(JavaMethodsConflictResolver.java:779)←JavaMethodsConflictResolver.isTypeMoreSpecific(JavaMethodsConflictResolver.java:673)`

You can set environment variable `LINT_PRINT_STACKTRACE=true` to dump a full stacktrace to stdout.">
|
message="Unexpected failure during lint analysis of JobManager.java (this is a bug in lint or one of the libraries it depends on)

Stack: `NullPointerException:ClsFileImpl.getMirror(ClsFileImpl.java:342)←ClsElementImpl.getMirror(ClsElementImpl.java:159)←ClsElementImpl.getText(ClsElementImpl.java:202)←InferenceSession.argConstraints(InferenceSession.java:1817)←InferenceSession.isFunctionalTypeMoreSpecific(InferenceSession.java:1748)←InferenceSession.isFunctionalTypeMoreSpecificOnExpression(InferenceSession.java:1729)←JavaMethodsConflictResolver.isFunctionalTypeMoreSpecific(JavaMethodsConflictResolver.java:776)←JavaMethodsConflictResolver.isTypeMoreSpecific(JavaMethodsConflictResolver.java:670)`

You can set environment variable `LINT_PRINT_STACKTRACE=true` to dump a full stacktrace to stdout.">
|
||||||
<location
|
<location
|
||||||
file="src/org/thoughtcrime/securesms/jobmanager/JobManager.java"/>
|
file="src/org/thoughtcrime/securesms/jobmanager/JobManager.java"/>
|
||||||
</issue>
|
</issue>
|
||||||
|
4
lint.xml
4
lint.xml
@ -13,4 +13,8 @@
|
|||||||
|
|
||||||
<issue id="CanvasSize" severity="error" />
|
<issue id="CanvasSize" severity="error" />
|
||||||
|
|
||||||
|
<issue id="RestrictedApi" severity="error">
|
||||||
|
<ignore path="src/org/thoughtcrime/securesms/mediasend/camerax/VideoCapture.java" />
|
||||||
|
</issue>
|
||||||
|
|
||||||
</lint>
|
</lint>
|
||||||
|
@ -54,9 +54,9 @@ public abstract class CorrectedPreferenceFragment extends PreferenceFragmentComp
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@SuppressLint("RestrictedApi")
|
||||||
protected RecyclerView.Adapter onCreateAdapter(PreferenceScreen preferenceScreen) {
|
protected RecyclerView.Adapter onCreateAdapter(PreferenceScreen preferenceScreen) {
|
||||||
return new PreferenceGroupAdapter(preferenceScreen) {
|
return new PreferenceGroupAdapter(preferenceScreen) {
|
||||||
@SuppressLint("RestrictedApi")
|
|
||||||
@Override
|
@Override
|
||||||
public void onBindViewHolder(PreferenceViewHolder holder, int position) {
|
public void onBindViewHolder(PreferenceViewHolder holder, int position) {
|
||||||
super.onBindViewHolder(holder, position);
|
super.onBindViewHolder(holder, position);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user