提交 5b8a62c1 编写于 作者: S sean.wang

code review

上级 b975db23
......@@ -179,8 +179,8 @@ public class FailureReportAnalyzer extends AbstractMessageAnalyzer<FailureReport
}
}
oldSegments.clear();
for (String key : newSegments.keySet()) {
oldSegments.put(key, newSegments.get(key));
for (java.util.Map.Entry<String, Segment> entry : newSegments.entrySet()) {
oldSegments.put(entry.getKey(), newSegments.get(entry.getValue()));
}
return m_report;
}
......
......@@ -47,8 +47,6 @@ public abstract class ReportManager {
} catch (ParseException e) {
e.printStackTrace();
}
} else {
inputStart = DateUtils.SDF_URL.format(currentHourStart);
}
long reportStart = startLong + changeValue * DateUtils.HOUR;
......
......@@ -49,8 +49,13 @@ public class TransactionModelProvider implements ModelProvider {
} else if (index.equals(Constants.MEMORY_LAST)) {
analyzer = (TransactionReportAnalyzer) m_consumer.getLastAnalyzer("transaction");
}
TransactionReport report;
TransactionReport report = analyzer.generate(domain);
if (analyzer == null) {
report = new TransactionReport(domain);
} else {
report = analyzer.generate(domain);
}
return new DefaultXmlBuilder().buildXml(report);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册