Skip to content

Commit 0139d90

Browse files
committed
Fix various warnings in code
1 parent 1cbb621 commit 0139d90

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

src/test/scala/com/typesafe/scalalogging/LoggerSpec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ class LoggerSpec extends WordSpec with Matchers with MockitoSugar with Varargs {
595595
val msg = "msg"
596596
val cause = new RuntimeException("cause")
597597
val arg1 = "arg1"
598-
val arg2 = new Integer(1)
598+
val arg2 = Integer.valueOf(1)
599599
val arg3 = "arg3"
600600
val arg4 = 4
601601
val arg4ref = arg4.asInstanceOf[AnyRef]

src/test/scala/com/typesafe/scalalogging/LoggerTakingImplicitSpec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ class LoggerTakingImplicitSpec extends WordSpec with Matchers with MockitoSugar
382382
val msg = "msg"
383383
val cause = new RuntimeException("cause")
384384
val arg1 = "arg1"
385-
val arg2 = new Integer(1)
385+
val arg2 = Integer.valueOf(1)
386386
val arg3 = "arg3"
387387
val logMsg = "corrId - msg"
388388
val underlying = mock[org.slf4j.Logger]

src/test/scala/com/typesafe/scalalogging/LoggerWithMarkerSpec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ class LoggerWithMarkerSpec extends WordSpec with Matchers with MockitoSugar with
387387
val msg = "msg"
388388
val cause = new RuntimeException("cause")
389389
val arg1 = "arg1"
390-
val arg2 = new Integer(1)
390+
val arg2 = Integer.valueOf(1)
391391
val arg3 = "arg3"
392392
val underlying = mock[org.slf4j.Logger]
393393
when(p(underlying)(marker)).thenReturn(isEnabled)

src/test/scala/com/typesafe/scalalogging/LoggerWithTaggedArgsSpec.scala

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@ package com.typesafe.scalalogging
22

33
import org.scalatest.{ Matchers, WordSpec }
44

5-
import java.lang.ClassCastException
65
import org.slf4j.{ Logger => Underlying }
76
import org.scalatestplus.mockito.MockitoSugar
8-
import org.mockito.ArgumentMatchers._
97
import org.mockito.Mockito._
108

119
object tag {
@@ -24,8 +22,6 @@ class LoggerWithTaggedAargsSpec extends WordSpec with MockitoSugar with Matchers
2422

2523
trait Tag
2624

27-
import tag._
28-
2925
"Calling error with tagged args" should {
3026

3127
"not throw ClassCastException when varargs are passed" in {

0 commit comments

Comments
 (0)