google / google/google-java-format
Weird format in constructor with annotated args
- Linguagem predominante
- Java
- Estrelas
- 6.2k
- Forks
- 937
- Merge médio
- 6min
- PRs com merge (30d)
- 3
Descrição
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
Guia de contribuição
Avaliação
Esta issue ainda não foi avaliada.