Skip to content

Commit 3a4b402

Browse files
committed
Fix warnings when compiling repl
1 parent d0d9717 commit 3a4b402

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

repl/src/dotty/tools/repl/AbstractFileClassLoader.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class AbstractFileClassLoader(root: AbstractFile, parent: ClassLoader, interrupt
4343
else defineClass(name, bytes, 0, bytes.length)
4444
}
4545

46-
def defineClassInstrumented(name: String, originalBytes: Array[Byte]) = {
46+
private def defineClassInstrumented(name: String, originalBytes: Array[Byte]) = {
4747
val instrumentedBytes = ReplBytecodeInstrumentation.instrument(originalBytes)
4848
defineClass(name, instrumentedBytes, 0, instrumentedBytes.length)
4949
}

repl/src/dotty/tools/repl/ReplBytecodeInstrumentation.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import scala.language.unsafeNulls
66
import scala.tools.asm.*
77
import scala.tools.asm.Opcodes.*
88
import scala.tools.asm.tree.*
9-
import scala.collection.JavaConverters.*
9+
import scala.jdk.CollectionConverters.*
1010
import java.util.concurrent.atomic.AtomicBoolean
11-
11+
1212
object ReplBytecodeInstrumentation:
1313
/** Instrument bytecode to add checks to throw an exception if the REPL command is cancelled
1414
*/

0 commit comments

Comments
 (0)