This commit is contained in:
hengyunabc
2019-05-14 19:50:32 +08:00
parent a55034ad12
commit 487742dfb0
2 changed files with 8 additions and 12 deletions
@@ -607,12 +607,10 @@ public class ProcessImpl implements Process {
if (statisticsHandler != null && flushHandlerChain != null) {
String data = statisticsHandler.result();
if (flushHandlerChain != null) {
for (Function<String, String> function : flushHandlerChain) {
data = function.apply(data);
if (function instanceof StatisticsFunction) {
data = ((StatisticsFunction) function).result();
}
for (Function<String, String> function : flushHandlerChain) {
data = function.apply(data);
if (function instanceof StatisticsFunction) {
data = ((StatisticsFunction) function).result();
}
}
}
@@ -54,13 +54,11 @@ public class DynamicCompilerException extends RuntimeException {
private String getErrors() {
StringBuilder errors = new StringBuilder();
for (Map<String, Object> entry : getErrorList()) {
for (String key : entry.keySet()) {
Object value = entry.get(key);
for (Map<String, Object> message : getErrorList()) {
for (Map.Entry<String, Object> entry : message.entrySet()) {
Object value = entry.getValue();
if (value != null && !value.toString().isEmpty()) {
errors.append(key);
errors.append(entry.getKey());
errors.append(": ");
errors.append(value);
}