This is an automated email from the ASF dual-hosted git repository. olli pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-content-analyzing.git
commit 99f966f1eb418f6c84cbc1555d7c9c6cdaf572ae Author: Oliver Lietz <[email protected]> AuthorDate: Sat Jul 17 21:43:43 2021 +0200 [checkstyle] (modifier) InterfaceMemberImpliedModifier --- pmd-exclude.properties | 19 +++++++++++++++++++ pom.xml | 1 + .../commons/content/analyzing/ContentAnalyzer.java | 2 +- 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/pmd-exclude.properties b/pmd-exclude.properties new file mode 100644 index 0000000..dfa4d2c --- /dev/null +++ b/pmd-exclude.properties @@ -0,0 +1,19 @@ +################################################################################ +# +# 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. +# +################################################################################ +org.apache.sling.commons.content.analyzing.ContentAnalyzer=UnnecessaryModifier diff --git a/pom.xml b/pom.xml index aafc3a9..6d57764 100644 --- a/pom.xml +++ b/pom.xml @@ -88,6 +88,7 @@ <version>3.14.0</version> <configuration> <targetJdk>${sling.java.version}</targetJdk> + <excludeFromFailureFile>pmd-exclude.properties</excludeFromFailureFile> </configuration> <executions> <execution> diff --git a/src/main/java/org/apache/sling/commons/content/analyzing/ContentAnalyzer.java b/src/main/java/org/apache/sling/commons/content/analyzing/ContentAnalyzer.java index 88de9d8..c169c8d 100644 --- a/src/main/java/org/apache/sling/commons/content/analyzing/ContentAnalyzer.java +++ b/src/main/java/org/apache/sling/commons/content/analyzing/ContentAnalyzer.java @@ -40,6 +40,6 @@ public interface ContentAnalyzer { * @param report the report to which the findings of the analyzing operation are added * @return {@link java.util.concurrent.CompletableFuture} for signaling completion */ - @NotNull CompletableFuture<Void> analyze(@NotNull final InputStream input, @Nullable final Map<String, Object> parameters, @NotNull final Map<String, Object> report); + public abstract @NotNull CompletableFuture<Void> analyze(@NotNull final InputStream input, @Nullable final Map<String, Object> parameters, @NotNull final Map<String, Object> report); }
