[infinispan-issues] [JBoss JIRA] (ISPN-2700) Solve the scala compilation warnings after upgrading to scala 2.10.0
Galder Zamarreño (JIRA)
jira-events at lists.jboss.org
Tue Jan 8 13:53:08 EST 2013
[ https://issues.jboss.org/browse/ISPN-2700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Galder Zamarreño updated ISPN-2700:
-----------------------------------
Description:
{code}[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]{code}
{code}[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] {code}
{code}[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] {code}
{code}[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] {code}
> Solve the scala compilation warnings after upgrading to scala 2.10.0
> --------------------------------------------------------------------
>
> Key: ISPN-2700
> URL: https://issues.jboss.org/browse/ISPN-2700
> Project: Infinispan
> Issue Type: Feature Request
> Components: Server
> Affects Versions: 5.2.0.CR1
> Reporter: Mircea Markus
> Assignee: Galder Zamarreño
> Fix For: 5.2.0.Final
>
>
> {code}[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]{code}
> {code}[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] {code}
> {code}[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] {code}
> {code}[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] {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the infinispan-issues
mailing list