aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-db-dao
diff options
context:
space:
mode:
authorJulien Camus <julien.camus@sonarsource.com>2024-10-04 16:59:43 +0200
committersonartech <sonartech@sonarsource.com>2024-10-04 20:03:46 +0000
commite2c3bc14f0e8cfc710896b1d1e753fd7dc494760 (patch)
tree38eb438f925b67ca194b619ceb133bd4fd7b5249 /server/sonar-db-dao
parent2124f36a93c6a190a58048e4dbd06b7983bca594 (diff)
downloadsonarqube-e2c3bc14f0e8cfc710896b1d1e753fd7dc494760.tar.gz
sonarqube-e2c3bc14f0e8cfc710896b1d1e753fd7dc494760.zip
SONAR-23265 Fix SSF-623
Diffstat (limited to 'server/sonar-db-dao')
-rw-r--r--server/sonar-db-dao/src/main/java/org/sonar/db/user/UserDao.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/server/sonar-db-dao/src/main/java/org/sonar/db/user/UserDao.java b/server/sonar-db-dao/src/main/java/org/sonar/db/user/UserDao.java
index 39d4954a4ef..4172316e444 100644
--- a/server/sonar-db-dao/src/main/java/org/sonar/db/user/UserDao.java
+++ b/server/sonar-db-dao/src/main/java/org/sonar/db/user/UserDao.java
@@ -78,7 +78,7 @@ public class UserDao implements Dao {
* Select users by uuids, including disabled users. An empty list is returned
* if list of uuids is empty, without any db round trips.
*
- * @return
+ * @return a list of users, in the same order as input uuids
*/
public List<UserDto> selectByUuids(DbSession session, Collection<String> uuids) {
return executeLargeInputs(uuids, mapper(session)::selectByUuids);
@@ -113,8 +113,7 @@ public class UserDao implements Dao {
userQuery.getUserUuids(),
partialSetOfUsers -> mapper(dbSession).selectUsers(
UserQuery.copyWithNewRangeOfUserUuids(userQuery, partialSetOfUsers),
- pagination)
- );
+ pagination));
}
return mapper(dbSession).selectUsers(userQuery, pagination);
}
@@ -191,7 +190,7 @@ public class UserDao implements Dao {
/**
* Search for an active user with the given emailCaseInsensitive exits in database
- * Select is case insensitive. Result for searching 'mail@emailCaseInsensitive.com' or 'Mail@Email.com' is the same
+ * Select is case-insensitive. Result for searching 'mail@emailCaseInsensitive.com' or 'Mail@Email.com' is the same
*/
public List<UserDto> selectByEmail(DbSession dbSession, String emailCaseInsensitive) {
return mapper(dbSession).selectByEmail(emailCaseInsensitive.toLowerCase(ENGLISH));