From caa9dad9965a2d4edf86ee7c1cadceb1eeb89128 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Mon, 29 Jul 2024 07:59:59 -0400 Subject: [PATCH] Use Javadoc @code --- src/main/java/org/apache/commons/collections4/ListUtils.java | 4 ++-- .../org/apache/commons/collections4/map/CompositeMap.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/apache/commons/collections4/ListUtils.java b/src/main/java/org/apache/commons/collections4/ListUtils.java index 74db0b5d65..04744234ac 100644 --- a/src/main/java/org/apache/commons/collections4/ListUtils.java +++ b/src/main/java/org/apache/commons/collections4/ListUtils.java @@ -295,8 +295,8 @@ public static List intersection(final List 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 equal. (Two elements {@code e1} and - * {@code e2} are equal if (e1==null ? e2==null : - * e1.equals(e2)).) In other words, two lists are defined to be + * {@code e2} are equal 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. diff --git a/src/main/java/org/apache/commons/collections4/map/CompositeMap.java b/src/main/java/org/apache/commons/collections4/map/CompositeMap.java index d385e76643..5ad29f2489 100644 --- a/src/main/java/org/apache/commons/collections4/map/CompositeMap.java +++ b/src/main/java/org/apache/commons/collections4/map/CompositeMap.java @@ -321,8 +321,8 @@ public boolean equals(final Object obj) { * operation may be used to distinguish these two cases. * *

More formally, if this map contains a mapping from a key - * {@code k} to a value {@code v} such that (key==null ? k==null : - * key.equals(k)), 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.