Browse Source

测试下PMD怎么知道我是读json的

master
XiaXiang 8 years ago
parent
commit
326d6fede3
  1. 10
      designer/src/com/fr/design/mainframe/alphafine/searchManager/RecentSearchManager.java

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

@ -75,11 +75,11 @@ public class RecentSearchManager extends XMLFileManager implements AlphaFineSear
String nodeName = reader.getTagName();
if (nodeName.equals("model")) {
String name = reader.getAttrAsString("cellModel", StringUtils.EMPTY);
try {
list.add(CellModelHelper.jsonToModel(new JSONObject(name)));
} catch (JSONException e) {
FRLogger.getLogger().error(e.getMessage());
}
// try {
// list.add(CellModelHelper.jsonToModel(new JSONObject(name)));
// } catch (JSONException e) {
// FRLogger.getLogger().error(e.getMessage());
// }
}
}
}

Loading…
Cancel
Save