Skip to content
Snippets Groups Projects
Commit d258199a authored by dgelessus's avatar dgelessus
Browse files

Remove date from Translator text output for reproducibility

parent cd737eae
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,6 @@ import java.io.IOException; ...@@ -10,7 +10,6 @@ import java.io.IOException;
import java.io.OutputStreamWriter; import java.io.OutputStreamWriter;
import java.io.PrintWriter; import java.io.PrintWriter;
import java.io.UnsupportedEncodingException; import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.util.Hashtable; import java.util.Hashtable;
import de.be4.classicalb.core.parser.BParser; import de.be4.classicalb.core.parser.BParser;
...@@ -323,7 +322,7 @@ public class Translator implements TranslationGlobals { ...@@ -323,7 +322,7 @@ public class Translator implements TranslationGlobals {
PrettyPrinter pp = new PrettyPrinter(); PrettyPrinter pp = new PrettyPrinter();
pp.setRenaming(new SuffixIdentifierRenaming()); pp.setRenaming(new SuffixIdentifierRenaming());
BAst.apply(pp); BAst.apply(pp);
String result = "/*@ generated by TLA2B " + VERSION_NUMBER + " " + new Date() + " */\n" + pp.getPrettyPrint(); String result = "/*@ generated by TLA2B " + VERSION_NUMBER + " */\n" + pp.getPrettyPrint();
try { try {
BufferedWriter out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(machineFile), "UTF-8")); BufferedWriter out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(machineFile), "UTF-8"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment