Merge pull request #108 from antville/fix-javadoc-warnings

Fix JavaDoc warnings
This commit is contained in:
Tobi Schäfer 2024-05-25 18:22:37 +02:00
commit d02dd85a45
Signed by: tobi
GPG key ID: 91FAE6FE2EBAC4C8
5 changed files with 68 additions and 68 deletions

View file

@ -280,9 +280,9 @@ public class ResponseBean implements Serializable {
} }
/** /**
* add an HTML formatted debug message to the end of the page. * add HTML formatted debug messages to the end of the page.
* *
* @param message the message * @param messages the list of messages
*/ */
public void debug(String... messages) { public void debug(String... messages) {
if (messages == null) { if (messages == null) {

View file

@ -384,7 +384,7 @@ public final class ResponseTrans extends Writer implements Serializable {
} }
/** /**
* Replace special characters with entities, including <, > and ", thus allowing * Replace special characters with entities, including {@code <}, {@code >} and {@code "}, thus allowing
* no HTML tags. * no HTML tags.
*/ */
public synchronized void encode(Object what) { public synchronized void encode(Object what) {
@ -415,7 +415,7 @@ public final class ResponseTrans extends Writer implements Serializable {
} }
/** /**
* Replace special characters with entities, including <, > and ", thus allowing * Replace special characters with entities, including {@code <}, {@code >} and {@code "}, thus allowing
* no HTML tags. * no HTML tags.
*/ */
public synchronized void encodeXml(Object what) { public synchronized void encodeXml(Object what) {

View file

@ -514,7 +514,7 @@ public class ImageWrapper {
/** /**
* Reduces the colors used in the image. Necessary before saving as GIF. * Reduces the colors used in the image. Necessary before saving as GIF.
* *
* @param colors colors the number of colors to use, usually <= 256. * @param colors colors the number of colors to use, usually {@literal <}= 256.
*/ */
public void reduceColors(int colors) { public void reduceColors(int colors) {
reduceColors(colors, false); reduceColors(colors, false);
@ -523,7 +523,7 @@ public class ImageWrapper {
/** /**
* Reduces the colors used in the image. Necessary before saving as GIF. * Reduces the colors used in the image. Necessary before saving as GIF.
* *
* @param colors colors the number of colors to use, usually <= 256. * @param colors colors the number of colors to use, usually {@literal <}= 256.
* @param dither ... * @param dither ...
*/ */
public void reduceColors(int colors, boolean dither) { public void reduceColors(int colors, boolean dither) {
@ -534,7 +534,7 @@ public class ImageWrapper {
* Reduce the colors used in this image. Useful and necessary before saving * Reduce the colors used in this image. Useful and necessary before saving
* the image as GIF file. * the image as GIF file.
* *
* @param colors the number of colors to use, usually <= 256. * @param colors the number of colors to use, usually {@literal <}= 256.
* @param dither ... * @param dither ...
* @param alphaToBitmask ... * @param alphaToBitmask ...
*/ */

View file

@ -753,7 +753,7 @@ public abstract class AbstractServletClient extends HttpServlet {
* <strong>IMPLEMENTATION NOTE</strong>: URL decoding is performed * <strong>IMPLEMENTATION NOTE</strong>: URL decoding is performed
* individually on the parsed name and value elements, rather than on * individually on the parsed name and value elements, rather than on
* the entire query string ahead of time, to properly deal with the case * the entire query string ahead of time, to properly deal with the case
* where the name or value includes an encoded "=" or "&" character * where the name or value includes an encoded {@code =} or {@code &} character
* that would otherwise be interpreted as a delimiter. * that would otherwise be interpreted as a delimiter.
* *
* NOTE: byte array data is modified by this method. Caller beware. * NOTE: byte array data is modified by this method. Caller beware.

View file

@ -127,7 +127,7 @@ public final class HtmlEncoder {
/** /**
* Do "smart" encodging on a string. This means that valid HTML entities and tags, * Do "smart" encodging on a string. This means that valid HTML entities and tags,
* Helma macros and HTML comments are passed through unescaped, while * Helma macros and HTML comments are passed through unescaped, while
* other occurrences of '<', '>' and '&' are encoded to HTML entities. * other occurrences of {@code <}, {@code >} and {@code &} are encoded to HTML entities.
*/ */
public final static String encode(String str) { public final static String encode(String str) {
if (str == null) { if (str == null) {
@ -151,7 +151,7 @@ public final class HtmlEncoder {
/** /**
* Do "smart" encodging on a string. This means that valid HTML entities and tags, * Do "smart" encodging on a string. This means that valid HTML entities and tags,
* Helma macros and HTML comments are passed through unescaped, while * Helma macros and HTML comments are passed through unescaped, while
* other occurrences of '<', '>' and '&' are encoded to HTML entities. * other occurrences of {@code <}, {@code >} and {@code &} are encoded to HTML entities.
*/ */
public final static void encode(String str, StringBuffer ret) { public final static void encode(String str, StringBuffer ret) {
encode(str, ret, false, null); encode(str, ret, false, null);
@ -160,7 +160,7 @@ public final class HtmlEncoder {
/** /**
* Do "smart" encodging on a string. This means that valid HTML entities and tags, * Do "smart" encodging on a string. This means that valid HTML entities and tags,
* Helma macros and HTML comments are passed through unescaped, while * Helma macros and HTML comments are passed through unescaped, while
* other occurrences of '<', '>' and '&' are encoded to HTML entities. * other occurrences of {@code <}, {@code >} and {@code &} are encoded to HTML entities.
* *
* @param str the string to encode * @param str the string to encode
* @param ret the string buffer to encode to * @param ret the string buffer to encode to