Fix warnings in akka-osgi #26088

This commit is contained in:
Arnout Engelen 2019-04-16 09:09:00 +02:00 committed by Johan Andrén
parent d4813b91c3
commit e3932e5dfa
3 changed files with 6 additions and 2 deletions

View file

@ -6,6 +6,8 @@ package akka.osgi
import akka.actor.ActorSystem
import java.util.{ Dictionary, Properties }
import com.github.ghik.silencer.silent
import org.osgi.framework._
import org.osgi.service.log.LogService
import com.typesafe.config.{ Config, ConfigFactory }
@ -112,6 +114,7 @@ abstract class ActorSystemActivator extends BundleActivator {
* @param context the bundle context
* @return the actor system name
*/
@silent
def getActorSystemName(context: BundleContext): String = null
/**
@ -124,6 +127,7 @@ abstract class ActorSystemActivator extends BundleActivator {
* @param context the bundle context
* @return the actor system specific configuration, ConfigFactory.empty by default
*/
@silent
def getActorSystemConfiguration(context: BundleContext): Config = ConfigFactory.empty
}

View file

@ -5,6 +5,7 @@
package akka.osgi
import akka.actor.ActorSystem
import akka.util.unused
import com.typesafe.config.{ Config, ConfigFactory }
import org.osgi.framework.BundleContext
@ -40,7 +41,7 @@ class OsgiActorSystemFactory(
* ensuring that the default/reference configuration is loaded from the akka-actor bundle.
* Configuration files found in akka-actor bundle
*/
def actorSystemConfig(context: BundleContext): Config = {
def actorSystemConfig(@unused context: BundleContext): Config = {
config.withFallback(
ConfigFactory
.load(classloader)

View file

@ -32,7 +32,6 @@ object AkkaDisciplinePlugin extends AutoPlugin with ScalafixSupport {
"akka-bench-jmh",
"akka-bench-jmh-typed",
"akka-multi-node-testkit",
"akka-osgi",
"akka-persistence-tck",
"akka-persistence-typed",
"akka-persistence-query",