mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-06 21:54:19 -04:00
Replaced ByteInputStream with ByteArrayInputStream
ByteInputStream is an internal class and won’t compile with maven.
This commit is contained in:
parent
222045ca5a
commit
6b5bea2891
1 changed files with 2 additions and 3 deletions
|
@ -3,7 +3,6 @@ package io.bitsquare.util;
|
||||||
import com.google.gson.FieldNamingPolicy;
|
import com.google.gson.FieldNamingPolicy;
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.google.gson.GsonBuilder;
|
import com.google.gson.GsonBuilder;
|
||||||
import com.sun.xml.internal.messaging.saaj.util.ByteInputStream;
|
|
||||||
import java.awt.Desktop;
|
import java.awt.Desktop;
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
|
@ -35,8 +34,8 @@ public class Utilities
|
||||||
Object result = null;
|
Object result = null;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
ByteInputStream byteInputStream = new ByteInputStream();
|
ByteArrayInputStream byteInputStream =
|
||||||
byteInputStream.setBuf(com.google.bitcoin.core.Utils.parseAsHexOrBase58(serializedHexString));
|
new ByteArrayInputStream(com.google.bitcoin.core.Utils.parseAsHexOrBase58(serializedHexString));
|
||||||
|
|
||||||
try (ObjectInputStream objectInputStream = new ObjectInputStream(byteInputStream))
|
try (ObjectInputStream objectInputStream = new ObjectInputStream(byteInputStream))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue