From 36f76ca0ccfbbaf55f095711c2eb90cfac9edfc6 Mon Sep 17 00:00:00 2001 From: Michael Vorburger Date: Sat, 4 Jan 2025 02:58:07 +0100 Subject: [PATCH] Use UncheckedIOException instead of RuntimeException --- src/main/java/io/ipfs/cid/Cid.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/ipfs/cid/Cid.java b/src/main/java/io/ipfs/cid/Cid.java index 5449aeb..b97448d 100644 --- a/src/main/java/io/ipfs/cid/Cid.java +++ b/src/main/java/io/ipfs/cid/Cid.java @@ -94,7 +94,7 @@ private byte[] toBytesV1() { super.serialize(res); return res.toByteArray(); } catch (IOException e) { - throw new RuntimeException(e); + throw new UncheckedIOException(e); } }