Skip to content
Permalink
Browse files
IGNITE-11741 Bug fixes. Wrap FileWriter with BufferedWriter accessed …
…multi-times (#119)
  • Loading branch information
bd2019us authored and dspavlov committed Apr 14, 2019
1 parent 26288de commit da6489bec6778e00e27b8c11aec6d3bbe4666a17
Showing 1 changed file with 2 additions and 1 deletion.
@@ -21,6 +21,7 @@
import com.google.common.collect.Lists;
import java.io.File;
import java.io.FileWriter;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.UncheckedIOException;
import java.util.concurrent.atomic.AtomicInteger;
@@ -169,7 +170,7 @@ public static int validateBuildIdConsistency(Ignite ignite) {
}

public static void dumpOldBuild(int buildId, String href, Build fatBuild) {
try (FileWriter writer = new FileWriter(new File(dumpsDir(), "BuildOld" + buildId + ".txt"))) {
try (BufferedWriter writer = new BufferedWriter(new FileWriter(new File(dumpsDir(), "BuildOld" + buildId + ".txt")))) {
writer.write("<!--" + href + "-->\n");
writer.write(XmlUtil.save(fatBuild));
}

0 comments on commit da6489b

Please sign in to comment.