google / google/google-java-format

google-java-format-eclipse-plugin-1.11.0.jar does not format the same as command line

Ouverte
#642 3 commentaires 2 réactions 0 personnes assignées Voir sur GitHub
Eclipse
Langage dominant
Java
Étoiles
6.2k
Forks
937
Merge moyen
6 min
PR mergées (30 j)
3

Description

Here is a test:

```
package some.test;

public class Test {
String myLongString =
"The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.";
}

```
Eclipse formats it just as above. google-java-format-1.11.0-all-deps.jar on the comamnd line formats it as follows:

```
package some.test;

public class Test {
String myLongString =
"The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog."
+ " The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy"
+ " dog.";
}

```

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.