-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[Warning] Eliminated AnnotateFormatMethod warnings #7353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Warning] Eliminated AnnotateFormatMethod warnings #7353
Conversation
fd89861
to
afd6132
Compare
resources/src/main/java/org/robolectric/res/android/ResXMLParser.java
Outdated
Show resolved
Hide resolved
bc492a8
to
ac9c16b
Compare
@hellosagar Look like new commit to applying google java format generates a reasonable change lines, instead of previous multi thousands lines. |
Yes :) |
resources/src/main/java/org/robolectric/res/android/AttributeResolution10.java
Outdated
Show resolved
Hide resolved
resources/src/main/java/org/robolectric/res/android/AttributeResolution10.java
Outdated
Show resolved
Hide resolved
There are some formats don't look great, although it has passed checking. And I have wrote some comments for some wrong formats, I think. |
um.. lme check that locally on my system |
@utzcoz you are right, I little surprised how it passed in the CI but mainly AttributeResolution10.java contains a lot of weird indentation, Ive reformat it locally, pushing it again |
ac9c16b
to
373a40c
Compare
Why formatted change lines increase a lot again? |
It's not recommend to add not related formatted lines. Could you format with command in wiki? We just need add formatted lines that affected by this PR. |
Okay, lme undo this |
373a40c
to
388645e
Compare
pushed again according to the wiki, but in that |
Could you fix them manually one by one and check locally whether they can pass google format checking? |
I tried it first before pushing 😅, but it shows a google format error. |
Okay, I will check and verify it tomorrow. |
After manually, changing the indentation for
|
@hellosagar could you rebase and squash commits for this PR? I think wrong formatting are generated by wrong HEAD when using google-java-format locally. We have analyzed this problem before. Maybe you can get correct code formatting after rebasing, squashing, and running google-java-format with correct command locally again. |
388645e
to
56971fb
Compare
I've ran the formatting locally and pushed it again |
@utzcoz any update after I pushed the new commit? |
@hellosagar Please fix incorrect format problem and rebase it to latest master. |
56971fb
to
01a55d1
Compare
resources/src/main/java/org/robolectric/res/android/AttributeResolution10.java
Outdated
Show resolved
Hide resolved
@utzcoz I've added a separate commit for easy review, later I'll squash it. Please have a look at it |
0c4940f
to
2b875a8
Compare
Squashed :) |
2b875a8
to
3942174
Compare
3942174
to
049cfe2
Compare
@hellosagar Could you enable |
Hi @hoisie , because there are strange code formatting generated by google-java-format, so I leave format checking error here, and merge this PR firstly. |
Overview
Eliminated the AnnotateFormatMethod across the entire project.
Proposed Changes
Added the changes in the following files to fix the error-prone warning