mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-08-26 16:36:37 +00:00
Fix compiler warning: deprecated item is not annotated with @Deprecated
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user