jhipster / jhipster/prettier-java
Comment section moved between two import declarations
- Lingua principale
- Java
- Stelle
- 1.2k
- Fork
- 120
- Merge medio
- 1g 14h
- PR unite (30g)
- 27
Descrizione
**Prettier-Java 0.7.0**
Launched through prettier-maven-plugin 0.7.0 without any option.
In the following case, the comment section is moved between two import lines.
This bugs depends on import declaration order. If "com.me.Util" is declared first, the generated file is OK.
**Input:**
```java
package org.mypackage;
/*-
*/
import java.lang.Util;
import java.util.Map;
import com.me.Util;
public class Prettier {}
```
**Output:**
```java
package org.mypackage;
import com.me.Util;
/*-
*/
import java.lang.Util;
import java.util.Map;
public class Prettier {}
```
**Expected behavior:**
```java
package org.mypackage;
/*-
*/
import java.lang.Util;
import java.util.Map;
import com.me.Util;
public class Prettier {}
```
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.