Skip to content

Commit dbe647f

Browse files
prateekatknoldusanalytically
authored andcommitted
removed type annotations warnings in LoggerWithMarkerSpec
1 parent f029356 commit dbe647f

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.typesafe.scalalogging
22

3-
import org.slf4j.{ Logger => Underlying }
3+
import com.typesafe.scalalogging.tag.@@
4+
import org.slf4j.{Logger => Underlying}
45
import org.scalatest.matchers.should.Matchers
56
import org.scalatest.wordspec.AnyWordSpec
67
import org.scalatestplus.mockito.MockitoSugar
@@ -106,11 +107,11 @@ class LoggerWithTaggedArgsSpec extends AnyWordSpec with Matchers with Varargs wi
106107

107108
private def fixture(p: Underlying => Boolean, isEnabled: Boolean = true) = new LoggerF(p, isEnabled)
108109
private class LoggerF(p: Underlying => Boolean, isEnabled: Boolean = true) {
109-
val arg1 = tag.taggedString[Tag]("arg1")
110-
val arg2 = tag.taggedInteger[Tag](Integer.valueOf(1))
111-
val arg3 = tag.taggedBoolean[Boolean](true)
112-
val underlying = mock[org.slf4j.Logger]
110+
val arg1: String @@ Tag = tag.taggedString[Tag]("arg1")
111+
val arg2: Integer @@ Tag = tag.taggedInteger[Tag](Integer.valueOf(1))
112+
val arg3: Boolean @@ Boolean = tag.taggedBoolean[Boolean](true)
113+
val underlying: Underlying = mock[org.slf4j.Logger]
113114
when(p(underlying)).thenReturn(isEnabled)
114-
val logger = Logger(underlying)
115+
val logger: Logger = Logger(underlying)
115116
}
116117
}

0 commit comments

Comments
 (0)