Ignore:
Timestamp:
2017-07-30T00:22:46+02:00 (7 years ago)
Author:
Don-vip
Message:

PMD - VariableNamingConventions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/XmlWriter.java

    r9828 r12537  
    6262                String encS = null;
    6363                if (!keepApos || unencoded.charAt(i) != '\'') {
    64                     encS = XmlWriter.encoding.get(unencoded.charAt(i));
     64                    encS = ENCODING.get(unencoded.charAt(i));
    6565                }
    6666                if (encS != null) {
     
    8080     * The output writer to save the values to.
    8181     */
    82     private static final Map<Character, String> encoding = new HashMap<>();
     82    private static final Map<Character, String> ENCODING = new HashMap<>();
    8383    static {
    84         encoding.put('<', "&lt;");
    85         encoding.put('>', "&gt;");
    86         encoding.put('"', "&quot;");
    87         encoding.put('\'', "&apos;");
    88         encoding.put('&', "&amp;");
    89         encoding.put('\n', "&#xA;");
    90         encoding.put('\r', "&#xD;");
    91         encoding.put('\t', "&#x9;");
     84        ENCODING.put('<', "&lt;");
     85        ENCODING.put('>', "&gt;");
     86        ENCODING.put('"', "&quot;");
     87        ENCODING.put('\'', "&apos;");
     88        ENCODING.put('&', "&amp;");
     89        ENCODING.put('\n', "&#xA;");
     90        ENCODING.put('\r', "&#xD;");
     91        ENCODING.put('\t', "&#x9;");
    9292    }
    9393
Note: See TracChangeset for help on using the changeset viewer.