diff options
author | gjoranv <gv@oath.com> | 2018-05-04 16:30:13 +0200 |
---|---|---|
committer | gjoranv <gv@oath.com> | 2018-05-09 13:24:56 +0200 |
commit | 6169d9411210c3433a51dc338155e7b7658e534f (patch) | |
tree | 13b3444b802cc054cb50b2d96dc2472a0f5e6815 /standalone-container | |
parent | daf1d91787258738e7f8687aa995ec25e0eba20c (diff) |
Java 9: Replace usage of deprecated apis.
Diffstat (limited to 'standalone-container')
2 files changed, 2 insertions, 2 deletions
diff --git a/standalone-container/src/main/scala/com/yahoo/container/standalone/StandaloneSubscriberFactory.scala b/standalone-container/src/main/scala/com/yahoo/container/standalone/StandaloneSubscriberFactory.scala index 47219d2893a..99cc8259ab3 100644 --- a/standalone-container/src/main/scala/com/yahoo/container/standalone/StandaloneSubscriberFactory.scala +++ b/standalone-container/src/main/scala/com/yahoo/container/standalone/StandaloneSubscriberFactory.scala @@ -59,7 +59,7 @@ class StandaloneSubscriberFactory(root: VespaModel) extends SubscriberFactory { object StandaloneSubscriberFactory { private def newBuilderInstance(key: ConfigKeyT) = - builderClass(key).newInstance() + builderClass(key).getDeclaredConstructor().newInstance() private def builderClass(key: ConfigKeyT) = { val nestedClasses = key.getConfigClass.getClasses diff --git a/standalone-container/src/test/scala/com/yahoo/container/standalone/StandaloneSubscriberTest.scala b/standalone-container/src/test/scala/com/yahoo/container/standalone/StandaloneSubscriberTest.scala index 8fd2427185b..ab6f486c748 100644 --- a/standalone-container/src/test/scala/com/yahoo/container/standalone/StandaloneSubscriberTest.scala +++ b/standalone-container/src/test/scala/com/yahoo/container/standalone/StandaloneSubscriberTest.scala @@ -21,7 +21,7 @@ class StandaloneSubscriberTest { def key(name: String) = new ConfigKey(name, "container", "container").asInstanceOf[ConfigKey[ConfigInstance]] - def box(i: Int) = new java.lang.Integer(i) + def box(i: Int) = java.lang.Integer.valueOf(i) @Test @Ignore |