Skip to content

Commit 11bd2f7

Browse files
committed
fix compile issue in test
1 parent 815796d commit 11bd2f7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/test/scala/tools/jackson/module/scala/introspect/ScalaAnnotationIntrospectorTest.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ object ScalaAnnotationIntrospectorTest {
4646
override def putIfAbsent(key: K, value: V): V =
4747
cache.putIfAbsent(key, value).getOrElse(None.orNull).asInstanceOf[V]
4848

49-
override def get(key: Any): V = {
50-
cache.get(key.asInstanceOf[K]).getOrElse(None.orNull).asInstanceOf[V]
49+
override def get(key: K): V = {
50+
cache.get(key).getOrElse(None.orNull).asInstanceOf[V]
5151
}
5252

5353
override def clear(): Unit = {
@@ -57,6 +57,8 @@ object ScalaAnnotationIntrospectorTest {
5757
override def size: Int = cache.size
5858

5959
override def snapshot(): LookupCache[K, V] = ???
60+
61+
override def emptyCopy(): LookupCache[K, V] = ???
6062
}
6163

6264
object ConcurrentLookupCacheFactory extends LookupCacheFactory {

0 commit comments

Comments
 (0)