diff --git a/framework/base/src/main/java/org/apache/ofbiz/base/util/Observable.java b/framework/base/src/main/java/org/apache/ofbiz/base/util/Observable.java index 4e0babffcf..faa11624b1 100644 --- a/framework/base/src/main/java/org/apache/ofbiz/base/util/Observable.java +++ b/framework/base/src/main/java/org/apache/ofbiz/base/util/Observable.java @@ -89,12 +89,12 @@ public final class Observable { /** * Notify all of the observers. - *

Each Observer has its update method called with two - * arguments: this observable object and null. In other + *

Each {@code Observer} has its {@code update} method called with two + * arguments: this observable object and {@code null}. In other * words, this method is equivalent to: *

*
- * notifyObservers(null) + * {@code notifyObservers(null)} *
* */ diff --git a/framework/base/src/main/java/org/apache/ofbiz/base/util/StringUtil.java b/framework/base/src/main/java/org/apache/ofbiz/base/util/StringUtil.java index 798b4ba98c..daf39a444e 100644 --- a/framework/base/src/main/java/org/apache/ofbiz/base/util/StringUtil.java +++ b/framework/base/src/main/java/org/apache/ofbiz/base/util/StringUtil.java @@ -536,7 +536,7 @@ public class StringUtil { /** Converts operator substitutions (@and, @or, etc) back to their original form. *

OFBiz script syntax provides special forms of common operators to make * it easier to embed logical expressions in XML

- * + *
* * * diff --git a/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilDateTime.java b/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilDateTime.java index 8c7bac3013..ab3e851a01 100644 --- a/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilDateTime.java +++ b/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilDateTime.java @@ -1168,11 +1168,12 @@ public final class UtilDateTime { } /** - * Returns a copy of date that cannot be modified. + * Returns a copy of {@code date} that cannot be modified. * Attempts to modify the returned date will result in an - * UnsupportedOperationException. + * {@code UnsupportedOperationException}. * - * @param date + * @param date the date to copy + * @return an immutable copy of {@code date}. */ public static Date unmodifiableDate(Date date) { if (date instanceof ImmutableDate) { diff --git a/framework/base/src/main/java/org/apache/ofbiz/base/util/string/UelFunctions.java b/framework/base/src/main/java/org/apache/ofbiz/base/util/string/UelFunctions.java index 2e732022a9..a2bcf7c8c3 100644 --- a/framework/base/src/main/java/org/apache/ofbiz/base/util/string/UelFunctions.java +++ b/framework/base/src/main/java/org/apache/ofbiz/base/util/string/UelFunctions.java @@ -56,7 +56,8 @@ import org.xml.sax.SAXException; /** Implements Unified Expression Language functions. *

Built-in functions are divided into a number of * namespace prefixes:

- *
OFBiz XML operators
OFBiz operatorSubstitution
@and&&
+ *
+ * * * * diff --git a/framework/common/src/main/java/org/apache/ofbiz/common/authentication/AuthenticationComparator.java b/framework/common/src/main/java/org/apache/ofbiz/common/authentication/AuthenticationComparator.java index 1b3bae675b..bb94b5263c 100644 --- a/framework/common/src/main/java/org/apache/ofbiz/common/authentication/AuthenticationComparator.java +++ b/framework/common/src/main/java/org/apache/ofbiz/common/authentication/AuthenticationComparator.java @@ -33,25 +33,22 @@ public class AuthenticationComparator implements Comparator { /** * Compares its two arguments for order. Returns a negative integer, * zero, or a positive integer as the first argument is less than, equal - * to, or greater than the second.

+ * to, or greater than the second. *

- * The implementor must ensure that sgn(compare(x, y)) == - * -sgn(compare(y, x)) for all x and y. (This - * implies that compare(x, y) must throw an exception if and only - * if compare(y, x) throws an exception.)

- *

+ * The implementor must ensure that {@code sgn(compare(x, y)) == -sgn(compare(y, x))} + * for all {@code x} and {@code y}. (This implies that {@code compare(x, y)} + * must throw an exception if and only if {@code compare(y, x)} throws an exception.) *

* The implementor must also ensure that the relation is transitive: - * ((compare(x, y)>0) && (compare(y, z)>0)) implies - * compare(x, z)>0.

- *

+ * {@code (compare(x, y) > 0) && (compare(y, z) > 0)} implies + * {@code compare(x, z) > 0}. + *

+ * Finally, the implementer must ensure that {@code compare(x, y) == 0} + * implies that {@code sgn(compare(x, z)) == sgn(compare(y, z))} for all + * {@code z}. *

- * Finally, the implementer must ensure that compare(x, y)==0 - * implies that sgn(compare(x, z))==sgn(compare(y, z)) for all - * z. - *

* It is generally the case, but not strictly required that - * (compare(x, y)==0) == (x.equals(y)). Generally speaking, + * {@code (compare(x, y) == 0) == x.equals(y)}. Generally speaking, * any comparator that violates this condition should clearly indicate * this fact. The recommended language is "Note: this comparator * imposes orderings that are inconsistent with equals." diff --git a/framework/start/src/main/java/org/apache/ofbiz/base/start/Start.java b/framework/start/src/main/java/org/apache/ofbiz/base/start/Start.java index 8f98fbbc1e..de43a33638 100644 --- a/framework/start/src/main/java/org/apache/ofbiz/base/start/Start.java +++ b/framework/start/src/main/java/org/apache/ofbiz/base/start/Start.java @@ -36,7 +36,7 @@ import java.util.concurrent.atomic.AtomicReference; *

* This class uses a singleton pattern to guarantee that only one server instance * is running in the VM. Client code retrieves the instance by using the - * getInstance() static method. + * {@code getInstance()} static method. *

*/ public final class Start { diff --git a/framework/start/src/main/java/org/apache/ofbiz/base/start/StartupCommand.java b/framework/start/src/main/java/org/apache/ofbiz/base/start/StartupCommand.java index dfae3fdf1d..8cc892ea7b 100644 --- a/framework/start/src/main/java/org/apache/ofbiz/base/start/StartupCommand.java +++ b/framework/start/src/main/java/org/apache/ofbiz/base/start/StartupCommand.java @@ -25,9 +25,9 @@ import java.util.Map; * A command line argument passed to OFBiz * *

- * A StartupCommand represents a processed command line argument passed + * A {@code StartupCommand} represents a processed command line argument passed * to OFBiz such that it is no longer a raw string but an instance of this class. - * For example: java -jar build/libs/ofbiz.jar --status where status is a command. + * For example: {@code java -jar build/libs/ofbiz.jar --status} where status is a command. *

*/ public final class StartupCommand {
Miscellaneous date/time functions
date: contains miscellaneous date/time functions
date:second(Timestamp, TimeZone, Locale)Returns the second value of Timestamp (0 - 59).
date:minute(Timestamp, TimeZone, Locale)Returns the minute value of Timestamp (0 - 59).