google / google/google-java-format
Weird format in constructor with annotated args
- 主要言語
- Java
- スター
- 6.2k
- フォーク
- 937
- 平均マージ
- 6分
- マージ済み PR(30日)
- 3
説明
Hello!
I'm working on a Spring Batch application using IntelliJ IDEA 2019.3.3 CE and I noticed a "weird" format using google-java-format 1.7.
Code before gjf:
```
@Autowired
public AllineamentoTasklet(
final @NonNull StoreRestRepository storeRepository,
final @NonNull AllineamentoService allineamentoService,
final @NonNull @Value("${allineamento-app.store-types}") List storeTypes,
final @NonNull @Value("${allineamento-app.skippable-exceptions}") List> skippableExceptions) {
..
..
}
// @NonNull is lombok's
```
Code after gjf:
```
@Autowired
public AllineamentoTasklet(
final @NonNull StoreRestRepository storeRepository,
final @NonNull AllineamentoService allineamentoService,
final @NonNull @Value("${allineamento-app.store-types}") List storeTypes,
final @NonNull @Value("${allineamento-app.skippable-exceptions}") List<
Class>
skippableExceptions) {
..
..
}
```
Is this the expected result?
Thank you
コントリビューションガイド
評価
この issue はまだ評価されていません。