Skip to content

Commit 20d2e15

Browse files
committed
small bug fix
1 parent 7b633b8 commit 20d2e15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ktlint/style-rules/src/main/kotlin/software/aws/ktlint/rules/DeprecatedUntilVersionRule.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class DeprecatedUntilVersionRule : Rule(RuleId("$RULE_SET:deprecated-until-versi
2121
) {
2222
if (node.elementType == ElementType.MODIFIER_LIST) {
2323
val annotations = node.getChildren(null).filter { it.elementType == ElementType.ANNOTATION_ENTRY }
24-
val deprecated = annotations.any { it.text.startsWith("@Deprecated") }
24+
val deprecated = annotations.any { it.text.startsWith("@Deprecated") && !it.text.contains("@DeprecatedUntilVersion") }
2525
val deprecatedUntilVersion = annotations.any { it.text.startsWith("@DeprecatedUntilVersion") }
2626

2727
if (deprecatedUntilVersion && !deprecated) {

0 commit comments

Comments
 (0)