This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git

commit 7b8731c96a91018fcf06d6373151ff8620f9b8ce
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Fri Aug 9 15:12:43 2024 +0100

    Add explicit line breaks in Javadoc
---
 java/org/apache/el/lang/ELSupport.java | 23 ++++++++++++++---------
 1 file changed, 14 insertions(+), 9 deletions(-)

diff --git a/java/org/apache/el/lang/ELSupport.java 
b/java/org/apache/el/lang/ELSupport.java
index cd7a38130d..402ed20dbb 100644
--- a/java/org/apache/el/lang/ELSupport.java
+++ b/java/org/apache/el/lang/ELSupport.java
@@ -67,20 +67,20 @@ public class ELSupport {
 
     /**
      * Compare two objects, after coercing to the same type if appropriate.
-     *
+     * <p>
      * If the objects are identical, or they are equal according to
      * {@link #equals(ELContext, Object, Object)} then return 0.
-     *
+     * <p>
      * If either object is a BigDecimal, then coerce both to BigDecimal first.
      * Similarly for Double(Float), BigInteger, and Long(Integer, Char, Short, 
Byte).
-     *
+     * <p>
      * Otherwise, check that the first object is an instance of Comparable, 
and compare
      * against the second object. If that is null, return 1, otherwise
      * return the result of comparing against the second object.
-     *
+     * <p>
      * Similarly, if the second object is Comparable, if the first is null, 
return -1,
      * else return the result of comparing against the first object.
-     *
+     * <p>
      * A null object is considered as:
      * <ul>
      * <li>ZERO when compared with Numbers</li>
@@ -138,11 +138,15 @@ public class ELSupport {
 
     /**
      * Compare two objects for equality, after coercing to the same type if 
appropriate.
-     *
+     * <p>
      * If the objects are identical (including both null) return true.
+     * <p>
      * If either object is null, return false.
+     * <p>
      * If either object is Boolean, coerce both to Boolean and check equality.
+     * <p>
      * Similarly for Enum, String, BigDecimal, Double(Float), Long(Integer, 
Short, Byte, Character)
+     * <p>
      * Otherwise default to using Object.equals().
      *
      * @param ctx the context in which this equality test is taking place
@@ -187,9 +191,10 @@ public class ELSupport {
         }
     }
 
-    // Going to have to have some casts /raw types somewhere so doing it here
-    // keeps them all in one place. There might be a neater / better solution
-    // but I couldn't find it
+    /*
+     *  Going to have to have some casts /raw types somewhere so doing it here 
keeps them all in one place. There might
+     *  be a neater / better solution but I couldn't find it.
+     */
     @SuppressWarnings("unchecked")
     public static final Enum<?> coerceToEnum(final ELContext ctx, final Object 
obj,
             @SuppressWarnings("rawtypes") Class type) {


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to