From: kruland2607 Date: Wed, 6 Jun 2012 18:00:57 +0000 (+0000) Subject: When validating the xml we don't need the returned value so don't bother assigning... X-Git-Tag: upstream/12.09^2~193 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=4a85bd555377e95b85bad8c227f493fcd6c6377d;p=debian%2Fopenrocket When validating the xml we don't need the returned value so don't bother assigning it to anything. git-svn-id: https://openrocket.svn.sourceforge.net/svnroot/openrocket/trunk@765 180e2498-e6e9-4542-8430-84ac67f01cd8 --- diff --git a/core/src/net/sf/openrocket/preset/loader/RocksimComponentFileTranslator.java b/core/src/net/sf/openrocket/preset/loader/RocksimComponentFileTranslator.java index fc9da17e..d84fa1d8 100644 --- a/core/src/net/sf/openrocket/preset/loader/RocksimComponentFileTranslator.java +++ b/core/src/net/sf/openrocket/preset/loader/RocksimComponentFileTranslator.java @@ -46,7 +46,8 @@ public class RocksimComponentFileTranslator { // Try parsing the file LOGGER.println("\tValidating XML"); - List presets = new OpenRocketComponentSaver().unmarshalFromOpenRocketComponent(new StringReader(xml)); + // Throw away the result, we're just parsing for validation. + new OpenRocketComponentSaver().unmarshalFromOpenRocketComponent(new StringReader(xml)); LOGGER.println("\tWriting to file " + args[1]); File outfile = new File(args[1]);