Ignore:
Timestamp:
2016-04-10T23:53:54+02:00 (8 years ago)
Author:
Don-vip
Message:

sonar, javadoc

Location:
trunk/src/org/openstreetmap/josm/data/validation/util
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/util/Entities.java

    r9970 r10137  
    3030 * @see <a href="http://www.w3.org/TR/html401/charset.html#h-5.3">HTML 4.01 Character References</a>
    3131 * @see <a href="http://www.w3.org/TR/html401/charset.html#code-position">HTML 4.01 Code positions</a>
     32 * @since 3669
    3233 */
    3334public final class Entities {
     
    340341    }
    341342
     343    /**
     344     * Returns unescaped entity representation.
     345     * @param str entity
     346     * @return unescaped entity representation
     347     */
    342348    public static String unescape(String str) {
    343349        int firstAmp = str.indexOf('&');
     
    357363                int amphersandIdx = str.indexOf('&', i + 1);
    358364                if (amphersandIdx != -1 && amphersandIdx < semiColonIdx) {
    359                     // Then the text looks like &...&...;
     365                    // Then the text looks like "&...&...;"
    360366                    res.append(c);
    361367                    continue;
     
    365371                int entityContentLen = entityContent.length();
    366372                if (entityContentLen > 0) {
    367                     if (entityContent.charAt(0) == '#') { // escaped value content is an integer (decimal or
    368                         // hexidecimal)
     373                    if (entityContent.charAt(0) == '#') { // escaped value content is an integer (decimal or hexidecimal)
    369374                        if (entityContentLen > 1) {
    370375                            char isHexChar = entityContent.charAt(1);
  • trunk/src/org/openstreetmap/josm/data/validation/util/MultipleNameVisitor.java

    r8873 r10137  
    1919public class MultipleNameVisitor extends NameVisitor {
    2020
     21    /**
     22     * Maximum displayed length, in characters.
     23     */
    2124    public static final int MULTIPLE_NAME_MAX_LENGTH = 80;
    2225
  • trunk/src/org/openstreetmap/josm/data/validation/util/NameVisitor.java

    r8509 r10137  
    1919 * @author imi
    2020 */
    21 //TODO This class used to be in JOSM but it was removed. MultipleNameVisitor depends on it so I copied it here,
    22 // but MultipleNameVisitor should be refactored instead of using this class
    2321public class NameVisitor extends AbstractVisitor {
    2422
     
    2725     */
    2826    public String className;
     27
     28    /**
     29     * The plural name of the item class
     30     */
    2931    public String classNamePlural;
     32
    3033    /**
    3134     * The name of this item.
    3235     */
    3336    public String name = "";
     37
    3438    /**
    3539     * The icon of this item.
     
    3842
    3943    /**
    40      * If the node has a name-key or id-key, this is displayed. If not, (lat,lon)
    41      * is displayed.
     44     * If the node has a name-key or id-key, this is displayed. If not, (lat,lon) is displayed.
    4245     */
    4346    @Override
     
    6972    }
    7073
     74    /**
     75     * Returns an horizontal {@code JLabel} with icon and name.
     76     * @return horizontal {@code JLabel} with icon and name
     77     */
    7178    public JLabel toLabel() {
    7279        return new JLabel(name, icon, JLabel.HORIZONTAL);
Note: See TracChangeset for help on using the changeset viewer.