Android: Suppress lint warnings in JNI generator header
We are doing some unconventional stuff in jni_generator_helper.h in order to integrate the Chromium script with WebRTC. Long term, we will improve this and remove the lint suppressions. Bug: webrtc:8278 Change-Id: I5d6f0017c4deab4586844647f7cd657641fecbab Reviewed-on: https://webrtc-review.googlesource.com/3780 Reviewed-by: Sami Kalliomäki <sakal@webrtc.org> Commit-Queue: Magnus Jedvert <magjed@webrtc.org> Cr-Commit-Position: refs/heads/master@{#19989}
This commit is contained in:
parent
a354e269bf
commit
4b537fd064
@ -29,7 +29,7 @@ inline void CheckException(JNIEnv* env) {
|
||||
}
|
||||
} // namespace jni_generator
|
||||
|
||||
namespace {
|
||||
namespace { // NOLINT(build/namespaces)
|
||||
// Bypass JniIntWrapper.
|
||||
// TODO(magjed): Start using Chromium's JniIntWrapper.
|
||||
typedef jint JniIntWrapper;
|
||||
@ -58,7 +58,7 @@ class JavaRef {
|
||||
T obj() const { return obj_; }
|
||||
|
||||
// Implicit on purpose.
|
||||
JavaRef(const T& obj) : obj_(obj) {}
|
||||
JavaRef(const T& obj) : obj_(obj) {} // NOLINT(runtime/explicit)
|
||||
operator T() const { return obj_; }
|
||||
|
||||
private:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user