Browse Source

Merge pull request #1276 in DESIGN/design from ~HUGH.C/design:feature/10.0 to feature/10.0

* commit '7ea70d0a8fd80c8d192df1e24a3c37f2c6f2cdcd':
  REPORT-20329 sonar问题修复
research/11.0
Hugh.C 5 years ago
parent
commit
6d7116c90f
  1. 8
      designer-base/src/main/java/com/fr/design/gui/date/UICalendarPanel.java

8
designer-base/src/main/java/com/fr/design/gui/date/UICalendarPanel.java

@ -437,18 +437,18 @@ public class UICalendarPanel extends JPanel {
};
}
protected EventListenerList listenerList = new EventListenerList();
protected EventListenerList eventlistenerList = new EventListenerList();
public void addDateChangeListener(ChangeListener l) {
listenerList.add(ChangeListener.class, l);
eventlistenerList.add(ChangeListener.class, l);
}
public void removeDateChangeListener(ChangeListener l) {
listenerList.remove(ChangeListener.class, l);
eventlistenerList.remove(ChangeListener.class, l);
}
protected void fireDateChanged(ChangeEvent e) {
Object[] listeners = listenerList.getListenerList();
Object[] listeners = eventlistenerList.getListenerList();
for (int i = listeners.length - 2; i >= 0; i -= 2) {
if (listeners[i] == ChangeListener.class) {
((ChangeListener) listeners[i + 1]).stateChanged(e);

Loading…
Cancel
Save