Skip to content
Permalink
Browse files

Fixed: Fix javadoc build for OpenJDK 11

(OFBIZ-10757)

This removes HTML5 deprecated stuff such as ‘<tt>’ elements, and
‘cellpadding’ table attributes which were breaking the ‘:javadoc’
Gradle task when using OpenJDK 11.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1859123 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
mthl committed May 11, 2019
1 parent 2da3a43 commit 3acf261b7fd1f411e7c0d26c2d1f6854930f3f27
@@ -89,12 +89,12 @@ public boolean hasChanged() {

/**
* Notify all of the observers.
* <p>Each <code>Observer</code> has its <code>update</code> method called with two
* arguments: this observable object and <code>null</code>. In other
* <p>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:
* </p>
* <blockquote>
* <tt>notifyObservers(null)</tt>
* {@code notifyObservers(null)}
* </blockquote>
*
*/
@@ -536,7 +536,7 @@ public static String padNumberString(String numberString, int targetMinLength) {
/** Converts operator substitutions (@and, @or, etc) back to their original form.
* <p>OFBiz script syntax provides special forms of common operators to make
* it easier to embed logical expressions in XML</p>
* <table border="1" cellpadding="2">
* <table>
* <caption>OFBiz XML operators</caption>
* <tr><th>OFBiz operator</th><th>Substitution</th></tr>
* <tr><td><strong>@and</strong></td><td>&amp;&amp;</td></tr>
@@ -1168,11 +1168,12 @@ public static Date getLatestDate() {
}

/**
* Returns a copy of <code>date</code> that cannot be modified.
* Returns a copy of {@code date} that cannot be modified.
* Attempts to modify the returned date will result in an
* <tt>UnsupportedOperationException</tt>.
* {@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) {
@@ -55,7 +55,8 @@
/** Implements Unified Expression Language functions.
* <p>Built-in functions are divided into a number of
* namespace prefixes:</p>
* <table border="1" summary="">
* <table border="1">
* <caption>Miscellaneous date/time functions</caption>
* <tr><td colspan="2"><b><code>date:</code> contains miscellaneous date/time functions</b></td></tr>
* <tr><td><code>date:second(Timestamp, TimeZone, Locale)</code></td><td>Returns the second value of <code>Timestamp</code> (0 - 59).</td></tr>
* <tr><td><code>date:minute(Timestamp, TimeZone, Locale)</code></td><td>Returns the minute value of <code>Timestamp</code> (0 - 59).</td></tr>
@@ -33,25 +33,22 @@
/**
* 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.<p>
* to, or greater than the second.
* <p>
* The implementor must ensure that <tt>sgn(compare(x, y)) ==
* -sgn(compare(y, x))</tt> for all <tt>x</tt> and <tt>y</tt>. (This
* implies that <tt>compare(x, y)</tt> must throw an exception if and only
* if <tt>compare(y, x)</tt> throws an exception.)<p>
* </p>
* 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.)
* <p>
* The implementor must also ensure that the relation is transitive:
* <tt>((compare(x, y)&gt;0) &amp;&amp; (compare(y, z)&gt;0))</tt> implies
* <tt>compare(x, z)&gt;0</tt>.<p>
* </p>
* {@code (compare(x, y) > 0) && (compare(y, z) > 0)} implies
* {@code compare(x, z) > 0}.
* <p>
* 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}.
* <p>
* Finally, the implementer must ensure that <tt>compare(x, y)==0</tt>
* implies that <tt>sgn(compare(x, z))==sgn(compare(y, z))</tt> for all
* <tt>z</tt>.
* </p>
* It is generally the case, but <i>not</i> strictly required that
* <tt>(compare(x, y)==0) == (x.equals(y))</tt>. 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."
@@ -36,7 +36,7 @@
* <p>
* 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
* <tt>getInstance()</tt> static method.
* {@code getInstance()} static method.
* </p>
*/
public final class Start {
@@ -25,9 +25,9 @@
* A command line argument passed to OFBiz
*
* <p>
* A <tt>StartupCommand</tt> 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: <code>java -jar build/libs/ofbiz.jar --status</code> where status is a command.
* For example: {@code java -jar build/libs/ofbiz.jar --status} where status is a command.
* </p>
*/
public final class StartupCommand {

0 comments on commit 3acf261

Please sign in to comment.
You can’t perform that action at this time.