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:
Magnus Jedvert 2017-09-26 17:39:34 +02:00 committed by Commit Bot
parent a354e269bf
commit 4b537fd064

View File

@ -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: