Changeset 12962 in josm


Ignore:
Timestamp:
2017-10-09T03:08:01+02:00 (11 days ago)
Author:
Don-vip
Message:

see #15414 - fix javadoc warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/bbox/SourceButton.java

    r12955 r12962  
    55
    66import java.awt.Dimension;
     7import java.awt.event.ActionEvent;
    78import java.awt.event.ActionListener;
    8 import java.awt.event.ActionEvent;
    99import java.util.ArrayList;
    1010import java.util.Collection;
     
    1212import java.util.Enumeration;
    1313import java.util.List;
     14import java.util.Objects;
    1415
    1516import javax.swing.AbstractButton;
     
    2324import org.openstreetmap.gui.jmapviewer.interfaces.TileSource;
    2425import org.openstreetmap.josm.gui.widgets.PopupMenuButton;
    25 import org.openstreetmap.josm.tools.CheckParameterUtil;
    2626import org.openstreetmap.josm.tools.ImageProvider;
    2727
     
    3434        protected final TileSource tileSource;
    3535
    36         public TileSourceButtonModel(TileSource tileSource_) {
    37             super();
    38             this.tileSource = tileSource_;
     36        public TileSourceButtonModel(TileSource tileSource) {
     37            this.tileSource = tileSource;
    3938            this.addActionListener(this);
    4039        }
     
    5756     * @param slippyMapBBoxChooser parent slippy map
    5857     * @param sources list of imagery sources to display
     58     * @param showDownloadAreaButtonModel model for the "Show downloaded area" button
     59     * @since 12955
    5960     */
    6061    public SourceButton(
    61         SlippyMapBBoxChooser slippyMapBBoxChooser_,
    62         Collection<TileSource> sources_,
    63         ButtonModel showDownloadAreaButtonModel_
     62        SlippyMapBBoxChooser slippyMapBBoxChooser,
     63        Collection<TileSource> sources,
     64        ButtonModel showDownloadAreaButtonModel
    6465    ) {
    6566        super(new ImageProvider("dialogs/layerlist").getResource().getImageIcon(new Dimension(16, 16)));
    66         this.showDownloadAreaButtonModel = showDownloadAreaButtonModel_;
    67         this.slippyMapBBoxChooser = slippyMapBBoxChooser_;
     67        this.showDownloadAreaButtonModel = showDownloadAreaButtonModel;
     68        this.slippyMapBBoxChooser = slippyMapBBoxChooser;
    6869        this.setPreferredSize(new Dimension(24, 24));
    69         this.setSources(sources_);
     70        this.setSources(sources);
    7071    }
    7172
     
    105106     * @since 6364
    106107     */
    107     public final void setSources(Collection<TileSource> sources_) {
    108         CheckParameterUtil.ensureParameterNotNull(sources_, "sources_");
    109         this.sources = new ArrayList<TileSource>(sources_);
     108    public final void setSources(Collection<TileSource> sources) {
     109        this.sources = new ArrayList<>(Objects.requireNonNull(sources, "sources"));
    110110        this.generatePopupMenu();
    111111        if (this.sourceButtonGroup.getSelection() == null) {
     
    124124    /**
    125125     * Get the currently-selected tile source.
     126     * @return currently-selected tile source
    126127     */
    127128    public final TileSource getCurrentSource() {
Note: See TracChangeset for help on using the changeset viewer.