Ignore:
Timestamp:
2024-04-19T16:21:11+02:00 (6 weeks ago)
Author:
taylor.smock
Message:

Dependency updates

ivy.xml

  • org.eclipse.parsson:parsson: 1.1.5 -> 1.1.6
  • org.apache.commons:commons-compress: 1.25.0 -> 1.26.1
    • Note: This deprecated some functions
  • ch.poole:OpeningHoursParser: 0.28.1 -> 0.28.2
  • org.jacoco:org.jacoco.ant: 0.8.11 -> 0.8.12
  • com.github.spotbugs:spotbugs-annotations: 4.8.3 -> 4.8.4
  • com.github.tomakehurst:wiremock: 2.35.0 -> 3.0.1
  • io.github.classgraph:classgraph: 4.8.165 -> 4.8.171
  • nl.jqno.equalsverifier:equalsverifier: 3.15.6 -> 3.16.1
  • org.awaitility:awaitility: 4.2.0 -> 4.2.1

tools/ivy.xml

  • com.puppycrawl.tools:checkstyle: 9.3 -> 10.15.0
  • com.github.spotbugs:spotbugs: 4.8.3 -> 4.8.4
  • com.google.errorprone: 2.(10.0|24.1) -> 2.26.1
  • net.sourceforge.pmd:pmd was not updated to 7.0.0 due to a significant number of false positives.

There were some additional changes to cleanup new warnings and remove some
additional Java 8 files. There are more warnings that need to be cleaned up.

File:
1 edited

Legend:

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

    r18211 r19048  
    88import java.awt.event.ActionEvent;
    99import java.awt.event.KeyEvent;
    10 import java.awt.geom.Area;
    1110import java.util.ArrayList;
    1211import java.util.Collection;
     
    2322import org.openstreetmap.josm.data.DataSource;
    2423import org.openstreetmap.josm.data.conflict.Conflict;
    25 import org.openstreetmap.josm.data.osm.DataSet;
    2624import org.openstreetmap.josm.data.osm.IPrimitive;
    2725import org.openstreetmap.josm.data.osm.OsmData;
     
    3432import org.openstreetmap.josm.gui.MapView;
    3533import org.openstreetmap.josm.gui.NavigatableComponent.ZoomChangeListener;
    36 import org.openstreetmap.josm.gui.dialogs.ConflictDialog;
    3734import org.openstreetmap.josm.gui.dialogs.LayerListDialog;
    3835import org.openstreetmap.josm.gui.dialogs.ValidatorDialog.ValidatorBoundingXYVisitor;
     
    146143     */
    147144    public static void zoomTo(Collection<? extends IPrimitive> sel) {
    148         BoundingXYVisitor bboxCalculator = new BoundingXYVisitor();
     145        final var bboxCalculator = new BoundingXYVisitor();
    149146        bboxCalculator.computeBoundingBox(sel);
    150147        if (bboxCalculator.getBounds() != null) {
     
    244241    public void autoScale() {
    245242        if (MainApplication.isDisplayingMapView()) {
    246             MapView mapView = MainApplication.getMap().mapView;
     243            final var mapView = MainApplication.getMap().mapView;
    247244            switch (mode) {
    248245            case PREVIOUS:
     
    312309    private void modeLayer(BoundingXYVisitor v) {
    313310        // try to zoom to the first selected layer
    314         Layer l = getFirstSelectedLayer();
     311        final var l = getFirstSelectedLayer();
    315312        if (l == null)
    316313            return;
     
    327324            }
    328325        } else {
    329             ConflictDialog conflictDialog = MainApplication.getMap().conflictDialog;
     326            final var conflictDialog = MainApplication.getMap().conflictDialog;
    330327            Conflict<? extends IPrimitive> c = conflictDialog.getSelectedConflict();
    331328            if (c != null) {
     
    359356        }
    360357        Bounds bbox = null;
    361         final DataSet dataset = getLayerManager().getActiveDataSet();
     358        final var dataset = getLayerManager().getActiveDataSet();
    362359        if (dataset != null) {
    363360            List<DataSource> dataSources = new ArrayList<>(dataset.getDataSources());
     
    372369                } else {
    373370                    lastZoomArea = -1;
    374                     Area sourceArea = getLayerManager().getActiveDataSet().getDataSourceArea();
     371                    final var sourceArea = getLayerManager().getActiveDataSet().getDataSourceArea();
    375372                    if (sourceArea != null) {
    376373                        bbox = new Bounds(sourceArea.getBounds2D());
     
    439436     * Adapter for zoom change events
    440437     */
    441     private class ZoomChangeAdapter implements ZoomChangeListener {
     438    private final class ZoomChangeAdapter implements ZoomChangeListener {
    442439        @Override
    443440        public void zoomChanged() {
Note: See TracChangeset for help on using the changeset viewer.