mirror of
https://github.com/alibaba/arthas.git
synced 2024-04-21 10:21:39 +00:00
polish #614
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+4
-6
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user