1

The following code has the warning value.isInstanceOf[Map[Any,Any]]

non-variable type argument Any in type Map[Any,Any] is unchecked since it is eliminated by erasure

How to eliminate the warning while still able to check data of the Type Map[Any,Any]?

Thx :)

Casualet
  • 295
  • 3
  • 12

1 Answers1

2

This will work:

value.isInstanceOf[Map[_, _]]

Additional approaches are described in the answers to this question.

Robby Cornelissen
  • 91,784
  • 22
  • 134
  • 156