Changeset 11863 in josm for trunk


Ignore:
Timestamp:
2017-04-09T14:17:25+02:00 (2 years ago)
Author:
Don-vip
Message:

see #7427 - sonar - squid:S1449 - Locale should be used in String operations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/ImageryLayer.java

    r11858 r11863  
    22package org.openstreetmap.josm.gui.layer;
    33
     4import static org.openstreetmap.josm.tools.I18n.tr;
    45import static org.openstreetmap.josm.tools.I18n.trc;
    56
     
    1314import java.util.Collection;
    1415import java.util.List;
     16import java.util.Locale;
    1517
    1618import javax.swing.AbstractAction;
     
    3739import org.openstreetmap.josm.gui.layer.imagery.TileSourceDisplaySettings;
    3840import org.openstreetmap.josm.tools.GBC;
    39 import static org.openstreetmap.josm.tools.I18n.tr;
    4041import org.openstreetmap.josm.tools.ImageProvider;
    4142import org.openstreetmap.josm.tools.ImageProvider.ImageSizes;
     
    149150    public void mergeFrom(Layer from) {
    150151    }
    151    
     152
    152153    public abstract Collection<String> getNativeProjections();
    153154
     
    159160            List<List<String>> content = new ArrayList<>();
    160161            content.add(Arrays.asList(tr("Name"), info.getName()));
    161             content.add(Arrays.asList(tr("Type"), info.getImageryType().getTypeString().toUpperCase()));
     162            content.add(Arrays.asList(tr("Type"), info.getImageryType().getTypeString().toUpperCase(Locale.ENGLISH)));
    162163            content.add(Arrays.asList(tr("URL"), info.getUrl()));
    163164            content.add(Arrays.asList(tr("Id"), info.getId() == null ? "-" : info.getId()));
Note: See TracChangeset for help on using the changeset viewer.