Browse Source

sonar问题修复,无jira任务

persist/11.0
pengda 5 years ago
parent
commit
4d21f2c501
  1. 2
      designer-realize/src/main/java/com/fr/design/webattr/FToolBar.java
  2. 2
      designer-realize/src/main/java/com/fr/design/webattr/ToolBarPane.java

2
designer-realize/src/main/java/com/fr/design/webattr/FToolBar.java

@ -17,7 +17,7 @@ public class FToolBar {
}
public void setButtonlist(List<ToolBarButton> buttonlist) {
if (buttonlist == null || buttonlist.size() < 0) {
if (buttonlist == null ) {
this.buttonlist = new ArrayList<ToolBarButton>();
} else {
this.buttonlist = buttonlist;

2
designer-realize/src/main/java/com/fr/design/webattr/ToolBarPane.java

@ -124,7 +124,7 @@ public class ToolBarPane extends BasicBeanPane<ToolBar> {
}
private void setToolBar(List<ToolBarButton> list) {
if (list == null || list.size() < 0) {
if (list == null ) {
return;
}
this.removeAll();

Loading…
Cancel
Save