-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improvement: palantir-java-format now reflows strings (#982)
For users who opted into palantir-java-format, we now reflow strings and reorder imports.
- Loading branch information
1 parent
c2d7979
commit 81d346a
Showing
342 changed files
with
33 additions
and
11,138 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
type: improvement | ||
improvement: | ||
description: For users who opted into palantir-java-format, we now reflow strings | ||
and reorder imports. | ||
links: | ||
- https://github.com/palantir/gradle-baseline/pull/982 |
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions
8
.../src/test/resources/com/palantir/baseline/eclipse-formatter-expected/StringReflowing.java
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
class StringReflowing { | ||
byte[] bytes = | ||
("one long incredibly unbroken sentence moving from topic to topic so that no-one had a chance to interrupt at all") | ||
.getBytes(); | ||
|
||
String foo = callRandomMethod( | ||
"one long incredibly unbroken sentence moving from topic to topic so that no-one had a chance to interrupt at all"); | ||
} |
6 changes: 6 additions & 0 deletions
6
...-baseline-java/src/test/resources/com/palantir/baseline/formatter-in/StringReflowing.java
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class StringReflowing { | ||
byte[] bytes = | ||
("one long incredibly unbroken sentence moving from topic to topic so that no-one had a chance to interrupt at all").getBytes(); | ||
|
||
String foo = callRandomMethod("one long incredibly unbroken sentence moving from topic to topic so that no-one had a chance to interrupt at all"); | ||
} |
Oops, something went wrong.