Skip to content

Commit 3c41f45

Browse files
committed
Apply requested changes
1 parent 296289d commit 3c41f45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scala3doc/src/dotty/dokka/tasty/BasicSupport.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ trait BasicSupport:
4646

4747
def isDeprecated(): Option[Annotation] =
4848
sym.annotations.find { a =>
49-
a.symbol.packageName == "scala" && a.symbol.className.fold(false)(_ == "deprecated") ||
50-
a.symbol.packageName == "java.lang" && a.symbol.className.fold(false)(_ == "Deprecated")
49+
a.symbol.packageName == "scala" && a.symbol.className.contains("deprecated") ||
50+
a.symbol.packageName == "java.lang" && a.symbol.className.contains("Deprecated")
5151
}.map(parseAnnotation)
5252

5353
def isLeftAssoc: Boolean = !sym.name.endsWith(":")

0 commit comments

Comments
 (0)