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

Excavator: Upgrades Baseline to the latest version #1066

Closed
wants to merge 1 commit into from

Conversation

svc-excavator-bot
Copy link
Collaborator

@svc-excavator-bot svc-excavator-bot commented Nov 22, 2019

excavator is a bot for automating changes across repositories.

Changes produced by the roomba/latest-baseline-oss check.

Release Notes

2.35.0

Type Description Link
Improvement Refaster rule to remove unnecessary supplier creation #1059
Improvement Add Refaster rule to convert Stream.of() -> Stream.empty() #1061

2.35.1

Type Description Link
Fix Revert "Refaster rule to remove unnecessary supplier creation (#1059)"
The refaster rule breaks the common pattern:
Suppliers.memoize(supplier::get).
#1063

2.35.2

Type Description Link
Fix Allow declaring that conversion to palantir-java-format has been started, which ensures that conflicting checkstyle rules are removed. #1064

2.36.0

Type Description Link
Fix Replace refaster StreamEmpty with error prone StreamOfEmpty to allow refactors to retain type arguments. #1068
Improvement RedundantMethodReference check to avoid unnecessary method references #1069
Improvement PreferAssertj iterable-map fix retains map type parameters #1071

2.37.0

Type Description Link
Improvement refaster will automatically fix up assertions between primitives (a == b) to provide better error messages #1078
Improvement Error prone AssertjPrimitiveComparison for primitive comparisons

Prefer using AssertJ fluent comparisons over logic in an assertThat
statement for better failure output. assertThat(a == b).isTrue()
failures report 'expected true' where assertThat(a).isEqualTo(b)
provides the expected and actual values.
#1079

To enable or disable this check, please contact the maintainers of Excavator.

ASTHelpers.isSameType(type, state.getTypeFromString("java.lang.String"), state))
.map(ignored -> Stream.<String>of())
.filter(type -> ASTHelpers.isSameType(type, state.getTypeFromString("java.lang.String"), state))
.map(ignored -> Stream.empty())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does adding a Stream.<String>empty() help here?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if we remove the refaster rule in favor of an error-prone rule? They're a lot more precise, and afaict cover all cases.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed by #1068

@svc-excavator-bot svc-excavator-bot force-pushed the roomba/latest-baseline-oss branch from 1f9ec85 to 25ab15d Compare November 27, 2019 21:00
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.

3 participants