Repository navigation
Moe Sync - #1159
Moe Sync#1159
Conversation
This should already be guaranteed by the getSymbolsByName method RELNOTES: n/a ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=215568677
RELNOTES: N/A ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=215593290
… methods. The isAssignable check fails against generic parameters, so limit the varargs boxing check to only happen when the parameter is actually a varargs parameter, instead of just applying the assignability check all the time. RELNOTES: Fix for how NoAllocationChecker handles generic methods. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=215760282
…ic methods: - don't propagate constraints from arguments to method results - derive inference results more like javac, to find results more often Generic method calls where actual types have type parameters can now sometimes not have an inference result, but previously those results came from propagation from arguments to results, which can in general lead to wrong results ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=215832970
RELNOTES: N/A ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=216000963
instead of scanning the try/finally and direct cases as two separate passes. Also check for re-opening the same lock, and don't move the first acquisition down to the second acquisition's release. RELNOTES: N/A ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=216059259
… warning RELNOTES: N/A ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=216106462
RELNOTES: N/A ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=216106686
RELNOTES: N/A ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=216205509
{@code
@OverRide
public void foo();
}
I can't find any way to escape an annotation within a {@code } tag. {@literal @} will be rendered exactly as written, as will @.
Perhaps the only answer is to use <pre> and manually escape any HTML entities within the code block so that {@literal @} can be used?
RELNOTES: N/A
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=216334133
A summary line is required by the style guide on any public/protected Javadocs. RELNOTES: Add Javadoc check for missing summary lines. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=216498548
RELNOTES: N/A ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=216708945
…CamelCase when making a thread local suggestion. ThreadLocal<java.text.DateFormat> is still mutable so constant casing seems wrong here. RELNOTES:Change the DateFormatConstant bug checker to rename variable to lowerCamelCase when making a thread local suggestion. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=216765882
RELNOTES: N/A ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=216826199
Also simplify the fix generation, and don't emit a suggestion if the class overrides *both* (that doesn't seem erroneous to me). RELNOTES: Fixes in OverrideThrowableToString. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=216839302
RELNOTES: N/A ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=216906670
Turns out that the crash was caused by static field imports -- they are JCFieldAccesses without a symbol. RELNOTES: N/A ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=216911238
RELNOTES: N/A ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=217119552
Per mockito/mockito#80 (comment), we (the Mockito core team where I am a member of) do not support any usages of org.mockito.internal.* To that end, we are free to change/add/remove any methods/classes/interfaces in these packages. Therefore, I propose we write an ErrorProne check that prohibits the usage of such classes, as well as gradually remove all of these imports. This should then greatly ease the process of upgrading Mockito to 2.* ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=217123327
…ugs. RELNOTES: Add a number of static analysis checks around appropriate use of java.time and org.joda.time classes - APIs that are unclear, don't do what most people expect, or are otherwise easy to trip on. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=217139686
Fixes #1141 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=217212306
RELNOTES: N/A ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=217215857
…ing. RELNOTES:N/A ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=217241134
RELNOTES: N/A ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=217286510
… as custom tags. These seem not to be elevated to being canonical tags at this point, so this seems like the right home. RELNOTES: Add java8 tags to InvalidTag. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=217290703
RELNOTES: n/a ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=217291955
….concurrent.TimeUnit RELNOTES: n/a ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=217330629
Fixes #1131 RELNOTES: N/A ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=217339215
…hecker would crash on certain methods. See test file for added regression tests with examples. RELNOTES: Fix a few issues with the MutableMethodReturnType checker where the checker would crash on certain methods. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=217370430
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=217397581
RELNOTES: Don't flag java.lang.Object in EqualsHashCode check ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=218749708
RELNOTES: N/A ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=218785837
RELNOTES: N/A ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=218786278
RELNOTES: N/A ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=218786922
RELNOTES: N/A ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=218788709
RELNOTES: N/A ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=218798373
…or multiple fixes. I don't see any coverage for this; the tests would have passed if it generated one per method. RELNOTES: N/A ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=218840357
RELNOTES: N/A ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=218861260
This occurs from confusing source positions when "int a, b;" is desugared into "int a; int b;". RELNOTES: N/A ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=218883432
RELNOTES: N/A ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=218891064
if ByteString#copyFrom is called without a receiver. RELNOTES: N/A ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=218892281
RELNOTES: N/A ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=218895376
RELNOTES: N/A ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=218895477
RELNOTES: N/A ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=218896800
…all are instantiated. RELNOTES: none ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=218939446
|
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. |
|
All of the commits from non-googlers are from PRs that have CLAs signed. |
|
A Googler has manually verified that the CLAs look good. (Googler, please make sure the reason for overriding the CLA status is clearly documented in these comments.) |
This code has been reviewed and submitted internally. Feel free to discuss on the PR and we can submit follow-up changes as necessary.
Commits:
Remove unnecessary name check
This should already be guaranteed by the getSymbolsByName method
RELNOTES: n/a
7a46409
Miscellaneous cleanups RELNOTES: N/A
97c6e51
Fix a bug in the NoAllocationChecker that occurs when calling generic methods. The isAssignable check fails against generic parameters, so limit the varargs boxing check to only happen when the parameter is actually a varargs parameter, instead of just applying the assignability check all the time.
RELNOTES: Fix for how NoAllocationChecker handles generic methods.
77d7046
Nullness inference improvements to fix results for calls to non-generic methods: - don't propagate constraints from arguments to method results - derive inference results more like javac, to find results more often
Generic method calls where actual types have type parameters can now sometimes not have an inference result, but previously those results came from propagation from arguments to results, which can in general lead to wrong results
4ab41fb
Add a regression test for b/112275411
RELNOTES: N/A
1d92ce5
Interleave scanning for closed locks in LockNotBeforeTry
instead of scanning the try/finally and direct cases as two separate
passes. Also check for re-opening the same lock, and don't move the
first acquisition down to the second acquisition's release.
RELNOTES: N/A
a32b624
Add parameter names in comments to fix ArgumentSelectionDefectChecker warning
RELNOTES: N/A
411abde
Add a regression test for b/116048042 RELNOTES: N/A
86ce344
Suppress EqualsGetClass in Bindings.Key
RELNOTES: N/A
c0240d1
Avoid suggesting a fix for @annotations within {@code } tags: {@code @OverRide public void foo(); }
I can't find any way to escape an annotation within a {@code } tag. {@literal @} will be rendered exactly as written, as will @.
Perhaps the only answer is to use
and manually escape any HTML entities within the code block so that {@literal @} can be used?
RELNOTES: N/A
2bca96f6422be4f1b9848cafb63adfa7f9027020
Add a pattern for Javadocs missing a summary line.
A summary line is required by the style guide on any public/protected Javadocs.
RELNOTES: Add Javadoc check for missing summary lines.
73002d79c78b4db45ceed26dbc1b46f6ec50d2e2
Update example version numbers
RELNOTES: N/A
00f1937eabb5b9f18939d9fca51a5a1bf4bd65c7
Change the DateFormatConstant bug checker to rename variable to lowerCamelCase when making a thread local suggestion.
ThreadLocal<java.text.DateFormat> is still mutable so constant casing seems wrong here.
RELNOTES:Change the DateFormatConstant bug checker to rename variable to lowerCamelCase when making a thread local suggestion.
02082476dd6091318102cfcc9dddfa35227896db
Change the semantics of the flags in ProtoFieldNullComparison.
RELNOTES: N/A
4bd8da92328918b9eb4f8b6aa020a729c43692c0
Make the type check in OverrideThrowableToString more robust.
Also simplify the fix generation, and don't emit a suggestion if the class overrides both (that doesn't seem erroneous to me).
RELNOTES: Fixes in OverrideThrowableToString.
a8ba6a97651c9b9a9f8e2647f2970d49f9a5a62a
Remove requireNonNull in LockNotBeforeTry.
RELNOTES: N/A
72ed919e0968cc9c3bb4bfb35016ec044967ac41
Fix NullPointerExceptions in Nullable Dereference. Fixes #1138.
Turns out that the crash was caused by static field imports -- they are JCFieldAccesses without a symbol.
RELNOTES: N/A
c15f7c546626709fd8945c219b097c909e7922f9
Add @contact and @team to KNOWN_OTHER_TAGS.
RELNOTES: N/A
554612a45816f280691e227e7aa74ef3c6f9ecb8
Implement ErrorProne checker to disallow usage of org.mockito.internal.*
Per mockito/mockito#80 (comment), we
(the Mockito core team where I am a member of) do not support any usages of
org.mockito.internal.* To that end, we are free to change/add/remove any
methods/classes/interfaces in these packages.
Therefore, I propose we write an ErrorProne check that prohibits the usage
of such classes, as well as gradually remove all of these imports. This
should then greatly ease the process of upgrading Mockito to 2.*
fed4399b344a474ee2749497af760d9592fb4622
Open-source a number of checks related to dealing with time-related bugs.
RELNOTES: Add a number of static analysis checks around appropriate
use of java.time and org.joda.time classes - APIs that are unclear,
don't do what most people expect, or are otherwise easy to trip on.
9f0513c081aa5cfaffe16e5a1e49a42364923592
Document the -XepOpt:MissingOverride:IgnoreInterfaceOverrides option
Fixes #1141
175069961b8dc9521f5b37f962dfa1b09968e9c9
Miscellaneous cleanups RELNOTES: N/A
4206bfe5150f72518fcfb8c3636e67b23c855353
Add assertThrows fix to MissingFail, using logic from TryFailRefactoring.
RELNOTES:N/A
30957a8fdea7bc398897ba35d0b214dd9bc74cc3
Add MEMBER_REFERENCE to switch of Kinds not requiring parens.
RELNOTES: N/A
ca4dc2cdeb81e0c07ebd0bbfa85d8016046a1337
Pull out common tags in InvalidTag, and add apiNote/implSpec/implNote as custom tags.
These seem not to be elevated to being canonical tags at this point, so this seems like the right home.
RELNOTES: Add java8 tags to InvalidTag.
6dfbd12acb19d575b9ed109a133fdd12b3b34224
Fix incorrect @throws documentation on Description.Builder classes.
RELNOTES: n/a
91041f662e2f7502258e611fed62d78062c393a2
Fix crash in TimeUnitConversionChecker when run directly on java.util.concurrent.TimeUnit
RELNOTES: n/a
2eb72f4d278c21752233d33a13e37913f2751843
Don't crash when @DoNotCall isn't on the classpath Fixes #1131 RELNOTES: N/A
9a3b2382e6f45737666b45f4ca4d6d075115d775
Fix a few issues with the MutableMethodReturnType checker where the checker would crash on certain methods.
See test file for added regression tests with examples.
RELNOTES: Fix a few issues with the MutableMethodReturnType checker where the checker would crash on certain methods.
6019e60957d32d893da7fe2bb3472315d42c8870
Fix typo to unblock documentation generation job.
3db44776a07d1ac0884d63eafcf9816c05825059
Update docs for @Matches to say that it should _only_ go on the @BeforeTemplate.
RELNOTES: update @Matches docs
aa8a4769649db741984ba035a08643733a722d2f
Add some sanity checks around source offsets in ParameterName check
Fixes #1135
RELNOTES: none
1a86e9919c488bb503515ed89b8f3762b73550f0
First attempt at a new treatise on why getClass() in equals() is wrong wrong wrong.
Fixes #1144
1b44e51150e170dfbe8fb32ccc3642a264439c73
Include the typeStr in the exception message thrown by VisitorState.getTypeFromString()
RELNOTES: Include the typeStr in the exception message thrown by VisitorState.getTypeFromString()
8e3e5a5eb0d67571c20ea6abc332fb3262f76b56
Fix false positives for JUnit's Theories runner. Treat @Theory and any other JUnit annotations as test annotations.
RELNOTES: N/A
31e4da3aecccdb377222f873c55a21591c5011a5
Add a pattern for unescaped entities in Javadocs, as well as generic type parameters.
We regex match for stuff that looks a bit like Type<A, B>. If it's inside a