Skip to content

Commit 6c20790

Browse files
committed
Format more type annotations as type annotations
1 parent 49505b8 commit 6c20790

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (
2222
### Fixed
2323
* Support `ktlint` 0.48+ new rule disabling syntax ([#1456](https://github.com/diffplug/spotless/pull/1456)) fixes ([#1444](https://github.com/diffplug/spotless/issues/1444))
2424
* Fix subgroups leading catch all matcher.
25+
* Format more type annotations as type annotations [#????](https://github.com/diffplug/spotless/pull/????)
26+
2527
### Changes
2628
* Bump default version for `prettier` from `2.0.5` to `2.8.1` ([#1453](https://github.com/diffplug/spotless/pull/1453))
2729
* Bump the dev version of Gradle from `7.5.1` to `7.6` ([#1409](https://github.com/diffplug/spotless/pull/1409))

lib/src/main/java/com/diffplug/spotless/java/FormatAnnotationsStep.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ public final class FormatAnnotationsStep {
5555
"Acceleration",
5656
"ACCTop",
5757
"AinferBottom",
58+
"AinferDefaultType",
59+
"AinferParent",
60+
"AinferSibling1",
61+
"AinferSibling2",
62+
"AinferTop",
63+
"AinferImplicitAnno",
64+
"AinferSiblingWithFields",
5865
"AlwaysSafe",
5966
"Angle",
6067
"AnnoWithStringArg",
@@ -102,6 +109,7 @@ public final class FormatAnnotationsStep {
102109
"DefaultType",
103110
"degrees",
104111
"Det",
112+
"DoesNotMatchRegex",
105113
"DotSeparatedIdentifiers",
106114
"DotSeparatedIdentifiersOrPrimitiveType",
107115
"DoubleVal",

0 commit comments

Comments
 (0)