Skip to content

Commit 9a56d6e

Browse files
committed
reduce use of ScalaObjectMapper
1 parent 6724059 commit 9a56d6e

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/test/scala/com/fasterxml/jackson/module/scala/JacksonTest.scala

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,4 @@ abstract class JacksonTest extends BaseSpec {
1111
}
1212

1313
def newMapper: ObjectMapper = newBuilder.build()
14-
15-
def newMapperWithScalaObjectMapper: ObjectMapper with ScalaObjectMapper = {
16-
newBuilder.build() :: ScalaObjectMapper
17-
}
1814
}

src/test/scala/com/fasterxml/jackson/module/scala/ScalaObjectMapperTest.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,4 +299,8 @@ class ScalaObjectMapperTest extends JacksonTest {
299299
}
300300
}
301301
}
302+
303+
private def newMapperWithScalaObjectMapper: ObjectMapper with ScalaObjectMapper = {
304+
newBuilder.build() :: ScalaObjectMapper
305+
}
302306
}

src/test/scala/com/fasterxml/jackson/module/scala/introspect/ScalaAnnotationIntrospectorTest.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ object ScalaAnnotationIntrospectorTest {
3434
class ScalaAnnotationIntrospectorTest extends FixtureAnyFlatSpec with Matchers {
3535
import ScalaAnnotationIntrospectorTest._
3636

37-
type FixtureParam = ObjectMapper with ScalaObjectMapper
37+
type FixtureParam = ObjectMapper
3838

3939
override def withFixture(test: OneArgTest): Outcome = {
40-
val mapper = new ObjectMapper with ScalaObjectMapper
40+
val mapper = new ObjectMapper
4141
mapper.registerModule(DefaultScalaModule)
4242
withFixture(test.toNoArgTest(mapper))
4343
}

0 commit comments

Comments
 (0)