-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure newlines are added before record/enum/annotation types
Update `JavadocLineBreakPreparator` to ensure that two spaces are added before `@param` tags on record, enum and annotation types. Fixes gh-346
- Loading branch information
Showing
9 changed files
with
78 additions
and
17 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
...vaformat-formatter-tests/src/test/resources/FormatterTests-expected/record-with-param.txt
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,16 @@ | ||
package simple; | ||
|
||
/** | ||
* Settings that can be applied when creating a {@link ClientHttpRequestFactory}. | ||
* | ||
* @param connectTimeout the connect timeout | ||
* @param readTimeout the read timeout | ||
* @param bufferRequestBody if request body buffering is used | ||
* @author Andy Wilkinson | ||
* @author Phillip Webb | ||
* @since 3.0.0 | ||
* @see ClientHttpRequestFactories | ||
*/ | ||
public record Simple(String name) { | ||
|
||
} |
15 changes: 15 additions & 0 deletions
15
...t/spring-javaformat-formatter-tests/src/test/resources/FormatterTests-expected/simple.txt
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,15 @@ | ||
package simple; | ||
|
||
/** | ||
* Simple. | ||
* | ||
* @author Phillip Webb | ||
* @since 1.0.0 | ||
*/ | ||
public class Simple { | ||
|
||
public static void main(String[] args) throws Exception { | ||
// FIXME | ||
} | ||
|
||
} |
16 changes: 16 additions & 0 deletions
16
...ormat/spring-javaformat-formatter-tests/src/test/resources/expected/record-with-param.txt
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,16 @@ | ||
package simple; | ||
|
||
/** | ||
* Settings that can be applied when creating a {@link ClientHttpRequestFactory}. | ||
* | ||
* @param connectTimeout the connect timeout | ||
* @param readTimeout the read timeout | ||
* @param bufferRequestBody if request body buffering is used | ||
* @author Andy Wilkinson | ||
* @author Phillip Webb | ||
* @since 3.0.0 | ||
* @see ClientHttpRequestFactories | ||
*/ | ||
public record Simple(String name) { | ||
|
||
} |
15 changes: 15 additions & 0 deletions
15
...aformat/spring-javaformat-formatter-tests/src/test/resources/source/record-with-param.txt
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,15 @@ | ||
package simple; | ||
|
||
/** | ||
* Settings that can be applied when creating a {@link ClientHttpRequestFactory}. | ||
* @param connectTimeout the connect timeout | ||
* @param readTimeout the read timeout | ||
* @param bufferRequestBody if request body buffering is used | ||
* @author Andy Wilkinson | ||
* @author Phillip Webb | ||
* @since 3.0.0 | ||
* @see ClientHttpRequestFactories | ||
*/ | ||
public record Simple(String name) { | ||
|
||
} |
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 |
---|---|---|
|
@@ -2,7 +2,6 @@ package simple; | |
|
||
/** | ||
* Simple. | ||
* | ||
* @author Phillip Webb | ||
* @since 1.0.0 | ||
*/ | ||
|
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
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