Browse Source

代码质量

master
XiaXiang 8 years ago
parent
commit
e08e03794c
  1. 2
      designer/src/com/fr/design/mainframe/alphafine/cell/cellModel/DocumentModel.java
  2. 2
      designer/src/com/fr/design/mainframe/alphafine/cell/cellModel/PluginModel.java
  3. 5
      designer/src/com/fr/design/mainframe/alphafine/searchManager/RecentSearchManager.java

2
designer/src/com/fr/design/mainframe/alphafine/cell/cellModel/DocumentModel.java

@ -41,7 +41,7 @@ public class DocumentModel extends AlphaCellModel {
modelObject.put("title", getName()).put("summary", getContent()).put("did", getDocumentId());
object.put("result", modelObject).put("cellType", getType().getCellType());
} catch (JSONException e) {
FRLogger.getLogger().error(e.getMessage());
FRLogger.getLogger().error("DocumentModel: " + e.getMessage());
}
return object;
}

2
designer/src/com/fr/design/mainframe/alphafine/cell/cellModel/PluginModel.java

@ -100,7 +100,7 @@ public class PluginModel extends AlphaCellModel {
JSONObject object = JSONObject.create();
try {
JSONObject modelObject = JSONObject.create();
modelObject.put("name", getName()).put("description", getContent()).put("pic", getImageUrl()).put("version", getVersion()).put("jartime", getJartime()).put("type", getType().getCellType()).put("price", getPrice()).put("id", getPluginId());
modelObject.put("name", getName()).put("description", getContent()).put("pic", getImageUrl()).put("version", getVersion()).put("jartime", getJartime()).put("type", getType().getCellType()).put("price", getPrice()).put("id", getPluginId()).put("link", getLink());
object.put("result", modelObject).put("cellType", getType().getCellType());
} catch (JSONException e) {
FRLogger.getLogger().error(e.getMessage());

5
designer/src/com/fr/design/mainframe/alphafine/searchManager/RecentSearchManager.java

@ -223,10 +223,11 @@ public class RecentSearchManager extends XMLFileManager implements AlphaFineSear
}
public List<AlphaCellModel> getRecentModelList(String searchText) {
recentModelList = new ArrayList<>();
for (String key : recentKVModelMap.keySet()) {
if (ComparatorUtils.equals(key, searchText)) {
List<AlphaCellModel> list = recentKVModelMap.get(searchText);
return list;
recentModelList = recentKVModelMap.get(searchText);
return recentModelList;
}
}
return recentModelList;

Loading…
Cancel
Save