Skip to content

Commit 7a434ce

Browse files
committed
Fix TOC entry to match the new formatAnnotations name.
1 parent 61d362b commit 7a434ce

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

plugin-gradle/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Spotless supports all of Gradle's built-in performance features (incremental bui
6060
- [**Quickstart**](#quickstart)
6161
- [Requirements](#requirements)
6262
- **Languages**
63-
- [Java](#java) ([google-java-format](#google-java-format), [eclipse jdt](#eclipse-jdt), [clang-format](#clang-format), [prettier](#prettier), [palantir-java-format](#palantir-java-format), [type annotations](#type-annotations))
63+
- [Java](#java) ([google-java-format](#google-java-format), [eclipse jdt](#eclipse-jdt), [clang-format](#clang-format), [prettier](#prettier), [palantir-java-format](#palantir-java-format), [formatAnnotations](#formatAnnotations))
6464
- [Groovy](#groovy) ([eclipse groovy](#eclipse-groovy))
6565
- [Kotlin](#kotlin) ([ktfmt](#ktfmt), [ktlint](#ktlint), [diktat](#diktat), [prettier](#prettier))
6666
- [Scala](#scala) ([scalafmt](#scalafmt))
@@ -219,7 +219,7 @@ spotless {
219219
```
220220

221221

222-
### Type annotations
222+
### formatAnnotations
223223

224224
Type annotations should be on the same line as the type that they qualify.
225225

plugin-maven/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ user@machine repo % mvn spotless:check
4747
- [Requirements](#requirements)
4848
- [Binding to maven phase](#binding-to-maven-phase)
4949
- **Languages**
50-
- [Java](#java) ([google-java-format](#google-java-format), [eclipse jdt](#eclipse-jdt), [prettier](#prettier), [palantir-java-format](#palantir-java-format), [type annotations](#type-annotations))
50+
- [Java](#java) ([google-java-format](#google-java-format), [eclipse jdt](#eclipse-jdt), [prettier](#prettier), [palantir-java-format](#palantir-java-format), [formatAnnotations](#formatAnnotations))
5151
- [Groovy](#groovy) ([eclipse groovy](#eclipse-groovy))
5252
- [Kotlin](#kotlin) ([ktfmt](#ktfmt), [ktlint](#ktlint), [diktat](#diktat), [prettier](#prettier))
5353
- [Scala](#scala) ([scalafmt](#scalafmt))
@@ -235,7 +235,7 @@ any other maven phase (i.e. compile) then it can be configured as below;
235235
</eclipse>
236236
```
237237

238-
### Type annotations
238+
### formatAnnotations
239239

240240
Type annotations should be on the same line as the type that they qualify.
241241

@@ -255,7 +255,7 @@ However, some tools format them incorrectly, like this:
255255
String s;
256256
```
257257

258-
To fix the incorrect formatting, add the `formatAnnotations()` rule after a Java formatter. For example:
258+
To fix the incorrect formatting, add the `formatAnnotations` rule after a Java formatter. For example:
259259

260260
```XML
261261
<googleJavaFormat />

0 commit comments

Comments
 (0)