Changeset 13493 in josm for trunk/src/org


Ignore:
Timestamp:
2018-03-04T01:20:15+01:00 (7 years ago)
Author:
Don-vip
Message:

see #11924, see #15560, see #16048 - tt HTML tag is deprecated in HTML5: use code instead

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

Legend:

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

    r13288 r13493  
    297297     * Adds a new download task to the supported ones.
    298298     * @param taskClass The new download task to add
    299      * @return <tt>true</tt> (as specified by {@link Collection#add})
     299     * @return <code>true</code> (as specified by {@link Collection#add})
    300300     */
    301301    public final boolean addDownloadTaskClass(Class<? extends DownloadTask> taskClass) {
  • trunk/src/org/openstreetmap/josm/data/UserIdentityManager.java

    r12881 r13493  
    77
    88import org.openstreetmap.josm.Main;
    9 import org.openstreetmap.josm.spi.preferences.PreferenceChangeEvent;
    10 import org.openstreetmap.josm.spi.preferences.PreferenceChangedListener;
    119import org.openstreetmap.josm.data.oauth.OAuthAccessTokenHolder;
    1210import org.openstreetmap.josm.data.osm.User;
    1311import org.openstreetmap.josm.data.osm.UserInfo;
    14 import org.openstreetmap.josm.spi.preferences.StringSetting;
    1512import org.openstreetmap.josm.gui.progress.NullProgressMonitor;
    1613import org.openstreetmap.josm.io.OnlineResource;
     
    2017import org.openstreetmap.josm.io.auth.CredentialsManager;
    2118import org.openstreetmap.josm.spi.preferences.Config;
     19import org.openstreetmap.josm.spi.preferences.PreferenceChangeEvent;
     20import org.openstreetmap.josm.spi.preferences.PreferenceChangedListener;
     21import org.openstreetmap.josm.spi.preferences.StringSetting;
    2222import org.openstreetmap.josm.tools.CheckParameterUtil;
    2323import org.openstreetmap.josm.tools.JosmRuntimeException;
     
    3838 * The current user is fully identified if JOSM knows both the user name and the unique
    3939 * id of the users OSM account. The latter is retrieved from the OSM server with a
    40  * <tt>GET /api/0.6/user/details</tt> request, submitted with the user name and password
     40 * <code>GET /api/0.6/user/details</code> request, submitted with the user name and password
    4141 * of the current user.
    4242 *
  • trunk/src/org/openstreetmap/josm/data/imagery/OffsetBookmark.java

    r13243 r13493  
    312312     * @return the bookmark at the given index
    313313     * @throws IndexOutOfBoundsException if the index is out of range
    314      *         (<tt>index &lt; 0 || index &gt;= size()</tt>)
     314     *         (<code>index &lt; 0 || index &gt;= size()</code>)
    315315     * @since 11651
    316316     */
  • trunk/src/org/openstreetmap/josm/data/osm/DefaultNameFormatter.java

    r13391 r13493  
    9696     * Replies the list of naming tags used in relations. The list is given (in this order) by:
    9797     * <ul>
    98      *   <li>by the tag names in the preference <tt>relation.nameOrder</tt></li>
     98     *   <li>by the tag names in the preference <code>relation.nameOrder</code></li>
    9999     *   <li>by the default tags in {@link #DEFAULT_NAMING_TAGS_FOR_RELATIONS}
    100100     * </ul>
     
    113113    /**
    114114     * Decorates the name of primitive with its id, if the preference
    115      * <tt>osm-primitives.showid</tt> is set. Shows unique id if osm-primitives.showid.new-primitives is set
     115     * <code>osm-primitives.showid</code> is set. Shows unique id if osm-primitives.showid.new-primitives is set
    116116     *
    117117     * @param name  the name without the id
     
    511511    /**
    512512     * Decorates the name of primitive with its id, if the preference
    513      * <tt>osm-primitives.showid</tt> is set.
     513     * <code>osm-primitives.showid</code> is set.
    514514     *
    515515     * The id is append to the {@link StringBuilder} passed in <code>name</code>.
  • trunk/src/org/openstreetmap/josm/data/osm/IPrimitive.java

    r13103 r13493  
    219219    /**
    220220     * Replies the name of this primitive. The default implementation replies the value
    221      * of the tag <tt>name</tt> or null, if this tag is not present.
     221     * of the tag <code>name</code> or null, if this tag is not present.
    222222     *
    223223     * @return the name of this primitive
  • trunk/src/org/openstreetmap/josm/data/osm/Way.java

    r13434 r13493  
    527527    /**
    528528     * Returns the last node of this way.
    529      * The result equals <tt>{@link #getNode getNode}({@link #getNodesCount getNodesCount} - 1)</tt>.
     529     * The result equals <code>{@link #getNode getNode}({@link #getNodesCount getNodesCount} - 1)</code>.
    530530     * @return the last node of this way
    531531     * @since 1400
  • trunk/src/org/openstreetmap/josm/data/osm/history/HistoryOsmPrimitive.java

    r12620 r13493  
    301301    /**
    302302     * Replies the name of this primitive. The default implementation replies the value
    303      * of the tag <tt>name</tt> or null, if this tag is not present.
     303     * of the tag <code>name</code> or null, if this tag is not present.
    304304     *
    305305     * @return the name of this primitive
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/relations/Multipolygon.java

    r13206 r13493  
    4040
    4141    /** preference key for a collection of roles which indicate that the respective member belongs to an
    42      * <em>outer</em> polygon. Default is <tt>outer</tt>.
     42     * <em>outer</em> polygon. Default is <code>outer</code>.
    4343     */
    4444    public static final String PREF_KEY_OUTER_ROLES = "mappaint.multipolygon.outer.roles";
     
    5050
    5151    /** preference key for a collection of roles which indicate that the respective member belongs to an
    52      * <em>inner</em> polygon. Default is <tt>inner</tt>.
     52     * <em>inner</em> polygon. Default is <code>inner</code>.
    5353     */
    5454    public static final String PREF_KEY_INNER_ROLES = "mappaint.multipolygon.inner.roles";
  • trunk/src/org/openstreetmap/josm/data/preferences/AbstractProperty.java

    r13001 r13493  
    140140        /**
    141141         * Constructs a new {@code InvalidPreferenceValueException} with the specified cause and a detail message of
    142          * <tt>(cause==null ? null : cause.toString())</tt> (which typically contains the class and detail message of <tt>cause</tt>).
     142         * <code>(cause==null ? null : cause.toString())</code> (which typically contains the class and detail message of <code>cause</code>).
    143143         *
    144144         * @param cause the cause (which is saved for later retrieval by the {@link #getCause()} method).
  • trunk/src/org/openstreetmap/josm/data/projection/ProjectionConfigurationException.java

    r12453 r13493  
    1616     *         by the {@link #getMessage()} method).
    1717     * @param  cause the cause (which is saved for later retrieval by the
    18      *         {@link #getCause()} method).  (A <tt>null</tt> value is
     18     *         {@link #getCause()} method).  (A <code>null</code> value is
    1919     *         permitted, and indicates that the cause is nonexistent or unknown.)
    2020     */
     
    3535     * Constructs a new {@code ProjectionConfigurationException}.
    3636     * @param  cause the cause (which is saved for later retrieval by the
    37      *         {@link #getCause()} method).  (A <tt>null</tt> value is
     37     *         {@link #getCause()} method).  (A <code>null</code> value is
    3838     *         permitted, and indicates that the cause is nonexistent or unknown.)
    3939     */
  • trunk/src/org/openstreetmap/josm/data/validation/tests/RelationChecker.java

    r12976 r13493  
    178178     * @param member to be verified
    179179     * @param n relation to be verified
    180      * @return <tt>true</tt> if member passed any of definition within preset
     180     * @return <code>true</code> if member passed any of definition within preset
    181181     *
    182182     */
  • trunk/src/org/openstreetmap/josm/gui/dialogs/ToggleDialog.java

    r13265 r13493  
    278278     * The action to toggle the visibility state of this toggle dialog.
    279279     *
    280      * Emits {@link PropertyChangeEvent}s for the property <tt>selected</tt>:
     280     * Emits {@link PropertyChangeEvent}s for the property <code>selected</code>:
    281281     * <ul>
    282282     *   <li>true, if the dialog is currently visible</li>
  • trunk/src/org/openstreetmap/josm/gui/help/HelpContentReader.java

    r10137 r13493  
    1414 * help browser.
    1515 *
    16  * The help content has to be <strong>filtered</strong> because only the main content <tt>&lt;div&gt;</tt>
     16 * The help content has to be <strong>filtered</strong> because only the main content <code>&lt;div&gt;</code>
    1717 * of a Wiki help page is displayed in the internal help browser.
    1818 *
  • trunk/src/org/openstreetmap/josm/gui/help/HelpContentReaderException.java

    r10137 r13493  
    2323     * Constructs a new {@code HelpContentReaderException}.
    2424     * @param cause the cause (which is saved for later retrieval by the {@link #getCause()} method).
    25      *        (A <tt>null</tt> value is permitted, and indicates that the cause is nonexistent or unknown.)
     25     *        (A <code>null</code> value is permitted, and indicates that the cause is nonexistent or unknown.)
    2626     * @param responseCode HTTP response code related to the wiki access exception (0 if not applicable)
    2727     */
  • trunk/src/org/openstreetmap/josm/gui/io/DownloadFileTask.java

    r13204 r13493  
    6060         *          later retrieval by the {@link #getMessage()} method.
    6161         * @param  cause the cause (which is saved for later retrieval by the
    62          *         {@link #getCause()} method).  (A <tt>null</tt> value is
     62         *         {@link #getCause()} method).  (A <code>null</code> value is
    6363         *         permitted, and indicates that the cause is nonexistent or unknown.)
    6464         */
  • trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java

    r13436 r13493  
    8585     *    text: a_tag_name;
    8686     * </pre>
    87      * results in a tag reference for the tag <tt>a_tag_name</tt> in the
     87     * results in a tag reference for the tag <code>a_tag_name</code> in the
    8888     * style cascade.
    8989     */
  • trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/LabelCompositionStrategy.java

    r12881 r13493  
    88import java.util.Objects;
    99
     10import org.openstreetmap.josm.data.osm.OsmPrimitive;
     11import org.openstreetmap.josm.spi.preferences.Config;
    1012import org.openstreetmap.josm.spi.preferences.PreferenceChangeEvent;
    1113import org.openstreetmap.josm.spi.preferences.PreferenceChangedListener;
    12 import org.openstreetmap.josm.data.osm.OsmPrimitive;
    13 import org.openstreetmap.josm.spi.preferences.Config;
    1414import org.openstreetmap.josm.tools.LanguageInfo;
    1515
     
    3030 *   of one of the configured "name tags". The list of relevant name tags can be configured
    3131 *   in the JOSM preferences
    32  *   see the preference options <tt>mappaint.nameOrder</tt> and <tt>mappaint.nameComplementOrder</tt>.</li>
     32 *   see the preference options <code>mappaint.nameOrder</code> and <code>mappaint.nameComplementOrder</code>.</li>
    3333 * </ul>
    3434 * @since  3987 (creation)
     
    136136     * Strategy where the label is given by the value of one of the configured "name tags".
    137137     * The list of relevant name tags can be configured in the JOSM preferences
    138      * see the preference options <tt>mappaint.nameOrder</tt> and <tt>mappaint.nameComplementOrder</tt>
     138     * see the preference options <code>mappaint.nameOrder</code> and <code>mappaint.nameComplementOrder</code>
    139139     */
    140140    class DeriveLabelFromNameTagsCompositionStrategy implements LabelCompositionStrategy, PreferenceChangedListener {
     
    230230         * {@link #DEFAULT_NAME_TAGS} and {@link #DEFAULT_NAME_COMPLEMENT_TAGS})
    231231         * and from name tags configured in the preferences using the keys
    232          * <tt>mappaint.nameOrder</tt> and <tt>mappaint.nameComplementOrder</tt>.
     232         * <code>mappaint.nameOrder</code> and <code>mappaint.nameComplementOrder</code>.
    233233         */
    234234        public final void initNameTagsFromPreferences() {
  • trunk/src/org/openstreetmap/josm/gui/tagging/TagTable.java

    r12620 r13493  
    566566    /**
    567567     * This is a custom implementation of the CellEditorRemover used in JTable
    568      * to handle the client property <tt>terminateEditOnFocusLost</tt>.
     568     * to handle the client property <code>terminateEditOnFocusLost</code>.
    569569     *
    570570     * This implementation also checks whether focus is transferred to one of a list
  • trunk/src/org/openstreetmap/josm/gui/util/GuiHelper.java

    r13173 r13493  
    246246     * <a href="http://docs.oracle.com/javase/tutorial/uiswing/concurrency/dispatch.html">Event Dispatch Thread</a>
    247247     * and return a value.
    248      * @param <V> the result type of method <tt>call</tt>
     248     * @param <V> the result type of method <code>call</code>
    249249     * @param callable The callable to execute
    250250     * @return The computed result
  • trunk/src/org/openstreetmap/josm/io/ChangesetQuery.java

    r12743 r13493  
    350350         * @param message the detail message. The detail message is saved for later retrieval by the {@link #getMessage()} method.
    351351         * @param  cause the cause (which is saved for later retrieval by the {@link #getCause()} method).
    352          *         (A <tt>null</tt> value is permitted, and indicates that the cause is nonexistent or unknown.)
     352         *         (A <code>null</code> value is permitted, and indicates that the cause is nonexistent or unknown.)
    353353         */
    354354        public ChangesetQueryUrlException(String message, Throwable cause) {
     
    358358        /**
    359359         * Constructs a new {@code ChangesetQueryUrlException} with the specified cause and a detail message of
    360          * <tt>(cause==null ? null : cause.toString())</tt> (which typically contains the class and detail message of <tt>cause</tt>).
     360         * <code>(cause==null ? null : cause.toString())</code> (which typically contains the class and detail message of <code>cause</code>).
    361361         *
    362362         * @param  cause the cause (which is saved for later retrieval by the {@link #getCause()} method).
    363          *         (A <tt>null</tt> value is permitted, and indicates that the cause is nonexistent or unknown.)
     363         *         (A <code>null</code> value is permitted, and indicates that the cause is nonexistent or unknown.)
    364364         */
    365365        public ChangesetQueryUrlException(Throwable cause) {
  • trunk/src/org/openstreetmap/josm/io/DefaultProxySelector.java

    r12846 r13493  
    5151    /**
    5252     * The {@link ProxySelector} provided by the JDK will retrieve proxy information
    53      * from the system settings, if the system property <tt>java.net.useSystemProxies</tt>
     53     * from the system settings, if the system property <code>java.net.useSystemProxies</code>
    5454     * is defined <strong>at startup</strong>. It has no effect if the property is set
    5555     * later by the application.
     
    6767    /**
    6868     * The {@link ProxySelector} provided by the JDK will retrieve proxy information
    69      * from the system settings, if the system property <tt>java.net.useSystemProxies</tt>
     69     * from the system settings, if the system property <code>java.net.useSystemProxies</code>
    7070     * is defined <strong>at startup</strong>. If the property is set later by the application,
    7171     * this has no effect.
    7272     *
    73      * @return true, if <tt>java.net.useSystemProxies</tt> was set to true at class initialization time
     73     * @return true, if <code>java.net.useSystemProxies</code> was set to true at class initialization time
    7474     *
    7575     */
  • trunk/src/org/openstreetmap/josm/io/OsmApiException.java

    r12992 r13493  
    7171    /**
    7272     * Constructs an {@code OsmApiException} with the specified cause and a detail message of
    73      * <tt>(cause==null ? null : cause.toString())</tt>
    74      * (which typically contains the class and detail message of <tt>cause</tt>).
     73     * <code>(cause==null ? null : cause.toString())</code>
     74     * (which typically contains the class and detail message of <code>cause</code>).
    7575     *
    7676     * @param cause the cause (which is saved for later retrieval by the {@link #getCause} method).
    77      *              A <tt>null</tt> value is permitted, and indicates that the cause is nonexistent or unknown.
     77     *              A <code>null</code> value is permitted, and indicates that the cause is nonexistent or unknown.
    7878     */
    7979    public OsmApiException(Throwable cause) {
  • trunk/src/org/openstreetmap/josm/io/OsmApiInitializationException.java

    r6070 r13493  
    2020    /**
    2121     * Constructs an {@code OsmApiInitializationException} with the specified cause and a detail message of
    22      * <tt>(cause==null ? null : cause.toString())</tt>
    23      * (which typically contains the class and detail message of <tt>cause</tt>).
     22     * <code>(cause==null ? null : cause.toString())</code>
     23     * (which typically contains the class and detail message of <code>cause</code>).
    2424     *
    2525     * @param cause the cause (which is saved for later retrieval by the {@link #getCause} method).
    26      *              A <tt>null</tt> value is permitted, and indicates that the cause is nonexistent or unknown.
     26     *              A <code>null</code> value is permitted, and indicates that the cause is nonexistent or unknown.
    2727     */
    2828    public OsmApiInitializationException(Throwable cause) {
  • trunk/src/org/openstreetmap/josm/io/OsmServerBackreferenceReader.java

    r12713 r13493  
    170170    /**
    171171     * Scans a dataset for incomplete primitives. Depending on the configuration of this reader
    172      * incomplete primitives are read from the server with an individual <tt>/api/0.6/[way,relation]/#id/full</tt>
     172     * incomplete primitives are read from the server with an individual <code>/api/0.6/[way,relation]/#id/full</code>
    173173     * request.
    174174     *
  • trunk/src/org/openstreetmap/josm/io/OsmTransferCanceledException.java

    r8415 r13493  
    1919     * Constructs a new {@code OsmTransferCanceledException}, with given root cause.
    2020     * @param cause the cause (which is saved for later retrieval by the {@link #getCause} method).
    21      *              A <tt>null</tt> value is permitted, and indicates that the cause is nonexistent or unknown.
     21     *              A <code>null</code> value is permitted, and indicates that the cause is nonexistent or unknown.
    2222     */
    2323    public OsmTransferCanceledException(Throwable cause) {
  • trunk/src/org/openstreetmap/josm/io/OsmTransferException.java

    r6070 r13493  
    2828    /**
    2929     * Constructs an {@code OsmTransferException} with the specified cause and a detail message of
    30      * <tt>(cause==null ? null : cause.toString())</tt>
    31      * (which typically contains the class and detail message of <tt>cause</tt>).
     30     * <code>(cause==null ? null : cause.toString())</code>
     31     * (which typically contains the class and detail message of <code>cause</code>).
    3232     *
    3333     * @param cause the cause (which is saved for later retrieval by the {@link #getCause} method).
    34      *              A <tt>null</tt> value is permitted, and indicates that the cause is nonexistent or unknown.
     34     *              A <code>null</code> value is permitted, and indicates that the cause is nonexistent or unknown.
    3535     */
    3636    public OsmTransferException(Throwable cause) {
  • trunk/src/org/openstreetmap/josm/plugins/PluginDownloadException.java

    r9621 r13493  
    2828    /**
    2929     * Constructs a new {@code PluginDownloadException} with the specified cause and a detail message of
    30      * <tt>(cause==null ? null : cause.toString())</tt> (which typically contains the class and detail message of <tt>cause</tt>).
     30     * <code>(cause==null ? null : cause.toString())</code> (which typically contains the class and detail message of <code>cause</code>).
    3131     * @param cause cause the cause (which is saved for later retrieval by the {@link #getCause()} method).
    3232     */
  • trunk/src/org/openstreetmap/josm/plugins/PluginException.java

    r10050 r13493  
    3939    /**
    4040     * Constructs a new {@code PluginException} with the specified plugin name, cause and a detail message of
    41      * <tt>(cause==null ? null : cause.toString())</tt> (which typically contains the class and detail message of <tt>cause</tt>).
     41     * <code>(cause==null ? null : cause.toString())</code> (which typically contains the class and detail message of <code>cause</code>).
    4242     * @param name plugin name
    4343     * @param cause cause the cause (which is saved for later retrieval by the {@link #getCause()} method).
  • trunk/src/org/openstreetmap/josm/plugins/PluginListParseException.java

    r10050 r13493  
    1919    /**
    2020     * Constructs a new {@code PluginListParseException} with the specified cause and a detail message of
    21      * <tt>(cause==null ? null : cause.toString())</tt> (which typically contains the class and detail message of <tt>cause</tt>).
     21     * <code>(cause==null ? null : cause.toString())</code> (which typically contains the class and detail message of <code>cause</code>).
    2222     * @param cause cause the cause (which is saved for later retrieval by the {@link #getCause()} method).
    2323     */
  • trunk/src/org/openstreetmap/josm/tools/I18n.java

    r13356 r13493  
    571571     *
    572572     * Ignored if localeName is null. If the locale with name <code>localName</code>
    573      * isn't found the default local is set to <tt>en</tt> (english).
     573     * isn't found the default local is set to <code>en</code> (english).
    574574     *
    575575     * @param localeName the locale name. Ignored if null.
  • trunk/src/org/openstreetmap/josm/tools/ImageProvider.java

    r13369 r13493  
    360360    /**
    361361     * Set an id used for caching.
    362      * If name starts with <tt>http://</tt> Id is not used for the cache.
     362     * If name starts with <code>http://</code> Id is not used for the cache.
    363363     * (A URL is unique anyway.)
    364364     * @param id the id for the cached image
  • trunk/src/org/openstreetmap/josm/tools/JosmRuntimeException.java

    r11374 r13493  
    2020    /**
    2121     * Constructs a new {@code JosmRuntimeException} with the specified cause and a detail message of
    22      * <tt>(cause==null ? null : cause.toString())</tt> (which typically contains the class and detail message of <tt>cause</tt>).
     22     * <code>(cause==null ? null : cause.toString())</code> (which typically contains the class and detail message of <code>cause</code>).
    2323     * This constructor is useful for runtime exceptions that are little more than wrappers for other throwables.
    2424     *
  • trunk/src/org/openstreetmap/josm/tools/UncheckedParseException.java

    r9385 r13493  
    3030     * @param message the detail message (which is saved for later retrieval by the {@link #getMessage()} method).
    3131     * @param cause   the cause (which is saved for later retrieval by the {@link #getCause()} method).
    32      *                (A <tt>null</tt> value is permitted, and indicates that the cause is nonexistent or unknown.)
     32     *                (A <code>null</code> value is permitted, and indicates that the cause is nonexistent or unknown.)
    3333     */
    3434    public UncheckedParseException(String message, Throwable cause) {
     
    4040     *
    4141     * @param cause the cause (which is saved for later retrieval by the {@link #getCause()} method).
    42      *              (A <tt>null</tt> value is permitted, and indicates that the cause is nonexistent or unknown.)
     42     *              (A <code>null</code> value is permitted, and indicates that the cause is nonexistent or unknown.)
    4343     */
    4444    public UncheckedParseException(Throwable cause) {
  • trunk/src/org/openstreetmap/josm/tools/UserCancelException.java

    r8919 r13493  
    2121     * @param  message the detail message (which is saved for later retrieval by the {@link #getMessage()} method).
    2222     * @param  cause the cause (which is saved for later retrieval by the {@link #getCause()} method).
    23      *         (A <tt>null</tt> value is permitted, and indicates that the cause is nonexistent or unknown.)
     23     *         (A <code>null</code> value is permitted, and indicates that the cause is nonexistent or unknown.)
    2424     */
    2525    public UserCancelException(String message, Throwable cause) {
     
    4040     *
    4141     * @param  cause the cause (which is saved for later retrieval by the {@link #getCause()} method).
    42      *         (A <tt>null</tt> value is permitted, and indicates that the cause is nonexistent or unknown.)
     42     *         (A <code>null</code> value is permitted, and indicates that the cause is nonexistent or unknown.)
    4343     */
    4444    public UserCancelException(Throwable cause) {
Note: See TracChangeset for help on using the changeset viewer.