summaryrefslogtreecommitdiffstats
path: root/standalone-container
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorn.christian@seime.no>2022-12-02 14:52:26 +0100
committerGitHub <noreply@github.com>2022-12-02 14:52:26 +0100
commit81b884ac555806ae2f0a75773accfd8fe27ecbe1 (patch)
tree0f92b9ef73a90854cacc96796562d3f21ff1cff6 /standalone-container
parentc956ac4cb73b329243072aabe35f0da508c02d0f (diff)
Revert "Let list handling catch up with Java 17"
Diffstat (limited to 'standalone-container')
-rw-r--r--standalone-container/src/main/java/com/yahoo/application/container/impl/ClassLoaderOsgiFramework.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/standalone-container/src/main/java/com/yahoo/application/container/impl/ClassLoaderOsgiFramework.java b/standalone-container/src/main/java/com/yahoo/application/container/impl/ClassLoaderOsgiFramework.java
index 48f1efc7615..1526bc3dc5d 100644
--- a/standalone-container/src/main/java/com/yahoo/application/container/impl/ClassLoaderOsgiFramework.java
+++ b/standalone-container/src/main/java/com/yahoo/application/container/impl/ClassLoaderOsgiFramework.java
@@ -1,6 +1,7 @@
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.application.container.impl;
+import com.google.common.collect.Lists;
import com.yahoo.container.standalone.StandaloneContainerApplication;
import com.yahoo.jdisc.application.OsgiFramework;
import com.yahoo.jdisc.application.OsgiHeader;
@@ -50,15 +51,15 @@ import java.util.jar.JarFile;
*/
public final class ClassLoaderOsgiFramework implements OsgiFramework {
- private final BundleContextImpl bundleContextImpl = new BundleContextImpl();
- private final SystemBundleImpl systemBundleImpl = new SystemBundleImpl();
- private final BundleWiringImpl bundleWiringImpl = new BundleWiringImpl();
+ private BundleContextImpl bundleContextImpl = new BundleContextImpl();
+ private SystemBundleImpl systemBundleImpl = new SystemBundleImpl();
+ private BundleWiringImpl bundleWiringImpl = new BundleWiringImpl();
- private final List<URL> bundleLocations = new ArrayList<>();
- private final List<Bundle> bundleList = new ArrayList<>(List.of(systemBundleImpl));
+ private List<URL> bundleLocations = new ArrayList<>();
+ private List<Bundle> bundleList = Lists.newArrayList(systemBundleImpl);
private ClassLoader classLoader = null;
- private final AtomicInteger nextBundleId = new AtomicInteger(1);
+ private AtomicInteger nextBundleId = new AtomicInteger(1);
@Override
public List<Bundle> installBundle(String bundleLocation) {