google / google/google-java-format

Weird format in constructor with annotated args

Đang mở
#439 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Java
Star
6.2k
Fork
937
Merge trung bình
6 phút
Pull request đã merge (30 ngày)
3

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.