Skip to content
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

MOE Sync 2019-12-18 #1456

Merged
merged 3 commits into from
Dec 18, 2019
Merged

MOE Sync 2019-12-18 #1456

merged 3 commits into from
Dec 18, 2019

Conversation

kluever
Copy link
Member

@kluever kluever commented Dec 18, 2019

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:

ExtendsAutoValue: walk up the tree to see if an enclosing class is @generated


e05fa7a


Fix #1454: Matchers.booleanConstant(true) doesn't match Boolean.FALSE

Fixes #1455

3ad1714


ConstructorInvokesOverridable: fix some false positives

Do not match methods of anonymous classes. Those methods can't be
overriden because those classes can't be extended.

Do not match methods of certain enum classes. It is not possible to
override the methods of an enum class except in the (anonymous) class
bodies of its enum constants. If all the enum constants lack class
bodies, then the enum class's methods can't be overridden.

Fix cases where the bug pattern would become confused about the receiver
of unqualified or this-qualified method invocations, and where it would
wrongly conclude that the method belonged to the instance under
construction and issue a warning.

Support @SuppressWarnings("ConstructorInvokesOverridable") on more

Fixes #1449

41132da

awturner and others added 3 commits December 18, 2019 11:37
Boolean.FALSE

Fixes #1455

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=286070502
Do not match methods of anonymous classes.  Those methods can't be
overriden because those classes can't be extended.

Do not match methods of certain enum classes.  It is not possible to
override the methods of an enum class except in the (anonymous) class
bodies of its enum constants.  If all the enum constants lack class
bodies, then the enum class's methods can't be overridden.

Fix cases where the bug pattern would become confused about the receiver
of unqualified or this-qualified method invocations, and where it would
wrongly conclude that the method belonged to the instance under
construction and issue a warning.

Support @SuppressWarnings("ConstructorInvokesOverridable") on more

Fixes #1449

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=286077091
@googlebot
Copy link
Collaborator

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@googlebot
Copy link
Collaborator

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.)

ℹ️ Googlers: Go here for more info.

@kluever kluever merged commit 1003721 into master Dec 18, 2019
@kluever kluever deleted the sync-master-2019/12/18 branch December 18, 2019 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Matchers.booleanConstant(true) should _not_ match Boolean.FALSE
5 participants