Fix compiler warning: deprecated item is not annotated with @Deprecated

This commit is contained in:
Alex Osborne
2025-03-31 15:12:21 +09:00
parent f6b083ecfb
commit 60f512b4b0
5 changed files with 9 additions and 0 deletions
@@ -108,6 +108,7 @@ public class UriUtils {
* @deprecated produces too many false positives,
* {@link #isVeryLikelyUri(CharSequence)} is preferred
*/
@Deprecated
public static boolean isLikelyUri(CharSequence candidate) {
return isPossibleUri(candidate) && !isLikelyFalsePositive(candidate);
}
@@ -906,6 +906,7 @@ implements Reporter, Serializable, OverlayContext, Comparable<CrawlURI> {
* @param digestValue
* @deprecated Use {@link #setContentDigest(String, byte[])}
*/
@Deprecated
public void setContentDigest(byte[] digestValue) {
setContentDigest("SHA1", digestValue);
}
@@ -75,12 +75,15 @@ public class HtmlFormCredential extends Credential {
* GET or POST.
*/
/** @deprecated ignored, always POST*/
@Deprecated
protected Method httpMethod = Method.POST;
/** @deprecated ignored, always POST*/
@Deprecated
public Method getHttpMethod() {
return this.httpMethod;
}
/** @deprecated ignored, always POST*/
@Deprecated
public void setHttpMethod(Method method) {
this.httpMethod = method;
}
@@ -78,6 +78,7 @@ public class SurtPrefixedDecideRule extends PredicatedDecideRule implements
* @deprecated redundant now that we have
* {@link SurtPrefixedDecideRule#surtsSource}
*/
@Deprecated
public ConfigFile getSurtsSourceFile() {
if (getSurtsSource() instanceof ConfigFile) {
return (ConfigFile) getSurtsSource();
@@ -86,6 +87,7 @@ public class SurtPrefixedDecideRule extends PredicatedDecideRule implements
}
}
/** @deprecated */
@Deprecated
public void setSurtsSourceFile(ConfigFile cp) {
setSurtsSource(cp);
}
@@ -47,6 +47,7 @@ public class ExtractorHTTP extends Extractor {
* @deprecated Deprecated in favor of {@link #getInferPaths()} which allows the specification of arbitrary
* paths and can be overridden with sheets.
*/
@Deprecated
public boolean getInferRootPage() {
return inferRootPage;
}
@@ -54,6 +55,7 @@ public class ExtractorHTTP extends Extractor {
* @deprecated Deprecated in favor of {@link #setInferPaths(List)} which allows the specification of arbitrary
* paths and can be overridden with sheets.
*/
@Deprecated
public void setInferRootPage(boolean inferRootPage) {
this.inferRootPage = inferRootPage;
}