projects
/
cfb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Restructure use of static field m_bundle to improve the odds that multiple instances...
[cfb.git]
/
prod
/
net
/
jaekl
/
cfb
/
analyze
/
HtmlReport.java
diff --git
a/prod/net/jaekl/cfb/analyze/HtmlReport.java
b/prod/net/jaekl/cfb/analyze/HtmlReport.java
index e2e76cb4bae3b1e2f678fd93046931f81c3000ab..39c0796e5640a3f32d4ebe3d4f7c27b38917f74b 100644
(file)
--- a/
prod/net/jaekl/cfb/analyze/HtmlReport.java
+++ b/
prod/net/jaekl/cfb/analyze/HtmlReport.java
@@
-1,12
+1,12
@@
package net.jaekl.cfb.analyze;
import java.io.File;
package net.jaekl.cfb.analyze;
import java.io.File;
-import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintWriter;
import net.jaekl.cfb.CfbBundle;
import net.jaekl.cfb.store.Location;
import java.io.IOException;
import java.io.PrintWriter;
import net.jaekl.cfb.CfbBundle;
import net.jaekl.cfb.store.Location;
+import net.jaekl.cfb.util.Command;
import net.jaekl.cfb.xml.BugInstance;
import net.jaekl.cfb.xml.messages.BugPattern;
import net.jaekl.cfb.xml.messages.MessageCollection;
import net.jaekl.cfb.xml.BugInstance;
import net.jaekl.cfb.xml.messages.BugPattern;
import net.jaekl.cfb.xml.messages.MessageCollection;
@@
-27,10
+27,10
@@
public class HtmlReport {
public void write(File output) throws IOException
{
public void write(File output) throws IOException
{
- try ( FileOutputStream fos = new FileOutputStream(output);
- PrintWriter pw = new PrintWriter(fos); )
+ try ( PrintWriter pw = new PrintWriter(output, Command.UTF_8) )
{
write(pw);
{
write(pw);
+ pw.flush();
}
}
}
}
@@
-144,6
+144,11
@@
public class HtmlReport {
{
final String SEP = ": ";
{
final String SEP = ": ";
+ String earlierVersion = "";
+ if (null != m_delta.getEarlier()) {
+ earlierVersion = m_delta.getEarlier().constructVersionText(m_bundle);
+ }
+
writeSectionHeading(pw, trans(CfbBundle.CFB_REPORT));
pw.println(" <P>");
pw.println(" <TABLE>");
writeSectionHeading(pw, trans(CfbBundle.CFB_REPORT));
pw.println(" <P>");
pw.println(" <TABLE>");
@@
-153,7
+158,7
@@
public class HtmlReport {
pw.println(" </TR>");
pw.println(" <TR>");
pw.println(" <TD CLASS=\"CategoryName\">" + trans(CfbBundle.OLD_VERSION) + SEP + "</TD>");
pw.println(" </TR>");
pw.println(" <TR>");
pw.println(" <TD CLASS=\"CategoryName\">" + trans(CfbBundle.OLD_VERSION) + SEP + "</TD>");
- pw.println(" <TD CLASS=\"CategoryValue\">" +
m_delta.getEarlier().constructVersionText(m_bundle)
+ "</TD>");
+ pw.println(" <TD CLASS=\"CategoryValue\">" +
earlierVersion
+ "</TD>");
pw.println(" </TR>");
pw.println(" <TR><TD> </TD></TR>");
pw.println(" <TR>");
pw.println(" </TR>");
pw.println(" <TR><TD> </TD></TR>");
pw.println(" <TR>");