Changeset 18129 in josm for trunk/src/org


Ignore:
Timestamp:
2021-08-09T21:03:05+02:00 (3 years ago)
Author:
Don-vip
Message:

tools update: checkstyle 8.44, spotbugs 4.2.3, proguard 7.1.1, error-prone 2.8.1

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

Legend:

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

    r17896 r18129  
    582582        private static Map<Modifier, Boolean> createFromString(String string) {
    583583            Map<Modifier, Boolean> ret = new EnumMap<>(Modifier.class);
    584             for (char c : string.toCharArray()) {
     584            for (int i = 0; i < string.length(); i++) {
     585                char c = string.charAt(i);
    585586                if (c == '?') {
    586587                    continue;
  • trunk/src/org/openstreetmap/josm/gui/tagging/presets/TaggingPresetListener.java

    r10590 r18129  
    44/**
    55 * Notification of tagging presets events.
     6 * @see TaggingPresets#addListener(TaggingPresetListener)
    67 * @since 7100
    7  * @see TaggingPresets#addListener(TaggingPresetListener)
    88 */
    99@FunctionalInterface
  • trunk/src/org/openstreetmap/josm/io/MultiFetchServerObjectReader.java

    r17654 r18129  
    373373     * found on  the server (the server response code was 404)
    374374     *
     375     * @param progressMonitor progress monitor
    375376     * @return the parsed data
    376      * @param progressMonitor progress monitor
    377377     * @throws OsmTransferException if an error occurs while communicating with the API server
    378378     * @see #getMissingPrimitives()
  • trunk/src/org/openstreetmap/josm/tools/OsmUrlToBounds.java

    r16887 r18129  
    174174        int zoomOffset = 0;
    175175
    176         for (final char ch : shortLink.toCharArray()) {
     176        for (int j = 0; j < shortLink.length(); j++) {
     177            char ch = shortLink.charAt(j);
    177178            if (array.containsKey(ch)) {
    178179                int val = array.get(ch);
Note: See TracChangeset for help on using the changeset viewer.