Skip to content

Commit 583e16d

Browse files
committed
sanitise imports
1 parent e561718 commit 583e16d

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

core/src/main/scala/replpp/JLineTerminal.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ import org.jline.terminal.Terminal
1717
import org.jline.terminal.Terminal.Signal
1818
import org.jline.terminal.TerminalBuilder
1919
import org.jline.utils.AttributedString
20-
import org.slf4j.{Logger, LoggerFactory}
20+
import org.slf4j.LoggerFactory
2121

2222
import scala.util.Try
2323

2424
/** Based on https://github.com/lampepfl/dotty/blob/3.4.1/compiler/src/dotty/tools/repl/JLineTerminal.scala
2525
* and adapted for our needs */
2626
class JLineTerminal extends java.io.Closeable {
27-
private val logger: Logger = LoggerFactory.getLogger(getClass)
27+
private val logger = LoggerFactory.getLogger(getClass)
2828

2929
// MP: adapted here
3030
// if env var TERM=dumb is defined, instantiate as 'dumb' straight away, otherwise try to instantiate as a

server/src/main/scala/replpp/server/EmbeddedRepl.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package replpp.server
22

33
import dotty.tools.repl.State
4-
import org.slf4j.{Logger, LoggerFactory}
4+
import org.slf4j.LoggerFactory
55
import replpp.Colors.BlackWhite
66
import replpp.{ReplDriverBase, pwd}
77

@@ -17,7 +17,7 @@ class EmbeddedRepl(
1717
runBeforeCode: Seq[String] = Nil,
1818
runAfterCode: Seq[String] = Nil,
1919
verbose: Boolean = false) {
20-
private val logger: Logger = LoggerFactory.getLogger(getClass)
20+
private val logger = LoggerFactory.getLogger(getClass)
2121

2222
/** repl and compiler output ends up in this replOutputStream */
2323
private val replOutputStream = new ByteArrayOutputStream()

server/src/main/scala/replpp/server/ReplServer.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package replpp.server
22

33
import cask.model.{Request, Response}
4-
import org.slf4j.{Logger, LoggerFactory}
4+
import org.slf4j.LoggerFactory
55
import replpp.precompilePredefFiles
66
import ujson.Obj
77

@@ -13,7 +13,7 @@ import scala.util.{Failure, Success}
1313
case class QueryResult(output: String, uuid: UUID, success: Boolean) extends HasUUID
1414

1515
object ReplServer {
16-
protected val logger: Logger = LoggerFactory.getLogger(getClass)
16+
private val logger = LoggerFactory.getLogger(getClass)
1717

1818
def startHttpServer(serverConfig: Config): Unit = {
1919
val authenticationMaybe = for {

server/src/main/scala/replpp/server/WebServiceWithWebSocket.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package replpp.server
33
import cask.model.Response.Raw
44
import cask.model.{Request, Response}
55
import cask.router.Result
6-
import org.slf4j.{Logger, LoggerFactory}
6+
import org.slf4j.LoggerFactory
77
import ujson.Obj
88

99
import java.nio.charset.StandardCharsets
@@ -20,7 +20,7 @@ abstract class WebServiceWithWebSocket[T <: HasUUID](
2020
override val host: String,
2121
override val port: Int,
2222
authenticationMaybe: Option[UsernamePasswordAuth] = None) extends cask.MainRoutes {
23-
protected val logger: Logger = LoggerFactory.getLogger(getClass)
23+
protected val logger = LoggerFactory.getLogger(getClass)
2424

2525
class basicAuth extends cask.RawDecorator {
2626
private lazy val utf8 = StandardCharsets.UTF_8

0 commit comments

Comments
 (0)