File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed
src/main/java/io/ipfs/multihash Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 40
40
<attribute name =" Class-Path" value =" ${ manifest_cp } " />
41
41
<attribute name =" Implementation-Vendor" value =" io.ipfs" />
42
42
<attribute name =" Implementation-Title" value =" multihash" />
43
- <attribute name =" Implementation-Version" value =" 1.3.2 " />
43
+ <attribute name =" Implementation-Version" value =" 1.3.3 " />
44
44
</manifest >
45
45
</jar >
46
46
</target >
Original file line number Diff line number Diff line change 4
4
5
5
<groupId >com.github.multiformats</groupId >
6
6
<artifactId >java-multihash</artifactId >
7
- <version >v1.3.2 </version >
7
+ <version >v1.3.3 </version >
8
8
<packaging >jar</packaging >
9
9
10
10
<name >multihash</name >
Original file line number Diff line number Diff line change @@ -214,8 +214,12 @@ public static Multihash deserialize(InputStream din) throws IOException {
214
214
return new Multihash (t , hash );
215
215
}
216
216
217
- public static Multihash deserialize (byte [] raw ) throws IOException {
218
- return deserialize (new ByteArrayInputStream (raw ));
217
+ public static Multihash deserialize (byte [] raw ) {
218
+ try {
219
+ return deserialize (new ByteArrayInputStream (raw ));
220
+ } catch (IOException e ) {
221
+ throw new RuntimeException (e );
222
+ }
219
223
}
220
224
221
225
/**
@@ -224,7 +228,7 @@ public static Multihash deserialize(byte[] raw) throws IOException {
224
228
* @return
225
229
* @throws IOException
226
230
*/
227
- public static Multihash decode (String encoded ) throws IOException {
231
+ public static Multihash decode (String encoded ) {
228
232
if (encoded .length () == 46 && encoded .startsWith ("Qm" ))
229
233
return deserialize (Base58 .decode (encoded ));
230
234
return deserialize (Multibase .decode (encoded ));
@@ -269,11 +273,7 @@ public static Multihash fromHex(String hex) {
269
273
}
270
274
271
275
public static Multihash fromBase58 (String base58 ) {
272
- try {
273
- return Multihash .deserialize (Base58 .decode (base58 ));
274
- } catch (IOException e ) {
275
- throw new RuntimeException (e );
276
- }
276
+ return Multihash .deserialize (Base58 .decode (base58 ));
277
277
}
278
278
279
279
public static long readVarint (InputStream in ) throws IOException {
You can’t perform that action at this time.
0 commit comments