]> git.gag.com Git - debian/openrocket/commitdiff
When validating the xml we don't need the returned value so don't bother assigning...
authorkruland2607 <kruland2607@180e2498-e6e9-4542-8430-84ac67f01cd8>
Wed, 6 Jun 2012 18:00:57 +0000 (18:00 +0000)
committerkruland2607 <kruland2607@180e2498-e6e9-4542-8430-84ac67f01cd8>
Wed, 6 Jun 2012 18:00:57 +0000 (18:00 +0000)
git-svn-id: https://openrocket.svn.sourceforge.net/svnroot/openrocket/trunk@765 180e2498-e6e9-4542-8430-84ac67f01cd8

core/src/net/sf/openrocket/preset/loader/RocksimComponentFileTranslator.java

index fc9da17e4d07c31a0e3bb07f5154e7061aaf2691..d84fa1d8d5c4e9bb522b77526f448d3075e47eda 100644 (file)
@@ -46,7 +46,8 @@ public class RocksimComponentFileTranslator {
 
         // Try parsing the file
         LOGGER.println("\tValidating XML");
-        List<ComponentPreset> 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]);