refactor for performance

This commit is contained in:
高铁
2020-10-08 18:55:16 +08:00
parent bdc65e5d3a
commit dfe772e8d8
@@ -374,7 +374,9 @@ public class JSONPath implements JSONAware {
if (result instanceof Collection) {
Collection collection = (Collection) result;
collection.addAll(Arrays.asList(values));
for (Object value : values) {
collection.add(value);
}
return;
}