google / google/google-java-format
Wrong indentation on if-then with comments
Đang mở
- 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ả
Comments at the end of this `if` makes the `then` block to not get indented.
```
if (prd.source()
.isPresent()) // exclude generated productions like casts
prd = null;
```

Line 331. IntelliJ reports this as well.
I think the problem comes from the if condition that got split into two lines. If I move the comment to a separate line, then indentation works as expected.
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.