When validating the xml we don't need the returned value so don't bother assigning it to anything.

This commit is contained in:
Kevin Ruland 2012-06-06 18:00:57 +00:00
parent 90afd989f3
commit 1c0f70806d

View 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]);