diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2021-09-23 11:16:04 -0500 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-09-24 20:03:10 +0000 |
commit | 215f8403a6c4a131b9592457fd95a280274237de (patch) | |
tree | 9412c0030b97b4e40563a882ababea60189270c6 /sonar-plugin-api/src | |
parent | 5377194709960576b1367a220c6ba20ce6f41ef0 (diff) | |
download | sonarqube-215f8403a6c4a131b9592457fd95a280274237de.tar.gz sonarqube-215f8403a6c4a131b9592457fd95a280274237de.zip |
Fix code quality issues
Diffstat (limited to 'sonar-plugin-api/src')
3 files changed, 1 insertions, 14 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/ce/posttask/PostProjectAnalysisTask.java b/sonar-plugin-api/src/main/java/org/sonar/api/ce/posttask/PostProjectAnalysisTask.java index 50cf9c5810b..542f303e3bd 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/ce/posttask/PostProjectAnalysisTask.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/ce/posttask/PostProjectAnalysisTask.java @@ -19,7 +19,6 @@ */ package org.sonar.api.ce.posttask; -import java.util.Date; import java.util.Optional; import javax.annotation.CheckForNull; import org.sonar.api.ExtensionPoint; diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/server/rule/RulesDefinitionXmlLoader.java b/sonar-plugin-api/src/main/java/org/sonar/api/server/rule/RulesDefinitionXmlLoader.java index 2f3397736cb..64ac7c8bbcd 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/server/rule/RulesDefinitionXmlLoader.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/server/rule/RulesDefinitionXmlLoader.java @@ -187,6 +187,7 @@ import static org.apache.commons.lang.StringUtils.trim; @ServerSide @ComputeEngineSide @SonarLintSide +@Deprecated public class RulesDefinitionXmlLoader { private static final String ELEMENT_RULES = "rules"; diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/utils/ZipUtils.java b/sonar-plugin-api/src/main/java/org/sonar/api/utils/ZipUtils.java index 54f511321c6..781926a4f45 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/utils/ZipUtils.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/utils/ZipUtils.java @@ -222,17 +222,4 @@ public final class ZipUtils { public interface ZipEntryFilter { boolean accept(ZipEntry entry); } - - private static class ZipEntryFilterDelegate implements Predicate<ZipEntry> { - private final ZipEntryFilter delegate; - - private ZipEntryFilterDelegate(ZipEntryFilter delegate) { - this.delegate = delegate; - } - - @Override - public boolean test(ZipEntry zipEntry) { - return delegate.accept(zipEntry); - } - } } |