diff options
author | gjoranv <gv@oath.com> | 2018-10-10 17:57:50 +0200 |
---|---|---|
committer | gjoranv <gv@oath.com> | 2019-01-21 15:09:23 +0100 |
commit | 3e2bae6033ac1bf1aa1efcfe262029bf898c8b1f (patch) | |
tree | 26870629a73a874ead9815b5aad543007e7b776e | |
parent | 2b403f1874d84ff180f1f2b196c10671be7bf802 (diff) |
Remove deprecated apis in docproc.
-rw-r--r-- | docproc/src/main/java/com/yahoo/docproc/SimpleDocumentProcessor.java | 19 |
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); + } } /** |