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 2020-01-06 #1465

Merged
merged 14 commits into from
Jan 6, 2020
Merged

MOE Sync 2020-01-06 #1465

merged 14 commits into from
Jan 6, 2020

Conversation

netdpb
Copy link
Member

@netdpb netdpb commented Jan 6, 2020

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:

Add a helper to ASTHelpers for checking whether a symbol is {effectively,} final.

This seems common and fiddly enough to be useful.

cbf5ec7


Stop renameMethodInvocation from renaming any matching arguments within its blast radius.

Fixes external #1451

4aa8c19


Do some minor refactoring in DurationToLongTimeUnit.

e518b4e


InterruptedExceptionSwallowed: handle rethrown exceptions properly.

Fixes external #1428. The test is from the linked PR, but the implementation is not.

60de2dc


Inspect TimeUnit.convert(Duration) for mismatches.

RELNOTES: DurationToLongTimeUnit now finds mismatches when using
something(TimeUnit.FOO.convert(Duration), NOT_FOO);

3eb5709


Reorder some Optional handling

This avoids doing a little work for non-class symbols.

4213c4a


Improve handling of AutoCloseable

f3fee80


TryFailRefactoring: don't NPE if there's no enclosing method.

Fixes external #1447

7040b51


AbstractReturnValueIgnored: avoid recreating Matchers for each call; do some memoizing.

b3e4fae


StronglyTypeDuration: generalise to Instant, Joda types, and proto time.

3440c9a


Fix some Javadoc in StaticImports.

Remove an unnecessary labelled loop. Reformat some tests a little.

d97e683


Disable PreferJavaTimeOverload by default in Error Prone.

RELNOTES: PreferJavaTimeOverload is off by default.

08c4793


InterruptedExceptionSwallowed: handle try with resources better.

b7f2a6e


Fix method reference void check.

I fat-fingered this in the earlier commit. Let's have a test, too.

e7c3e3c

graememorgan and others added 14 commits January 6, 2020 12:28
…ely,} final.

This seems common and fiddly enough to be useful.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=287826152
…in its blast radius.

Fixes external #1451

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=287828341
RELNOTES=n/a

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=287838890
Fixes external [#1428](#1428). The test is from the linked PR, but the implementation is not.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=287865214
RELNOTES: DurationToLongTimeUnit now finds mismatches when using
something(TimeUnit.FOO.convert(Duration), NOT_FOO);

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=287881740
This avoids doing a little work for non-class symbols.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=287885724
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=287887267
Fixes external #1447

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=287975763
…do some memoizing.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=287976155
Remove an unnecessary labelled loop. Reformat some tests a little.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=287979486
RELNOTES: PreferJavaTimeOverload is off by default.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=288028847
I fat-fingered this in the earlier commit. Let's have a test, too.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=288298756
@netdpb netdpb merged commit d26bd71 into master Jan 6, 2020
@netdpb netdpb deleted the sync-master-2020/01/06 branch January 6, 2020 19:22
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.

5 participants