aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2016-05-09 14:23:04 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2016-05-09 23:10:31 +0200
commit4fc0e09a6029affb5cb5f526387aba12e99065c4 (patch)
tree430148b905c5a53dc50daab37587b28ae167cb68 /server
parentb66064a3f9cb4f8afbb0a8da67027946e4214506 (diff)
downloadsonarqube-4fc0e09a6029affb5cb5f526387aba12e99065c4.tar.gz
sonarqube-4fc0e09a6029affb5cb5f526387aba12e99065c4.zip
Fix quality flaws
Diffstat (limited to 'server')
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/issue/IssueBulkChangeService.java2
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/measure/MeasureFilterCondition.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/issue/IssueBulkChangeService.java b/server/sonar-server/src/main/java/org/sonar/server/issue/IssueBulkChangeService.java
index 352defecc4b..9d1d7eba9e0 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/issue/IssueBulkChangeService.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/issue/IssueBulkChangeService.java
@@ -128,7 +128,7 @@ public class IssueBulkChangeService {
private Collection<Issue> getByKeysForUpdate(List<String> issueKeys) {
// Load from index to check permission
SearchOptions options = new SearchOptions().setLimit(SearchOptions.MAX_LIMIT);
- // TODO restrict fields to issue key, in order to not load all other fields;
+ // TODO restrict fields to issue key, in order to not load all other fields
List<IssueDoc> authorizedIssues = issueIndex.search(IssueQuery.builder(userSession).issueKeys(issueKeys).build(), options).getDocs();
Collection<String> authorizedKeys = Collections2.transform(authorizedIssues, new Function<IssueDoc, String>() {
@Override
diff --git a/server/sonar-server/src/main/java/org/sonar/server/measure/MeasureFilterCondition.java b/server/sonar-server/src/main/java/org/sonar/server/measure/MeasureFilterCondition.java
index 499e5759987..3deaa13005d 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/measure/MeasureFilterCondition.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/measure/MeasureFilterCondition.java
@@ -30,7 +30,7 @@ public class MeasureFilterCondition {
private String code;
private String sql;
- private Operator(String code, String sql) {
+ Operator(String code, String sql) {
this.code = code;
this.sql = sql;
}