aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-db-dao/src
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2018-01-09 11:11:50 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2018-01-09 14:25:49 +0100
commitb2f15b50c6cf123765ca6c56c9bf5bffc451b771 (patch)
tree4b81c809a049a87a306dada296485726878581e4 /server/sonar-db-dao/src
parent7af0b945e6772b8e10ee8c7548b78ee12ea88712 (diff)
downloadsonarqube-b2f15b50c6cf123765ca6c56c9bf5bffc451b771.tar.gz
sonarqube-b2f15b50c6cf123765ca6c56c9bf5bffc451b771.zip
Clean-up unused code of ResourceTypes
This class should be dropped as no plugins provide new types anymore. That was used only by the developer cockpit plugin, which is end of life.
Diffstat (limited to 'server/sonar-db-dao/src')
-rw-r--r--server/sonar-db-dao/src/test/java/org/sonar/db/component/ResourceTypesRule.java49
1 files changed, 4 insertions, 45 deletions
diff --git a/server/sonar-db-dao/src/test/java/org/sonar/db/component/ResourceTypesRule.java b/server/sonar-db-dao/src/test/java/org/sonar/db/component/ResourceTypesRule.java
index 3d97f07dc0d..0e90f242421 100644
--- a/server/sonar-db-dao/src/test/java/org/sonar/db/component/ResourceTypesRule.java
+++ b/server/sonar-db-dao/src/test/java/org/sonar/db/component/ResourceTypesRule.java
@@ -36,16 +36,15 @@ import static java.util.Collections.emptySet;
public class ResourceTypesRule extends ResourceTypes {
private Set<ResourceType> allResourceTypes = emptySet();
private Set<ResourceType> rootResourceTypes = emptySet();
- private List<String> childrenQualifiers = emptyList();
private List<String> leavesQualifiers = emptyList();
- @Override
- public Collection<ResourceType> getAll() {
- return allResourceTypes;
+ public ResourceTypesRule() {
+ super(new ResourceTypeTree[0]);
}
+
@Override
- public Collection<ResourceType> getAllOrdered() {
+ public Collection<ResourceType> getAll() {
return allResourceTypes;
}
@@ -69,11 +68,6 @@ public class ResourceTypesRule extends ResourceTypes {
return this;
}
- public ResourceTypesRule setChildrenQualifiers(String... qualifiers) {
- childrenQualifiers = ImmutableList.copyOf(qualifiers);
- return this;
- }
-
public ResourceTypesRule setAllQualifiers(String... qualifiers) {
Set<ResourceType> resourceTypes = new HashSet<>();
for (String qualifier : qualifiers) {
@@ -92,42 +86,7 @@ public class ResourceTypesRule extends ResourceTypes {
}
@Override
- public Collection<ResourceType> getAllWithPropertyKey(String propertyKey) {
- throw new UnsupportedOperationException();
- }
-
- @Override
- public Collection<ResourceType> getAllWithPropertyValue(String propertyKey, String propertyValue) {
- throw new UnsupportedOperationException();
- }
-
- @Override
- public Collection<ResourceType> getAllWithPropertyValue(String propertyKey, boolean propertyValue) {
- throw new UnsupportedOperationException();
- }
-
- @Override
- public List<String> getChildrenQualifiers(String qualifier) {
- return this.childrenQualifiers;
- }
-
- @Override
- public List<ResourceType> getChildren(String qualifier) {
- throw new UnsupportedOperationException();
- }
-
- @Override
public List<String> getLeavesQualifiers(String qualifier) {
return this.leavesQualifiers;
}
-
- @Override
- public ResourceTypeTree getTree(String qualifier) {
- throw new UnsupportedOperationException();
- }
-
- @Override
- public ResourceType getRoot(String qualifier) {
- throw new UnsupportedOperationException();
- }
}