google / google/google-java-format
Weird format in constructor with annotated args
- Vorherrschende Sprache
- Java
- Sterne
- 6.2k
- Forks
- 937
- Ø Merge
- 6 Min.
- Gemergte PRs (30 T.)
- 3
Beschreibung
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
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.