Skip to content

Commit

Permalink
Use Javadoc @code
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Jul 29, 2024
1 parent f30de86 commit caa9dad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/apache/commons/collections4/ListUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,8 @@ public static <E> List<E> intersection(final List<? extends E> list1, final List
* {@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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,8 @@ public boolean equals(final Object obj) {
* 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.
Expand Down

0 comments on commit caa9dad

Please sign in to comment.