google / google/google-java-format

Inconsistent treatment of **/ at end of Javadoc

Offen
#67 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Java
Sterne
6.2k
Forks
937
Ø Merge
6 Min.
Gemergte PRs (30 T.)
3

Beschreibung

After formatting, this:

```
public class DoubleTrailingAsterisk {

/**
* Here is a multi-line comment that ends with a double asterisk.
**/
public void m1() {}

/** Here is a single-line comment that ends with a double asterisk. **/
public void m2() {}
}
```

becomes this:

```
public class DoubleTrailingAsterisk {

/** Here is a multi-line comment that ends with a double asterisk. */
public void m1() {}

/** Here is a single-line comment that ends with a double asterisk. * */
public void m2() {}
}
```

where the second Javadoc comment contains an extra "*".

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.