aboutsummaryrefslogtreecommitdiffstats
path: root/docproc/src/main/java/com/yahoo/docproc/SimpleDocumentProcessor.java
diff options
context:
space:
mode:
Diffstat (limited to 'docproc/src/main/java/com/yahoo/docproc/SimpleDocumentProcessor.java')
-rw-r--r--docproc/src/main/java/com/yahoo/docproc/SimpleDocumentProcessor.java19
1 files changed, 3 insertions, 16 deletions
diff --git a/docproc/src/main/java/com/yahoo/docproc/SimpleDocumentProcessor.java b/docproc/src/main/java/com/yahoo/docproc/SimpleDocumentProcessor.java
index bcd1ee521bc..bb9ef8ff636 100644
--- a/docproc/src/main/java/com/yahoo/docproc/SimpleDocumentProcessor.java
+++ b/docproc/src/main/java/com/yahoo/docproc/SimpleDocumentProcessor.java
@@ -28,29 +28,16 @@ import com.yahoo.log.LogLevel;
public class SimpleDocumentProcessor extends DocumentProcessor {
/**
- * Override this to process the Document inside a DocumentPut.
- * @deprecated use process(DocumentPut)
- *
- * @param document the Document to process.
- */
- @Deprecated
- // TODO: Remove on Vespa 7
- public void process(Document document) {
- if (log.isLoggable(LogLevel.DEBUG)) {
- log.log(LogLevel.DEBUG, "Ignored " + document);
- }
- }
-
- /**
* Override this to process DocumentPuts. If this method is not overridden, the implementation in this class
* will ignore DocumentPuts (passing them through un-processed). If processing of this DocumentPut fails, the
* implementation must throw a {@link RuntimeException}.
*
* @param put the DocumentPut to process.
*/
- @SuppressWarnings("deprecation")
public void process(DocumentPut put) {
- process(put.getDocument());
+ if (log.isLoggable(LogLevel.DEBUG)) {
+ log.log(LogLevel.DEBUG, "Ignored " + put);
+ }
}
/**