protected void fireTileSelectionEvent(Tile selectedTile) { Object[] listeners = tileSelectionListeners.getListenerList(); TileSelectionEvent event = null;
private void fireTileSelectionEvent(Tile selectedTile) { TileSelectionEvent event = new TileSelectionEvent(this, selectedTile); Iterator iterator = tileSelectionListeners.iterator();
    protected void fireTileSelectionEvent(Tile selectedTile) {        Object[] listeners = tileSelectionListeners.getListenerList();        TileSelectionEvent event = null;        for (int i = listeners.length - 2; i >= 0; i -= 2) {            if (listeners[i] == TileSelectionListener.class) {                if (event == null) {                    event = new TileSelectionEvent(this, selectedTile);                }                ((TileSelectionListener) listeners[i + 1]).tileSelected(event);            }        }    }