X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.graph%2Fsrc%2Forg%2Fsimantics%2Fgraph%2Frepresentation%2FTransferableGraph1Serializer.java;h=0baa40231e8a636ffa474196ba4794d9787fc30a;hp=770d6c6cab10b5844d7f9485e7476cac1e97cb4e;hb=bf495713dbc9dec325f3929889466fa6cd58b541;hpb=8ede4cc47cef9f74682972f88bcf7730a64e7fcd 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