From 698b6c4319dd8f990a7597d003ab5c50263a2368 Mon Sep 17 00:00:00 2001 From: XiaXiang Date: Wed, 28 Jun 2017 14:19:54 +0800 Subject: [PATCH] bug fix --- .../alphafine/search/manager/RecentSearchManager.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/designer/src/com/fr/design/mainframe/alphafine/search/manager/RecentSearchManager.java b/designer/src/com/fr/design/mainframe/alphafine/search/manager/RecentSearchManager.java index 16de73fc0..1b6b2b658 100644 --- a/designer/src/com/fr/design/mainframe/alphafine/search/manager/RecentSearchManager.java +++ b/designer/src/com/fr/design/mainframe/alphafine/search/manager/RecentSearchManager.java @@ -230,7 +230,9 @@ public class RecentSearchManager extends XMLFileManager implements AlphaFineSear Collections.sort(resultModelList); int size = resultModelList.size(); if (size > MAX_SIZE) { - return (SearchResult) resultModelList.subList(0, MAX_SIZE); + SearchResult result = new SearchResult(); + result.addAll(resultModelList.subList(0, MAX_SIZE)); + return result; } return resultModelList; }