Browse Source

fix pmd

master
XiaXiang 8 years ago
parent
commit
4fbe80e858
  1. 4
      designer/src/com/fr/design/mainframe/alphafine/search/manager/ActionSearchManager.java
  2. 6
      designer/src/com/fr/design/mainframe/alphafine/search/manager/FileSearchManager.java

4
designer/src/com/fr/design/mainframe/alphafine/search/manager/ActionSearchManager.java

@ -50,8 +50,10 @@ public class ActionSearchManager implements AlphaFineSearchProcessor {
}
SearchResult result = new SearchResult();
for (Object object : filterModelList) {
if (!AlphaFineHelper.getFilterResult().contains(object))
if (!AlphaFineHelper.getFilterResult().contains(object)) {
result.add(object);
}
}
if (result.size() < AlphaFineConstants.SHOW_SIZE + 1) {
lessModelList.add(0, TITLE_MODEL);

6
designer/src/com/fr/design/mainframe/alphafine/search/manager/FileSearchManager.java

@ -61,8 +61,10 @@ public class FileSearchManager implements AlphaFineSearchProcessor {
}
SearchResult result = new SearchResult();
for (Object object : filterModelList) {
if (!AlphaFineHelper.getFilterResult().contains(object))
result.add(object);
if (!AlphaFineHelper.getFilterResult().contains(object)) {
result.add(object);
}
}
if (result.size() < AlphaFineConstants.SHOW_SIZE + 1) {
lessModelList.add(0, TITLE_MODEL);

Loading…
Cancel
Save