refactoring

This commit is contained in:
rusefi 2018-12-20 00:13:03 -05:00
parent f48c3b9857
commit 26c7c35eed
2 changed files with 4 additions and 4 deletions

Binary file not shown.

View File

@ -70,12 +70,12 @@ public class ConfigDefinition {
javaFields.close();
BufferedWriter tsHeader = writeTunerStudioFile(tsPath, tsWriter.toString());
writeTunerStudioFile(tsPath, tsWriter.toString());
state.ensureEmptyAfterProcessing();
cHeader.close();
tsHeader.close();
VariableRegistry.INSTANCE.writeNumericsToFile(headerDestinationFolder);
@ -84,7 +84,7 @@ public class ConfigDefinition {
processTextTemplate(inputFileName, outputFileName);
}
private static BufferedWriter writeTunerStudioFile(String tsPath, String fieldsSection) throws IOException {
private static void writeTunerStudioFile(String tsPath, String fieldsSection) throws IOException {
TsFileContent tsContent = readTsFile(tsPath);
System.out.println("Got " + tsContent.getPrefix().length() + "/" + tsContent.getPostfix().length() + " of " + TS_FILE_INPUT_NAME);
@ -102,7 +102,7 @@ public class ConfigDefinition {
}
tsHeader.write("; " + CONFIG_DEFINITION_END + ConfigDefinition.EOL);
tsHeader.write(tsContent.getPostfix());
return tsHeader;
tsHeader.close();
}
private static void processTextTemplate(String inputFileName, String outputFileName) throws IOException {