Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-2700

Solve the scala compilation warnings after upgrading to scala 2.10.0

    XMLWordPrintable

Details

    • Feature Request
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • 5.2.0.CR1
    • 5.2.0.Final
    • Server
    • None

    Description

      [WARNING] /Users/g/Go/test/infinispan.git/server/core/src/main/scala/org/infinispan/server/core/AbstractProtocolDecoder.scala:176: warning: non-variable type argument org.jboss.netty.buffer.ChannelBuffer in type pattern List[org.jboss.netty.buffer.ChannelBuffer] is unchecked since it is eliminated by erasure
      [INFO]                case l: List[ChannelBuffer] => l.foreach(ch.write(_))
      [INFO]
      [WARNING] /Users/g/Go/test/infinispan.git/server/hotrod/src/test/scala/org/infinispan/server/hotrod/HotRodStatsTest.scala:48: warning: Option[String] and Int are unrelated: they will most likely always compare unequal
      [INFO]       assertTrue(s.get("timeSinceStart") != 0)
      [INFO]                                          ^
      [WARNING] /Users/g/Go/test/infinispan.git/server/hotrod/src/test/scala/org/infinispan/server/hotrod/HotRodStatsTest.scala:69: warning: Option[String] and Int are unrelated: they will most likely always compare unequal
      [INFO]       assertTrue(s.get("totalBytesRead") != 0)
      [INFO]                                          ^
      [WARNING] /Users/g/Go/test/infinispan.git/server/hotrod/src/test/scala/org/infinispan/server/hotrod/HotRodStatsTest.scala:70: warning: Option[String] and Int are unrelated: they will most likely always compare unequal
      [INFO]       assertTrue(s.get("totalBytesWritten") != 0)
      [INFO]  
      [WARNING] /Users/g/Go/test/infinispan.git/server/memcached/src/test/scala/org/infinispan/server/memcached/test/MemcachedTestingUtil.scala:92: warning: a pure expression does nothing in statement position; you may be omitting necessary parentheses
      [INFO]             null
      [INFO]      
      [WARNING] /Users/g/Go/test/infinispan.git/server/rest/src/main/scala/org/infinispan/rest/Server.scala:88: warning: unreachable code
      [INFO]             case _ => throw new Exception
      [INFO]    

      Attachments

        Activity

          People

            gzamarre Galder ZamarreƱo
            mircea.markus Mircea Markus (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: