We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d3b2f7 commit 0a499d5Copy full SHA for 0a499d5
repl/src/dotty/tools/repl/AbstractFileClassLoader.scala
@@ -91,7 +91,7 @@ class AbstractFileClassLoader(val root: AbstractFile, parent: ClassLoader, inter
91
try
92
val bytes = is.readAllBytes()
93
defineClass(name, bytes, 0, bytes.length)
94
- finally Option(is).foreach(_.close())
+ finally is.close()
95
96
case _ =>
97
try findClass(name)
0 commit comments