@@ -27,7 +27,7 @@ class ScalaMockHandler[T](mockSettings: MockCreationSettings[T], methodsToProces
2727 i.callRealMethod()
2828 else {
2929 val rawArguments = i.getRawArguments
30- val arguments =
30+ val arguments =
3131 if (rawArguments != null && rawArguments.nonEmpty && ! isCallRealMethod) unwrapArgs(method, rawArguments)
3232 else rawArguments
3333
@@ -42,18 +42,18 @@ class ScalaMockHandler[T](mockSettings: MockCreationSettings[T], methodsToProces
4242 val transformed = methodsToProcess
4343 .collectFirst {
4444 case (mtd, indices) if method === mtd =>
45- val argumentMatcherStorage = mockingProgress().getArgumentMatcherStorage
46- val matchers = argumentMatcherStorage.pullLocalizedMatchers().asScala.toIterator
47- val matchersWereUsed = matchers.nonEmpty
48- def reportMatcher (): Unit = if (matchers.nonEmpty) argumentMatcherStorage.reportMatcher(matchers.next().getMatcher)
45+ val argumentMatcherStorage = mockingProgress().getArgumentMatcherStorage
46+ val matchers = argumentMatcherStorage.pullLocalizedMatchers().asScala.toIterator
47+ val matchersWereUsed = matchers.nonEmpty
48+ def reportMatcher (): Unit = if (matchers.nonEmpty) argumentMatcherStorage.reportMatcher(matchers.next().getMatcher)
4949 def reportMatchers (varargs : Iterable [_]): Unit =
5050 if (matchersWereUsed && varargs.nonEmpty) {
5151 def reportAsEqTo (): Unit = varargs.map(EqTo (_)).foreach(argumentMatcherStorage.reportMatcher(_))
5252 val matcher = matchers.next().getMatcher
5353 matcher match {
5454 case EqTo (value : Array [_]) if varargs.sameElements(value) => reportAsEqTo()
5555 case EqTo (value) if varargs == value => reportAsEqTo()
56- case other =>
56+ case other =>
5757 argumentMatcherStorage.reportMatcher(other)
5858 varargs.drop(1 ).foreach(_ => reportMatcher())
5959 }
@@ -100,7 +100,7 @@ object ScalaMockHandler {
100100 mockSettings
101101 )
102102
103- private val InvocationClassName = classOf [ScalaInvocation ].getName
103+ private val InvocationClassName = classOf [ScalaInvocation ].getName
104104 private def isCallRealMethod : Boolean =
105105 (new Exception ).getStackTrace.toList.exists { t =>
106106 t.getClassName == InvocationClassName &&
0 commit comments