aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-server
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2014-10-28 15:49:15 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2014-10-28 16:45:56 +0100
commit92521dc6547d516be403e2621fc2cf536face4d2 (patch)
tree1ffb6961e81d293df749785c321a9384f18a3ff2 /server/sonar-server
parentdc5bbf3ed6fdf9cb2aecbe552b4e4a6e6eb673b3 (diff)
downloadsonarqube-92521dc6547d516be403e2621fc2cf536face4d2.tar.gz
sonarqube-92521dc6547d516be403e2621fc2cf536face4d2.zip
Fix quality flaws
Diffstat (limited to 'server/sonar-server')
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/db/BaseDao.java2
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/issue/db/IssueDao.java4
2 files changed, 4 insertions, 2 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/db/BaseDao.java b/server/sonar-server/src/main/java/org/sonar/server/db/BaseDao.java
index 40f9b583279..12471fc91b1 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/db/BaseDao.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/db/BaseDao.java
@@ -324,7 +324,7 @@ public abstract class BaseDao<MAPPER, DTO extends Dto<KEY>, KEY extends Serializ
getSession().enqueue(new InsertDto<DTO>(getIndexType(), dto, false));
count++;
if (count % 100000 == 0) {
- LOGGER.info(" - synchronized {} {}", count, getIndexType());
+ LOGGER.info("Synchronized {} {}", count, getIndexType());
}
}
diff --git a/server/sonar-server/src/main/java/org/sonar/server/issue/db/IssueDao.java b/server/sonar-server/src/main/java/org/sonar/server/issue/db/IssueDao.java
index f9fda73d3d1..c9f4fbfd0e0 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/issue/db/IssueDao.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/issue/db/IssueDao.java
@@ -29,6 +29,8 @@ import org.sonar.core.persistence.DbSession;
import org.sonar.server.db.BaseDao;
import org.sonar.server.search.IndexDefinition;
+import javax.annotation.Nullable;
+
import java.util.Collection;
import java.util.Date;
import java.util.List;
@@ -81,7 +83,7 @@ public class IssueDao extends BaseDao<IssueMapper, IssueDto, String> implements
}
@Override
- protected Map<String, Object> getSynchronizationParams(Date date, Map<String, String> params) {
+ protected Map<String, Object> getSynchronizationParams(@Nullable Date date, Map<String, String> params) {
Map<String, Object> finalParams = super.getSynchronizationParams(date, params);
// TODO replace usage of project key by project uuid
finalParams.put(PROJECT_KEY, params.get(PROJECT_KEY));