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
15 changed files with 19 additions and 3 deletions

View File

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

View File

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

View File

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

View File

@@ -146,7 +146,7 @@ public abstract class ImageFilter extends GenericFilter {
* @param pRequest the original request
* @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) {
if (pResponse instanceof ImageServletResponseImpl) {