diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2016-10-21 13:00:00 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2016-10-24 12:02:33 +0200 |
commit | 1a64babff4c22cb4e412fd86b6fdb802e9c9983d (patch) | |
tree | 3bc670c8e3564e28dbc8b94ec555d9f1b1620b28 /sonar-plugin-api | |
parent | a0cfbf2ec2c6d6313b532df054dad8feaad3442f (diff) | |
download | sonarqube-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.java | 4 |
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; |