summaryrefslogtreecommitdiffstats
path: root/sonar-core/src/main
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2013-12-13 11:02:26 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2013-12-13 11:02:26 +0100
commit874db94063251ecc6747f74b9ad185450d4c9e3f (patch)
tree1fdee727dc34410cef7b2d418fb769b06f887e54 /sonar-core/src/main
parent706b253c903ad472d183a7e0918904032ea7e195 (diff)
downloadsonarqube-874db94063251ecc6747f74b9ad185450d4c9e3f.tar.gz
sonarqube-874db94063251ecc6747f74b9ad185450d4c9e3f.zip
Rename class with the good name
Diffstat (limited to 'sonar-core/src/main')
-rw-r--r--sonar-core/src/main/java/org/sonar/core/persistence/MyBatis.java2
-rw-r--r--sonar-core/src/main/java/org/sonar/core/qualityprofile/db/ActiveRuleDao.java4
-rw-r--r--sonar-core/src/main/java/org/sonar/core/qualityprofile/db/ActiveRuleMapper.java (renamed from sonar-core/src/main/java/org/sonar/core/qualityprofile/db/ActiveRuleMapper2.java)2
-rw-r--r--sonar-core/src/main/resources/org/sonar/core/qualityprofile/db/ActiveRuleMapper.xml2
4 files changed, 5 insertions, 5 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/persistence/MyBatis.java b/sonar-core/src/main/java/org/sonar/core/persistence/MyBatis.java
index b382b8cf02e..2fb00f2a0bc 100644
--- a/sonar-core/src/main/java/org/sonar/core/persistence/MyBatis.java
+++ b/sonar-core/src/main/java/org/sonar/core/persistence/MyBatis.java
@@ -155,7 +155,7 @@ public class MyBatis implements BatchComponent, ServerComponent {
SchemaMigrationMapper.class, SemaphoreMapper.class, UserMapper.class, WidgetMapper.class, WidgetPropertyMapper.class,
MeasureMapper.class, SnapshotDataMapper.class, SnapshotSourceMapper.class, ActionPlanMapper.class, ActionPlanStatsMapper.class,
NotificationQueueMapper.class, CharacteristicMapper.class,
- GroupMembershipMapper.class, QualityProfileMapper.class, ActiveRuleMapper2.class
+ GroupMembershipMapper.class, QualityProfileMapper.class, ActiveRuleMapper.class
};
loadMappers(conf, mappers);
configureLogback(mappers);
diff --git a/sonar-core/src/main/java/org/sonar/core/qualityprofile/db/ActiveRuleDao.java b/sonar-core/src/main/java/org/sonar/core/qualityprofile/db/ActiveRuleDao.java
index d3d0318cf35..2346103e655 100644
--- a/sonar-core/src/main/java/org/sonar/core/qualityprofile/db/ActiveRuleDao.java
+++ b/sonar-core/src/main/java/org/sonar/core/qualityprofile/db/ActiveRuleDao.java
@@ -33,7 +33,7 @@ public class ActiveRuleDao implements ServerComponent {
}
public void insert(ActiveRuleDto dto, SqlSession session) {
- session.getMapper(ActiveRuleMapper2.class).insert(dto);
+ session.getMapper(ActiveRuleMapper.class).insert(dto);
}
public void insert(ActiveRuleDto dto) {
@@ -47,7 +47,7 @@ public class ActiveRuleDao implements ServerComponent {
}
public void insert(ActiveRuleParamDto dto, SqlSession session) {
- session.getMapper(ActiveRuleMapper2.class).insertParameter(dto);
+ session.getMapper(ActiveRuleMapper.class).insertParameter(dto);
}
public void insert(ActiveRuleParamDto dto) {
diff --git a/sonar-core/src/main/java/org/sonar/core/qualityprofile/db/ActiveRuleMapper2.java b/sonar-core/src/main/java/org/sonar/core/qualityprofile/db/ActiveRuleMapper.java
index 025043d14dd..e4068570c50 100644
--- a/sonar-core/src/main/java/org/sonar/core/qualityprofile/db/ActiveRuleMapper2.java
+++ b/sonar-core/src/main/java/org/sonar/core/qualityprofile/db/ActiveRuleMapper.java
@@ -20,7 +20,7 @@
package org.sonar.core.qualityprofile.db;
-public interface ActiveRuleMapper2 {
+public interface ActiveRuleMapper {
void insert(ActiveRuleDto dto);
diff --git a/sonar-core/src/main/resources/org/sonar/core/qualityprofile/db/ActiveRuleMapper.xml b/sonar-core/src/main/resources/org/sonar/core/qualityprofile/db/ActiveRuleMapper.xml
index bf8f1b86cb0..f7178820d9d 100644
--- a/sonar-core/src/main/resources/org/sonar/core/qualityprofile/db/ActiveRuleMapper.xml
+++ b/sonar-core/src/main/resources/org/sonar/core/qualityprofile/db/ActiveRuleMapper.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="org.sonar.core.qualityprofile.db.ActiveRuleMapper2">
+<mapper namespace="org.sonar.core.qualityprofile.db.ActiveRuleMapper">
<sql id="activeRuleColumns">
p.id,