Changeset 18051 in josm for trunk/src


Ignore:
Timestamp:
2021-07-17T17:24:53+02:00 (3 years ago)
Author:
Don-vip
Message:

upgrade to checkstyle 8.43, fix violations

Location:
trunk/src/org/openstreetmap/josm
Files:
5 edited

Legend:

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

    r17996 r18051  
    5656
    5757        Map<String, String> changes = TableHelper.selectedIndices(selectionModel).boxed()
    58                 .collect(HashMap::new, (m,i)->m.put(keyFn.apply(i), valueFn.apply(i)), HashMap::putAll);
     58                .collect(HashMap::new, (m, i) -> m.put(keyFn.apply(i), valueFn.apply(i)), HashMap::putAll);
    5959        ChangePropertyCommand command = new ChangePropertyCommand(Collections.singleton(primitive), changes);
    6060        UndoRedoHandler.getInstance().add(command);
  • trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImagesLoader.java

    r18035 r18051  
    4242    /**
    4343     * Constructs a new {@code ImagesLoader}.
    44      * @param selection
    45      * @param gpxLayer
     44     * @param selection image files to load
     45     * @param gpxLayer associated GPX layer
    4646     */
    47     public ImagesLoader(Collection<File> selection, GpxLayer gpxLayer) {
     47    ImagesLoader(Collection<File> selection, GpxLayer gpxLayer) {
    4848        super(tr("Extracting GPS locations from EXIF"));
    4949        this.selection = selection;
  • trunk/src/org/openstreetmap/josm/gui/layer/geoimage/SynchronizeTimeFromPhotoDialog.java

    r18045 r18051  
    5959     * @param images list of image entries
    6060     */
    61     public SynchronizeTimeFromPhotoDialog(Component parent, List<ImageEntry> images) {
     61    SynchronizeTimeFromPhotoDialog(Component parent, List<ImageEntry> images) {
    6262        super(parent, tr("Synchronize time from a photo of the GPS receiver"), tr("OK"), tr("Cancel"));
    6363        setButtonIcons("ok", "cancel");
  • trunk/src/org/openstreetmap/josm/gui/layer/gpx/GpxDataHelper.java

    r18042 r18051  
    3333 */
    3434public final class GpxDataHelper {
     35
     36    private GpxDataHelper() {
     37        // Hide public constructor
     38    }
    3539
    3640    /**
  • trunk/src/org/openstreetmap/josm/io/GpxReader.java

    r17984 r18051  
    133133        @Override
    134134        public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException {
    135             elements.push(new String[] { namespaceURI, localName, qName });
     135            elements.push(new String[] {namespaceURI, localName, qName});
    136136            switch(currentState) {
    137137            case INIT:
Note: See TracChangeset for help on using the changeset viewer.