mirror of
https://github.com/alibaba/fastjson.git
synced 2026-10-29 06:06:50 +08:00
refactor for performance
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user