X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.graph%2Fsrc%2Forg%2Fsimantics%2Fgraph%2Frepresentation%2FTransferableGraph1Serializer.java;h=0baa40231e8a636ffa474196ba4794d9787fc30a;hb=cdfd997cc5118a9fb08a73f35c6f7306308abd86;hp=770d6c6cab10b5844d7f9485e7476cac1e97cb4e;hpb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.graph/src/org/simantics/graph/representation/TransferableGraph1Serializer.java b/bundles/org.simantics.graph/src/org/simantics/graph/representation/TransferableGraph1Serializer.java index 770d6c6ca..0baa40231 100644 --- a/bundles/org.simantics.graph/src/org/simantics/graph/representation/TransferableGraph1Serializer.java +++ b/bundles/org.simantics.graph/src/org/simantics/graph/representation/TransferableGraph1Serializer.java @@ -108,21 +108,11 @@ public class TransferableGraph1Serializer extends Serializer { @Override public Object deserialize(File file) throws IOException { - TransferableGraphFileReader reader = new TransferableGraphFileReader(file); - try { - return reader.readTG(); - } finally { - reader.close(); - } + return TransferableGraphFileReader.read(file); } public Object deserialize(InputStream in) throws IOException { - TransferableGraphFileReader reader = new TransferableGraphFileReader(in); - try { - return reader.readTG(); - } finally { - reader.close(); - } + return TransferableGraphFileReader.read(in); } @Override