Permalink
Browse files

Fix unchecked warning.

Sorry, my schooling in warning suppression was deficient.
  • Loading branch information...
1 parent adf7f9d commit d02ccc30815cb75a845b7d56ad6db8de91e442c5 @paulp paulp committed Apr 23, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 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

0 comments on commit d02ccc3

Please sign in to comment.