This is an automated email from the ASF dual-hosted git repository.
aradzinski pushed a commit to branch NLPCRAFT-296
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/NLPCRAFT-296 by this push:
new 1b3cfbc Update NCProbeMessage.scala
1b3cfbc is described below
commit 1b3cfbcd4767bc2a954d08983950a9b714a028e6
Author: Aaron Radzinzski <[email protected]>
AuthorDate: Sun Jun 6 20:30:17 2021 -0700
Update NCProbeMessage.scala
---
.../src/main/scala/org/apache/nlpcraft/probe/mgrs/NCProbeMessage.scala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/NCProbeMessage.scala
b/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/NCProbeMessage.scala
index 48af2fe..29aea3a 100644
---
a/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/NCProbeMessage.scala
+++
b/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/NCProbeMessage.scala
@@ -76,7 +76,7 @@ class NCProbeMessage(val typ: String) extends
mutable.HashMap[String/*Name*/, Se
def data[T](key: String): T =
dataOpt[T](key) match {
case None => throw new AssertionError(s"Probe message missing key
[key=$key, data=$this]")
- case Some(x) => x.asInstanceOf[T]
+ case Some(x) => x
}
/**