Status Update
Comments
ry...@intune.corp-partner.google.com <ry...@intune.corp-partner.google.com> #2
This looks like a bug in the lint detector. The code checks if the method has no operations in the method body. It seems like this check results in a false positive for interface methods.
This bug is difficult to ignore because SuppressLint is ignored by consuming apps. The only workaround appears to be to suppress using a regex match in lint.xml
ha...@google.com <ha...@google.com>
tn...@google.com <tn...@google.com>
tn...@google.com <tn...@google.com> #3
Fixed by
(Note that there are two X509 checks; one which complains if it looks like these methods aren't overridden, and that's the bug fixed here. There's a separate check which discourages you from implementing this interface at all since it's risky/errorprone, and that check is unaffected.)
da...@robinhood.com <da...@robinhood.com> #4
We ran into this recently with
Description
DESCRIBE THE ISSUE IN DETAIL:
STEPS TO REPRODUCE: 1.Create an interface that extends X509TrustManager
EXPECTED: lint should pass ACTUAL: lint flags ExtendedX509TrustManager interface for not implementing checkServerTrusted or checkClientTrusted even though it is just and interface. The classes that fully implement the interface are not flagged (as expected).
ATTACH SCREENSHOTS/RECORDINGS OF THE ISSUE
ATTACH LOG FILES (Select Help > Show Log in Files, or Show Log in Finder on a Mac)
IMPORTANT: Please readhttps://developer.android.com/studio/report-bugs.html carefully and supply
all required information.
Studio Build: Version of Gradle Plugin: Version of Gradle: Version of Java: OS: