From 27d8b5462b5179e4ececf3989d59003d01543ede Mon Sep 17 00:00:00 2001 From: Robert Kenny Date: Thu, 19 Sep 2024 13:06:26 +0100 Subject: [PATCH] fix for deprecation --- .../weco/storage_service/bag_unpacker/storage/Unarchiver.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bag_unpacker/src/main/scala/weco/storage_service/bag_unpacker/storage/Unarchiver.scala b/bag_unpacker/src/main/scala/weco/storage_service/bag_unpacker/storage/Unarchiver.scala index ac40f40bbd..27d0080876 100644 --- a/bag_unpacker/src/main/scala/weco/storage_service/bag_unpacker/storage/Unarchiver.scala +++ b/bag_unpacker/src/main/scala/weco/storage_service/bag_unpacker/storage/Unarchiver.scala @@ -73,7 +73,7 @@ object Unarchiver { } override def next(): (ArchiveEntry, InputStream) = - (latest, new CloseShieldInputStream(archiveInputStream)) + (latest, CloseShieldInputStream.wrap(archiveInputStream)) } private def uncompress(