Skip to content

Releases: palantir/palantir-java-format

0.3.4

04 Dec 17:41
9e8a0c4
Compare
Choose a tag to compare
Type Description Link
Fix Stop indiscriminately stopping an inlining at method calls like SafeArg.of. #94

0.3.3

27 Nov 16:57
2fdb758
Compare
Choose a tag to compare
Type Description Link
Fix Get rid of constant error in new Intellij 193 by replacing CodeStyleManager programmatically. #51
Fix "Before commit -> Reformat code" now correctly uses the PJF formatter if it is enabled, rather than the IntelliJ default formatter. #80
Fix When inlining a level's leading docs, check that no breaks were introduced more robustly. #85

0.3.2

12 Nov 21:07
b99c1ee
Compare
Choose a tag to compare
Type Description Link
Fix Limit dotted chains for expressions starting with constructor. #71

0.3.1

12 Nov 19:35
750740b
Compare
Choose a tag to compare
Type Description Link
Improvement Limit how far dots may appear in long method chains to 80 chars.

Note that this doesn't currently apply to prefixes (such as foo.bar().baz().stream()) because prefixes are also used to group together fully qualified class names and it's a bit trickier to handle that case.
#70

0.3.0

22 Oct 16:20
bed3428
Compare
Choose a tag to compare
Type Description Link
Break Remove JavaFormatterOptions altogether from the API, the style now being baked in to be PALANTIR. #47
Improvement Expose formatSourceReflowStringsAndFixImports from the SPI, which formats a whole file returning the formatted file as a String. #47
Break Rename palantir-java-format-api to palantir-java-format-spi. #47
Break The standalone com.palantir.java-format plugin provides a formatDiff task. IntelliJ setup has been moved to a com.palantir.java-format-idea plugin. #48

0.2.8

21 Oct 21:17
9b8a331
Compare
Choose a tag to compare
Type Description Link
Fix NON-NLS comments are moved behind + tokens in string concatenations. This is a heuristic that doesn't look at what the thing before the + is, so it might produce confusing results. #45

0.2.7

21 Oct 19:34
5b16d8f
Compare
Choose a tag to compare
Type Description Link
Improvement Prefer inlining method references after whatever expression they follow. #44

0.2.6

21 Oct 18:27
5f079f5
Compare
Choose a tag to compare
Type Description Link
Improvement Stop breaking method invocations after ( except in very few particular circumstances. #37
Improvement A new FormatDiffCli class reads the output of git diff -U0 and runs the formatter on modified lines only. #39

0.2.5

18 Oct 10:30
bbe519b
Compare
Choose a tag to compare
Type Description Link
Fix Reflow long strings more thoroughly, taking into account that once a string is broken, its first chunk might fit on the starting line and thus it needs to be reflowed again. #35

0.2.4

17 Oct 18:44
c9bb828
Compare
Choose a tag to compare
Type Description Link
Improvement Allow long binary operations to wrap starting from the current line. #30