Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Issue 2010153002: Fix lint error on int def in BidirectionalStream.java (Closed)

Created:
4 years, 7 months ago by xunjieli
Modified:
4 years, 6 months ago
Reviewers:
pauljensen
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix lint error on int def in BidirectionalStream.java BUG=615045

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -2 lines) Patch
M components/cronet/android/api/src/org/chromium/net/CronetEngine.java View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 5 (2 generated)
xunjieli
Hi Paul, I am not sure why lint would complain about the IntDef, see the ...
4 years, 7 months ago (2016-05-26 18:54:01 UTC) #2
pauljensen
Hmm. Weird. I spent some time just now trying to get this to work with ...
4 years, 6 months ago (2016-05-27 11:44:13 UTC) #3
xunjieli
4 years, 6 months ago (2016-05-27 13:23:46 UTC) #4
On 2016/05/27 11:44:13, pauljensen wrote:
> Hmm.  Weird.  I spent some time just now trying to get this to work with no
> luck.  I don't think we should remove the annotation if it's correct but lint
is
> broken.
> I see crbug.com/605296 is very similar.
> Perhaps there is a lint bug, e.g.
> https://code.google.com/p/android/issues/detail?id=182179
> Anyhow, how about adding back in the annotation, and also adding the
> corresponding one for createRequest() and then adding
> @SuppressLint("WrongConstant") at the call site sorta like jbudorick@ did in
> this CL:
> https://codereview.chromium.org/1910343005
> although more targeted.
> 
> I think we should also rope in jbudorick@ and ask him if he can debug lint to
> see what's wrong.  I don't think we want to be painting the codebase in
> suppressions due to a broken tool, or more likely I'm guessing, an incorrectly
> invoked tool.  Does this fail with gyp?

Hi Paul, this is very helpful! Thanks for digging into this. I just tried gyp,
and gyp doesn't produce this warning. This might be gn related. I will loop in
jbudorick@ and see if this is because of the lint tool. Thanks again!

Powered by Google App Engine
This is Rietveld 408576698