Use Javadoc @code

This commit is contained in:
Gary Gregory 2024-07-29 07:59:59 -04:00
parent f30de86599
commit caa9dad996
2 changed files with 4 additions and 4 deletions

View File

@ -295,8 +295,8 @@ public class ListUtils {
* {@code true} if and only if both
* lists have the same size, and all corresponding pairs of elements in
* the two lists are <em>equal</em>. (Two elements {@code e1} and
* {@code e2} are <em>equal</em> if <code>(e1==null ? e2==null :
* e1.equals(e2))</code>.) In other words, two lists are defined to be
* {@code e2} are <em>equal</em> if {@code (e1==null ? e2==null :
* e1.equals(e2))}.) In other words, two lists are defined to be
* equal if they contain the same elements in the same order. This
* definition ensures that the equals method works properly across
* different implementations of the {@code List} interface.

View File

@ -321,8 +321,8 @@ public class CompositeMap<K, V> extends AbstractIterableMap<K, V> implements Ser
* operation may be used to distinguish these two cases.
*
* <p>More formally, if this map contains a mapping from a key
* {@code k} to a value {@code v} such that <code>(key==null ? k==null :
* key.equals(k))</code>, then this method returns {@code v}; otherwise
* {@code k} to a value {@code v} such that {@code (key==null ? k==null :
* key.equals(k))}, then this method returns {@code v}; otherwise
* it returns {@code null}. (There can be at most one such mapping.)
*
* @param key key whose associated value is to be returned.