Ignore:
Timestamp:
2014-02-27T02:50:12+01:00 (6 years ago)
Author:
Don-vip
Message:

fix some Sonar issues (Constructor Calls Overridable Method)

Location:
trunk/src/org/openstreetmap/josm/actions
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/AutoScaleAction.java

    r6783 r6890  
    284284
    285285    @Override
    286     protected void installAdapters() {
     286    protected final void installAdapters() {
    287287        super.installAdapters();
    288288        // make this action listen to zoom and mapframe change events
  • trunk/src/org/openstreetmap/josm/actions/ExpertToggleAction.java

    r6889 r6890  
    134134
    135135    @Override
    136     protected void notifySelectedState() {
     136    protected final void notifySelectedState() {
    137137        super.notifySelectedState();
    138138        fireExpertModeChanged(isSelected());
  • trunk/src/org/openstreetmap/josm/actions/ImageryAdjustAction.java

    r6792 r6890  
    226226        }
    227227
    228         public void updateOffset() {
     228        public final void updateOffset() {
    229229            ignoreListener = true;
    230230            updateOffsetIntl();
     
    232232        }
    233233
    234         public void updateOffsetIntl() {
     234        public final void updateOffsetIntl() {
    235235            // Support projections with very small numbers (e.g. 4326)
    236236            int precision = Main.getProjection().getDefaultZoomInPPD() >= 1.0 ? 2 : 7;
  • trunk/src/org/openstreetmap/josm/actions/JosmAction.java

    r6889 r6890  
    193193     * @param tooltip The text to display in tooltip. Can be {@code null}
    194194     */
    195     public void setTooltip(String tooltip) {
     195    public final void setTooltip(String tooltip) {
    196196        if (tooltip != null) {
    197197            putValue(SHORT_DESCRIPTION, Main.platform.makeTooltip(tooltip, sc));
  • trunk/src/org/openstreetmap/josm/actions/OpenLocationAction.java

    r6803 r6890  
    205205     * @return <tt>true</tt> (as specified by {@link Collection#add})
    206206     */
    207     public boolean addDownloadTaskClass(Class<? extends DownloadTask> taskClass) {
     207    public final boolean addDownloadTaskClass(Class<? extends DownloadTask> taskClass) {
    208208        return this.downloadTasks.add(taskClass);
    209209    }
  • trunk/src/org/openstreetmap/josm/actions/SessionSaveAsAction.java

    r6643 r6890  
    166166         * Initializes action.
    167167         */
    168         public void initialize() {
     168        public final void initialize() {
    169169            layers = new ArrayList<Layer>(Main.map.mapView.getAllLayersAsList());
    170170            exporters = new HashMap<Layer, SessionLayerExporter>();
     
    205205        }
    206206
    207         protected Component build() {
     207        protected final Component build() {
    208208            JPanel p = new JPanel(new GridBagLayout());
    209209            JPanel ip = new JPanel(new GridBagLayout());
  • trunk/src/org/openstreetmap/josm/actions/ZoomToAction.java

    r6085 r6890  
    7777    }
    7878
    79     protected void updateEnabledState() {
     79    protected final void updateEnabledState() {
    8080        if (Main.main == null || Main.main.getEditLayer() != this.table.getLayer()) {
    8181            setEnabled(false);
Note: See TracChangeset for help on using the changeset viewer.