Browse Source

Merge pull request #1074 in DESIGN/design from ~MAKSIM/design:feature/10.0 to feature/10.0

* commit '7ea83ebbe914f427fd7c02d82e6feaf3a2bbe89d':
  REPORT-20323 sonar问题修复
research/11.0
Maksim 5 years ago
parent
commit
fb58c3fb55
  1. 2
      designer-form/src/main/java/com/fr/design/mainframe/FormCreatorDropTarget.java
  2. 1
      designer-form/src/main/java/com/fr/design/mainframe/FormDesigner.java
  3. 2
      designer-form/src/main/java/com/fr/design/mainframe/FormToolBar.java
  4. 2
      designer-form/src/main/java/com/fr/design/mainframe/FormToolBarPane.java
  5. 1
      designer-form/src/main/java/com/fr/design/mainframe/JForm.java
  6. 6
      designer-form/src/main/java/com/fr/design/mainframe/widget/UITreeComboBox.java

2
designer-form/src/main/java/com/fr/design/mainframe/FormCreatorDropTarget.java

@ -252,7 +252,7 @@ public class FormCreatorDropTarget extends DropTarget {
*
* @param dtde 事件
*/
public void drop(DropTargetDropEvent dtde) {
public synchronized void drop(DropTargetDropEvent dtde) {
Point loc = dtde.getLocation();
this.adding(loc.x, loc.y);
//针对在表单中拖入一个控件直接ctrl+s无反应

1
designer-form/src/main/java/com/fr/design/mainframe/FormDesigner.java

@ -1368,6 +1368,7 @@ public class FormDesigner extends TargetComponent<Form> implements TreeSelection
Thread.sleep(1500);
} catch (InterruptedException e) {
FRLogger.getLogger().error(e.getMessage(), e);
Thread.currentThread().interrupt();
}
pane.setLayout(new BorderLayout());

2
designer-form/src/main/java/com/fr/design/mainframe/FormToolBar.java

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

2
designer-form/src/main/java/com/fr/design/mainframe/FormToolBarPane.java

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

1
designer-form/src/main/java/com/fr/design/mainframe/JForm.java

@ -765,6 +765,7 @@ public class JForm extends JTemplate<Form, FormUndoState> implements BaseJForm<F
Thread.sleep(1500);
} catch (InterruptedException e) {
FineLoggerFactory.getLogger().error(e.getMessage(), e);
Thread.currentThread().interrupt();
}
JPanel pane = new JPanel();
pane.setLayout(new BorderLayout());

6
designer-form/src/main/java/com/fr/design/mainframe/widget/UITreeComboBox.java

@ -192,7 +192,11 @@ public class UITreeComboBox extends UIComboBox {
@Override
public boolean equals(Object o) {
return o.getClass() == this.getClass();
if (o != null) {
return o.getClass() == this.getClass();
} else {
return false;
}
}
}

Loading…
Cancel
Save