Skip to content

Commit be28270

Browse files
committed
Fixes for maven checkstyle plugin.
This refer to #RESTCOMM-1514
1 parent 8d39578 commit be28270

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

restcomm/restcomm.dao/src/main/java/org/restcomm/connect/dao/entities/ProfileAssociation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public Date getDateUpdated() {
7575
* @return
7676
*/
7777
public ProfileAssociation setProfileSid(final Sid newProfileSid){
78-
return new ProfileAssociation(newProfileSid, targetSid, dateCreated, Calendar.getInstance().getTime());
78+
return new ProfileAssociation(newProfileSid, targetSid, dateCreated, Calendar.getInstance().getTime());
7979
}
8080
@NotThreadSafe
8181
public static final class Builder {

restcomm/restcomm.dao/src/main/java/org/restcomm/connect/dao/mybatis/MybatisProfileAssociationsDao.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ public List<ProfileAssociation> getProfileAssociationsByProfileSid(String profil
6767
final SqlSession session = sessions.openSession();
6868

6969
try {
70-
final List<Map<String, Object>> results = session.selectList(namespace + "getProfileAssociationsByProfileSid",
71-
profileSid);
70+
final List<Map<String, Object>> results = session.selectList(namespace + "getProfileAssociationsByProfileSid", profileSid);
7271
final List<ProfileAssociation> profiles = new ArrayList<ProfileAssociation>();
7372

7473
if (results != null && !results.isEmpty()) {
@@ -106,13 +105,13 @@ public void updateProfileAssociationOfTargetSid(ProfileAssociation profileAssoci
106105
}
107106
}
108107

109-
@Override
110-
public void updateAssociatedProfileOfAllSuchProfileSid(String oldProfileSid, String newProfileSid) {
108+
@Override
109+
public void updateAssociatedProfileOfAllSuchProfileSid(String oldProfileSid, String newProfileSid) {
111110
final SqlSession session = sessions.openSession();
112111
try {
113-
Map<String, Object> map = new HashMap<String, Object>();
114-
map.put("profile_sid", newProfileSid);
115-
map.put("old_profile_sid", oldProfileSid);
112+
Map<String, Object> map = new HashMap<String, Object>();
113+
map.put("profile_sid", newProfileSid);
114+
map.put("old_profile_sid", oldProfileSid);
116115
session.update(namespace + "updateAssociatedProfileOfAllSuchProfileSid", map);
117116
session.commit();
118117
map = null;

0 commit comments

Comments
 (0)