diff --git a/activemq-leveldb-store/pom.xml b/activemq-leveldb-store/pom.xml
index b282683d21..1183b17ef6 100644
--- a/activemq-leveldb-store/pom.xml
+++ b/activemq-leveldb-store/pom.xml
@@ -274,7 +274,7 @@
org.scalatest
- scalatest_2.9.1
+ scalatest_${scala-version}
${scalatest-version}
test
@@ -290,8 +290,8 @@
- org.scala-tools
- maven-scala-plugin
+ net.alchim31.maven
+ scala-maven-plugin
${scala-plugin-version}
@@ -327,7 +327,7 @@
org.fusesource.jvmassert
jvmassert
- 1.1
+ 1.4
@@ -379,13 +379,9 @@
-
- org.fusesource.hawtbuf
-
-
- hawtbuf-protoc
-
- [1.9,)
+ org.fusesource.hawtbuf
+ hawtbuf-protoc
+ [${hawtbuf-version},)
compile
@@ -396,13 +392,9 @@
- org.scala-tools
-
- maven-scala-plugin
-
-
- [2.15.1,)
-
+ net.alchim31.maven
+ scala-maven-plugin
+ [${scala-plugin-version},)
compile
testCompile
diff --git a/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb.scala b/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb.scala
index 5774105f87..e4e73403f3 100644
--- a/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb.scala
+++ b/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb.scala
@@ -53,7 +53,7 @@ package object leveldb {
attempt = Thread.currentThread().getContextClassLoader().loadClass(name).newInstance().asInstanceOf[SnappyTrait];
attempt.compress("test")
} catch {
- case x =>
+ case x:Throwable =>
attempt = null
}
}
diff --git a/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/LevelDBClient.scala b/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/LevelDBClient.scala
index 31d0fcd37f..7a95ca9dd2 100755
--- a/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/LevelDBClient.scala
+++ b/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/LevelDBClient.scala
@@ -470,7 +470,7 @@ class LevelDBClient(store: LevelDBStore) {
-1
}
} catch {
- case e => throw new Exception("Unexpected version file format: " + version_file)
+ case e:Throwable => throw new Exception("Unexpected version file format: " + version_file)
}
ver match {
case STORE_SCHEMA_VERSION => // All is good.
@@ -702,14 +702,13 @@ class LevelDBClient(store: LevelDBStore) {
}
private def storeCounters = {
- def storeMap(key:Array[Byte], map:HashMap[Long, _ <: AnyRef]) {
+ def storeMap[T <: AnyRef](key:Array[Byte], map:HashMap[Long, T]) {
val baos = new ByteArrayOutputStream()
val os = new ObjectOutputStream(baos);
os.writeInt(map.size);
- map.foreach {
- case (k, v) =>
- os.writeLong(k)
- os.writeObject(v)
+ for( (k,v) <- map ) {
+ os.writeLong(k)
+ os.writeObject(v)
}
os.close()
index.put(key, baos.toByteArray)
diff --git a/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/LevelDBStore.scala b/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/LevelDBStore.scala
index 62fb9bd7b5..7a602a157a 100644
--- a/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/LevelDBStore.scala
+++ b/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/LevelDBStore.scala
@@ -582,7 +582,6 @@ class LevelDBStore extends LockableServiceSupport with BrokerServiceAware with P
override def removeAsyncMessage(context: ConnectionContext, ack: MessageAck): Unit = {
if( ack.getTransactionId!=null ) {
transaction(ack.getTransactionId).remove(this, ack)
- DONE
} else {
waitOn(withUow{uow=>
doRemove(uow, ack.getLastMessageId)
diff --git a/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/util/FileSupport.scala b/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/util/FileSupport.scala
index a2b9a9e3b0..2b853b99fc 100644
--- a/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/util/FileSupport.scala
+++ b/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/util/FileSupport.scala
@@ -184,7 +184,7 @@ object FileSupport {
try {
proc(closable)
} finally {
- try { closable.close } catch { case ignore => }
+ try { closable.close } catch { case ignore:Throwable => }
}
}
diff --git a/pom.xml b/pom.xml
index d20b3eb40b..677f5c7aaa 100755
--- a/pom.xml
+++ b/pom.xml
@@ -100,8 +100,8 @@
1.0
9.4
9.4.0.1_2
- 2.15.2
- 2.9.1
+ 3.1.0
+ 2.10.0
1.8
1.6.6
3.0.7.RELEASE