diff --git a/jetty-osgi/jetty-osgi-boot/src/main/java/org/eclipse/jetty/osgi/boot/utils/internal/PackageAdminServiceTracker.java b/jetty-osgi/jetty-osgi-boot/src/main/java/org/eclipse/jetty/osgi/boot/utils/internal/PackageAdminServiceTracker.java index 66796621d54..ce8127a60a3 100644 --- a/jetty-osgi/jetty-osgi-boot/src/main/java/org/eclipse/jetty/osgi/boot/utils/internal/PackageAdminServiceTracker.java +++ b/jetty-osgi/jetty-osgi-boot/src/main/java/org/eclipse/jetty/osgi/boot/utils/internal/PackageAdminServiceTracker.java @@ -169,7 +169,7 @@ public class PackageAdminServiceTracker implements ServiceListener protected List getRequiredBundles(Bundle bundle, PackageAdmin admin) { List res = new ArrayList(); - String requiredBundleHeader = bundle.getHeaders().get("Require-Bundle"); + String requiredBundleHeader = (String)bundle.getHeaders().get("Require-Bundle"); if (requiredBundleHeader == null) { return res;