summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2013-04-23 13:49:11 -0700
committerPaul Phillips <paulp@improving.org>2013-04-23 13:54:47 -0700
commitd02ccc30815cb75a845b7d56ad6db8de91e442c5 (patch)
treefbf3844f19a3aa6e50bf37666fd98a3bd564edea /src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala
parentadf7f9daf46e60d810b29119df388bc0aad9d3a6 (diff)
downloadscala-d02ccc30815cb75a845b7d56ad6db8de91e442c5.tar.gz
scala-d02ccc30815cb75a845b7d56ad6db8de91e442c5.tar.bz2
scala-d02ccc30815cb75a845b7d56ad6db8de91e442c5.zip
Fix unchecked warning.
Sorry, my schooling in warning suppression was deficient.
Diffstat (limited to 'src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala')
-rw-r--r--src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala b/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala
index 7cec57968c..ce889f3ce3 100644
--- a/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala
+++ b/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala
@@ -289,9 +289,9 @@ abstract class ClassfileParser {
*/
private def getNameAndType(index: Int, ownerTpe: Type): (Name, Type) = {
if (index <= 0 || len <= index) errorBadIndex(index)
- (values(index): @unchecked) match {
- case p: ((Name, Type)) => p
- case _ =>
+ values(index) match {
+ case p: ((Name @unchecked, Type @unchecked)) => p
+ case _ =>
val start = firstExpecting(index, CONSTANT_NAMEANDTYPE)
val name = getName(in.getChar(start).toInt)
// create a dummy symbol for method types