Changeset 5172 in josm for trunk/src/org


Ignore:
Timestamp:
2012-04-08T00:34:00+02:00 (13 years ago)
Author:
simon04
Message:

see #5933 - avoid warnings "Ignoring * attribute as * elements are given"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPreset.java

    r5169 r5172  
    636636            }
    637637
     638            // as addToPanel may be called several times, set String to null to avoid "Ignoring * attribute as * elements are given"
     639            values = null;
     640            display_values = null;
     641            locale_display_values = null;
     642            short_descriptions = null;
     643            locale_short_descriptions = null;
     644
    638645            return display_array;
    639646        }
     
    923930     * @param s the string
    924931     */
    925     private static String[] splitEscaped(char delemiter, String s) {
     932    private static String[] splitEscaped(char delimiter, String s) {
    926933        List<String> result = new ArrayList<String>();
    927934        boolean backslash = false;
     
    934941            } else if (ch == '\\') {
    935942                backslash = true;
    936             } else if (ch == delemiter) {
     943            } else if (ch == delimiter) {
    937944                result.add(item.toString());
    938945                item.setLength(0);
Note: See TracChangeset for help on using the changeset viewer.