Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unify breaks before expressions ending in toBuilder and stream
Roll forward of 8b28725 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=239623724
- Loading branch information
Showing
3 changed files
with
40 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
core/src/test/resources/com/google/googlejavaformat/java/testdata/B124394008.input
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,8 @@ | |||
class B124394008 { | |||
{ | |||
LocalReviewProto.Builder newReview = | |||
readProfileResponse.flatMap(authorExtractor::extract) | |||
.map(luReviewsExtractor::toLocalReviewProto) | |||
.orElse(LocalReviewProto.getDefaultInstance()).toBuilder(); | |||
} | |||
} |
10 changes: 10 additions & 0 deletions
10
core/src/test/resources/com/google/googlejavaformat/java/testdata/B124394008.output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,10 @@ | |||
class B124394008 { | |||
{ | |||
LocalReviewProto.Builder newReview = | |||
readProfileResponse | |||
.flatMap(authorExtractor::extract) | |||
.map(luReviewsExtractor::toLocalReviewProto) | |||
.orElse(LocalReviewProto.getDefaultInstance()) | |||
.toBuilder(); | |||
} | |||
} |