From c8960e27831fb6fc30f0eae24df756ae4839ed96 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Sun, 3 Aug 2025 10:55:16 +0100 Subject: [PATCH] fix build issue related to URL deprecation (#1999) --- .../test/scala/org/apache/pekko/osgi/PojoSRTestSupport.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/osgi/src/test/scala/org/apache/pekko/osgi/PojoSRTestSupport.scala b/osgi/src/test/scala/org/apache/pekko/osgi/PojoSRTestSupport.scala index be059fb9c5..970a238de7 100644 --- a/osgi/src/test/scala/org/apache/pekko/osgi/PojoSRTestSupport.scala +++ b/osgi/src/test/scala/org/apache/pekko/osgi/PojoSRTestSupport.scala @@ -18,7 +18,7 @@ import java.net.URL import java.util.{ Date, HashMap, ServiceLoader, UUID } import java.util.jar.JarInputStream -import scala.annotation.tailrec +import scala.annotation.{ nowarn, tailrec } import scala.collection.immutable import scala.concurrent.duration._ import scala.reflect.ClassTag @@ -158,6 +158,7 @@ class BundleDescriptorBuilder(name: String) { /** * Build the actual PojoSR BundleDescriptor instance */ + @nowarn("msg=deprecated") def build: BundleDescriptor = { val file: File = tinybundleToJarFile(name) new BundleDescriptor(