fix build issue related to URL deprecation (#1999)

This commit is contained in:
PJ Fanning 2025-08-03 10:55:16 +01:00 committed by GitHub
parent 7325c729ce
commit c8960e2783
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(