jhipster / jhipster/prettier-java

Improve formatting of method will lot of parameters and with exception

オープン
#286 コメント 12 件 リアクション 1 件 担当者 1 名 @clementdessoude が担当を希望しています GitHub で見る
area: enhancement :wrench: theme: Re-Writer
主要言語
Java
スター
1.2k
フォーク
120
平均マージ
1日 14時間
マージ済み PR(30日)
27

説明

Source:
```java
public LoggingConfiguration(@Value("${spring.application.name}") String appName,
@Value("${server.port}") String serverPort,
JHipsterProperties jHipsterProperties,
ObjectMapper mapper)
throws JsonProcessingException {
// ...
}
```

Formatted with prettier 0.4.0:
```java
public LoggingConfiguration(
@Value("${spring.application.name}") String appName,
@Value("${server.port}") String serverPort,
JHipsterProperties jHipsterProperties,
ObjectMapper mapper
)
throws JsonProcessingException {
// ...
}
```

I'm not really sure what the result should be, but the position of `)` after the last parameter is a bit strange in regards to the exception.
Maybe:
```java
public LoggingConfiguration(
@Value("${spring.application.name}") String appName,
@Value("${server.port}") String serverPort,
JHipsterProperties jHipsterProperties,
ObjectMapper mapper
) throws JsonProcessingException {
// ...
}
```

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。