]> source.dussan.org Git - sonarqube.git/commitdiff
Component.getKey is now the effective key
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Tue, 2 Jun 2015 17:32:31 +0000 (19:32 +0200)
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Tue, 2 Jun 2015 17:33:09 +0000 (19:33 +0200)
server/sonar-server/src/main/java/org/sonar/server/computation/measure/MeasureRepositoryImpl.java

index 61718b66689d923c9bf4f7e5f0d6fd6814c3fb85..ed9f648bab0d9a1a9c6302b2443a1d1b794ab8e4 100644 (file)
@@ -44,8 +44,6 @@ public class MeasureRepositoryImpl implements MeasureRepository {
   public Optional<MeasureDto> findPrevious(Component component, Metric<?> metric) {
     try (DbSession dbSession = dbClient.openSession(false)) {
       return Optional.fromNullable(
-        // TODO replace component.getKey() by ${link #getKey} as component.getKey() is only for project/module and does not take into
-        // account usage of the branch
         dbClient.measureDao().findByComponentKeyAndMetricKey(dbSession, component.getKey(), metric.getKey())
         );
     }