jhipster / jhipster/prettier-java
Improve formatting of method will lot of parameters and with exception
- Vorherrschende Sprache
- Java
- Sterne
- 1.2k
- Forks
- 120
- Ø Merge
- 1 T. 14 Std.
- Gemergte PRs (30 T.)
- 27
Beschreibung
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 {
// ...
}
```
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.