Skip to content

Commit fb2afee

Browse files
committed
Workaround warining of unchecked outer references
The outer reference in this type test cannot be checked at run time
1 parent 6858abc commit fb2afee

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

doc-tool/src/dotty/tools/dottydoc/model/comment/CommentParser.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ trait CommentParser extends util.MemberLookup {
219219
def name: String
220220
}
221221

222-
private final case class SimpleTagKey(name: String) extends TagKey
223-
private final case class SymbolTagKey(name: String, symbol: String) extends TagKey
222+
private /*final*/ case class SimpleTagKey(name: String) extends TagKey
223+
private /*final*/ case class SymbolTagKey(name: String, symbol: String) extends TagKey
224224

225225
/** Something that should not have happened, happened, and Scaladoc should exit. */
226226
private def oops(msg: String): Nothing =

doc-tool/src/dotty/tools/dottydoc/staticsite/ResourceFinder.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ trait ResourceFinder {
66
/** If, for some reason, the supplied default files cannot be found - this
77
* exception will be thrown in `layouts`.
88
*/
9-
final case class ResourceNotFoundException(message: String) extends Exception(message)
9+
/*final*/ case class ResourceNotFoundException(message: String) extends Exception(message)
1010

1111
protected def getResource(r: String): String =
1212
Option(getClass.getResourceAsStream(r))

0 commit comments

Comments
 (0)