summaryrefslogtreecommitdiffstats
path: root/sonar-ws-client
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-ws-client')
-rw-r--r--sonar-ws-client/src/main/java/org/sonar/wsclient/services/ResourceQuery.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/services/ResourceQuery.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/services/ResourceQuery.java
index 608542513f4..eb5482b5c12 100644
--- a/sonar-ws-client/src/main/java/org/sonar/wsclient/services/ResourceQuery.java
+++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/services/ResourceQuery.java
@@ -294,4 +294,11 @@ public class ResourceQuery extends Query<Resource> {
return new ResourceQuery(resource.getId().toString())
.setMetrics(metricKeys);
}
+
+ /**
+ * @since 2.10
+ */
+ public static ResourceQuery create(String resourceKey) {
+ return new ResourceQuery(resourceKey);
+ }
}