Documentation cleanup (#612)

* Added the `@Deprecated` tag to instances where is was mentioned in documentation, but not for the actual code itself.

Changed one documentation link pointing at a non-existing item.

* As per PR suggestion.
This commit is contained in:
Koen De Groote 2021-06-29 13:06:07 +02:00 committed by GitHub
parent ff50180d86
commit 196081a317
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 19 additions and 3 deletions

View File

@ -587,6 +587,7 @@ class IndexImage {
* @deprecated Use {@link #getIndexColorModel(Image,int,int)} instead! * @deprecated Use {@link #getIndexColorModel(Image,int,int)} instead!
* This version will be removed in a later version of the API. * This version will be removed in a later version of the API.
*/ */
@Deprecated
public static IndexColorModel getIndexColorModel(Image pImage, int pNumberOfColors, boolean pFast) { public static IndexColorModel getIndexColorModel(Image pImage, int pNumberOfColors, boolean pFast) {
return getIndexColorModel(pImage, pNumberOfColors, pFast ? COLOR_SELECTION_FAST : COLOR_SELECTION_QUALITY); return getIndexColorModel(pImage, pNumberOfColors, pFast ? COLOR_SELECTION_FAST : COLOR_SELECTION_QUALITY);
} }

View File

@ -65,6 +65,7 @@ import java.io.FilenameFilter;
* @see WildcardStringParser * @see WildcardStringParser
* @deprecated * @deprecated
*/ */
@Deprecated
public class FilenameMaskFilter implements FilenameFilter { public class FilenameMaskFilter implements FilenameFilter {
// TODO: Rewrite to use regexp, or create new class // TODO: Rewrite to use regexp, or create new class

View File

@ -442,6 +442,7 @@ public class LittleEndianDataInputStream extends FilterInputStream implements Da
* @see java.io.BufferedReader#readLine() * @see java.io.BufferedReader#readLine()
* @see java.io.DataInputStream#readLine() * @see java.io.DataInputStream#readLine()
*/ */
@Deprecated
public String readLine() throws IOException { public String readLine() throws IOException {
DataInputStream ds = new DataInputStream(in); DataInputStream ds = new DataInputStream(in);
return ds.readLine(); return ds.readLine();

View File

@ -770,6 +770,7 @@ public final class StringUtil {
*/ */
/*public*/ /*public*/
@Deprecated
static String formatNumber(long pNum, int pLen) throws IllegalArgumentException { static String formatNumber(long pNum, int pLen) throws IllegalArgumentException {
StringBuilder result = new StringBuilder(); StringBuilder result = new StringBuilder();
@ -1464,6 +1465,7 @@ public final class StringUtil {
*/ */
/*public*/ /*public*/
@Deprecated
static String removeSubstring(final String pSource, final char pBeginBoundaryChar, final char pEndBoundaryChar, final int pOffset) { static String removeSubstring(final String pSource, final char pBeginBoundaryChar, final char pEndBoundaryChar, final int pOffset) {
StringBuilder filteredString = new StringBuilder(); StringBuilder filteredString = new StringBuilder();
boolean insideDemarcatedArea = false; boolean insideDemarcatedArea = false;

View File

@ -157,6 +157,7 @@ public class Time {
* @see #parseTime(String) * @see #parseTime(String)
* @deprecated * @deprecated
*/ */
@Deprecated
public String toString(String pFormatStr) { public String toString(String pFormatStr) {
TimeFormat tf = new TimeFormat(pFormatStr); TimeFormat tf = new TimeFormat(pFormatStr);
@ -174,6 +175,7 @@ public class Time {
* @see #toString(String) * @see #toString(String)
* @deprecated * @deprecated
*/ */
@Deprecated
public static Time parseTime(String pStr) { public static Time parseTime(String pStr) {
TimeFormat tf = TimeFormat.getInstance(); TimeFormat tf = TimeFormat.getInstance();

View File

@ -111,6 +111,7 @@ import java.io.PrintStream;
* @author <a href="mailto:eirik.torske@iconmedialab.no">Eirik Torske</a> * @author <a href="mailto:eirik.torske@iconmedialab.no">Eirik Torske</a>
* @deprecated Will probably be removed in the near future * @deprecated Will probably be removed in the near future
*/ */
@Deprecated
public class WildcardStringParser { public class WildcardStringParser {
// TODO: Get rid of this class // TODO: Get rid of this class

View File

@ -39,6 +39,7 @@ import java.io.IOException;
* *
* @deprecated Use {@link AdobePathReader} instead. This class will be removed in a future release. * @deprecated Use {@link AdobePathReader} instead. This class will be removed in a future release.
*/ */
@Deprecated
public final class AdobePathBuilder { public final class AdobePathBuilder {
private final AdobePathReader delegate; private final AdobePathReader delegate;

View File

@ -46,6 +46,7 @@ import java.io.IOException;
* *
* @deprecated Use com.twelvemonkeys.imageio.metadata.tiff.TIFFReader instead. * @deprecated Use com.twelvemonkeys.imageio.metadata.tiff.TIFFReader instead.
*/ */
@Deprecated
public final class EXIFReader extends MetadataReader { public final class EXIFReader extends MetadataReader {
private final TIFFReader delegate = new TIFFReader(); private final TIFFReader delegate = new TIFFReader();

View File

@ -48,6 +48,7 @@ import java.util.Collection;
* *
* @deprecated Use com.twelvemonkeys.imageio.metadata.tiff.TIFFWriter instead. * @deprecated Use com.twelvemonkeys.imageio.metadata.tiff.TIFFWriter instead.
*/ */
@Deprecated
public final class EXIFWriter extends MetadataWriter { public final class EXIFWriter extends MetadataWriter {
private final TIFFWriter delegate = new TIFFWriter(); private final TIFFWriter delegate = new TIFFWriter();

View File

@ -41,6 +41,7 @@ package com.twelvemonkeys.imageio.metadata.exif;
* *
* @deprecated Use com.twelvemonkeys.imageio.metadata.tiff.Rational instead. * @deprecated Use com.twelvemonkeys.imageio.metadata.tiff.Rational instead.
*/ */
@Deprecated
public final class Rational extends Number implements Comparable<Rational> { public final class Rational extends Number implements Comparable<Rational> {
private final com.twelvemonkeys.imageio.metadata.tiff.Rational delegate; private final com.twelvemonkeys.imageio.metadata.tiff.Rational delegate;

View File

@ -39,5 +39,6 @@ package com.twelvemonkeys.imageio.metadata.exif;
* *
* @deprecated Use com.twelvemonkeys.imageio.metadata.tiff.TIFF instead. * @deprecated Use com.twelvemonkeys.imageio.metadata.tiff.TIFF instead.
*/ */
@Deprecated
public interface TIFF extends com.twelvemonkeys.imageio.metadata.tiff.TIFF { public interface TIFF extends com.twelvemonkeys.imageio.metadata.tiff.TIFF {
} }

View File

@ -357,6 +357,7 @@ public abstract class GenericFilter implements Filter, FilterConfig, Serializabl
* *
* @deprecated For compatibility only, use {@link #init init} instead. * @deprecated For compatibility only, use {@link #init init} instead.
*/ */
@Deprecated
@SuppressWarnings("UnusedDeclaration") @SuppressWarnings("UnusedDeclaration")
public void setFilterConfig(final FilterConfig pFilterConfig) { public void setFilterConfig(final FilterConfig pFilterConfig) {
try { try {

View File

@ -337,6 +337,7 @@ public final class ServletUtil {
* @deprecated Use {@link javax.servlet.http.HttpServletRequest#getRequestURL()} * @deprecated Use {@link javax.servlet.http.HttpServletRequest#getRequestURL()}
* instead. * instead.
*/ */
@Deprecated
static StringBuffer buildHTTPURL(final HttpServletRequest pRequest) { static StringBuffer buildHTTPURL(final HttpServletRequest pRequest) {
StringBuffer resultURL = new StringBuffer(); StringBuffer resultURL = new StringBuffer();

View File

@ -271,9 +271,10 @@ public class HTTPCache {
* cannot be created. * cannot be created.
* @deprecated Use {@link #HTTPCache(File, long, int, int, boolean)} instead. * @deprecated Use {@link #HTTPCache(File, long, int, int, boolean)} instead.
*/ */
@Deprecated
public HTTPCache(final String pName, final ServletContext pContext, public HTTPCache(final String pName, final ServletContext pContext,
final int pDefaultCacheExpiryTime, final int pMaxMemCacheSize, final int pDefaultCacheExpiryTime, final int pMaxMemCacheSize,
final int pMaxCachedEntites, final boolean pDeleteCacheOnExit) { final int pMaxCachedEntites, final boolean pDeleteCacheOnExit) {
this( this(
getTempFolder(pName, pContext), getTempFolder(pName, pContext),
pDefaultCacheExpiryTime, pMaxMemCacheSize, pMaxCachedEntites, pDeleteCacheOnExit, pDefaultCacheExpiryTime, pMaxMemCacheSize, pMaxCachedEntites, pDeleteCacheOnExit,

View File

@ -146,7 +146,7 @@ public abstract class ImageFilter extends GenericFilter {
* @param pRequest the original request * @param pRequest the original request
* @return the new response, or {@code pResponse} if the response is already wrapped * @return the new response, or {@code pResponse} if the response is already wrapped
* *
* @see com.twelvemonkeys.servlet.image.ImageServletResponseWrapper * @see com.twelvemonkeys.servlet.image.ImageServletResponseImpl
*/ */
private ImageServletResponse createImageServletResponse(final ServletRequest pRequest, final ServletResponse pResponse) { private ImageServletResponse createImageServletResponse(final ServletRequest pRequest, final ServletResponse pResponse) {
if (pResponse instanceof ImageServletResponseImpl) { if (pResponse instanceof ImageServletResponseImpl) {