aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2016-10-21 13:00:00 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2016-10-24 12:02:33 +0200
commit1a64babff4c22cb4e412fd86b6fdb802e9c9983d (patch)
tree3bc670c8e3564e28dbc8b94ec555d9f1b1620b28 /sonar-plugin-api
parenta0cfbf2ec2c6d6313b532df054dad8feaad3442f (diff)
downloadsonarqube-1a64babff4c22cb4e412fd86b6fdb802e9c9983d.tar.gz
sonarqube-1a64babff4c22cb4e412fd86b6fdb802e9c9983d.zip
SONAR-8221 Fix project measures indexing on MySQL
Replace streaming of projects by first loading all projects once, then load measures project by project
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/measures/Metric.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/measures/Metric.java b/sonar-plugin-api/src/main/java/org/sonar/api/measures/Metric.java
index 425777eada6..2fdfbff01f2 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/measures/Metric.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/measures/Metric.java
@@ -29,8 +29,8 @@ import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
-import org.sonar.api.batch.ScannerSide;
import org.sonar.api.batch.InstantiationStrategy;
+import org.sonar.api.batch.ScannerSide;
import org.sonar.api.ce.ComputeEngineSide;
import org.sonar.api.server.ServerSide;
@@ -223,7 +223,7 @@ public class Metric<G extends Serializable> implements Serializable, org.sonar.a
* @param userManaged whether the metric is user managed
*/
private Metric(String key, String name, String description, ValueType type, Integer direction, Boolean qualitative, @Nullable String domain,
- boolean userManaged) {
+ boolean userManaged) {
this.key = key;
this.description = description;
this.type = type;