This is an automated email from the ASF dual-hosted git repository.

adangel pushed a commit to branch pmd7
in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git


The following commit(s) were added to refs/heads/pmd7 by this push:
     new 9465344  Add CPDRenderer for backwards compatibility
9465344 is described below

commit 9465344313a129562a7633caba20085132e446fa
Author: Andreas Dangel <adan...@apache.org>
AuthorDate: Thu Jan 19 13:22:14 2023 +0100

    Add CPDRenderer for backwards compatibility
---
 .../sourceforge/pmd/cpd/renderer/CPDRenderer.java  | 38 ++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/src/main/java/net/sourceforge/pmd/cpd/renderer/CPDRenderer.java 
b/src/main/java/net/sourceforge/pmd/cpd/renderer/CPDRenderer.java
new file mode 100644
index 0000000..6b4a5f3
--- /dev/null
+++ b/src/main/java/net/sourceforge/pmd/cpd/renderer/CPDRenderer.java
@@ -0,0 +1,38 @@
+package net.sourceforge.pmd.cpd.renderer;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import java.io.IOException;
+import java.io.Writer;
+import java.util.Iterator;
+
+import net.sourceforge.pmd.cpd.Match;
+
+/**
+ * Readd this interface here. Not needed anymore,
+ * once <a href="https://github.com/pmd/pmd/pull/4343";>[core] CPD - implement
+ * CPDReportRenderer for all renderers #4343</a>
+ * is done.
+ */
+@Deprecated
+public interface CPDRenderer
+{
+    void render( Iterator<Match> var1, Writer var2 ) throws IOException;
+}

Reply via email to