aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2017-03-13 12:00:21 +0100
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2017-03-13 12:00:21 +0100
commit857d12fa9909a5b5fde7a42f231b0b8d42e50303 (patch)
tree7a4a03bd3452cae0fa9277234de1984b0d2ae97c /server
parentd95da86123cb96c4f168ce470a38808a22c6d313 (diff)
downloadsonarqube-857d12fa9909a5b5fde7a42f231b0b8d42e50303.tar.gz
sonarqube-857d12fa9909a5b5fde7a42f231b0b8d42e50303.zip
Fix quality flaw
Diffstat (limited to 'server')
-rw-r--r--server/sonar-db-dao/src/main/java/org/sonar/db/permission/PermissionQuery.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-db-dao/src/main/java/org/sonar/db/permission/PermissionQuery.java b/server/sonar-db-dao/src/main/java/org/sonar/db/permission/PermissionQuery.java
index 181eb7a399b..cc5e5af5b86 100644
--- a/server/sonar-db-dao/src/main/java/org/sonar/db/permission/PermissionQuery.java
+++ b/server/sonar-db-dao/src/main/java/org/sonar/db/permission/PermissionQuery.java
@@ -66,7 +66,7 @@ public class PermissionQuery {
this.template = builder.template;
this.searchQuery = builder.searchQuery;
this.searchQueryToSql = builder.searchQuery == null ? null : buildLikeValue(builder.searchQuery, WildcardPosition.BEFORE_AND_AFTER);
- this.searchQueryToSqlLowercase = builder.searchQuery == null ? null : searchQueryToSql.toLowerCase(Locale.ENGLISH);
+ this.searchQueryToSqlLowercase = searchQueryToSql == null ? null : searchQueryToSql.toLowerCase(Locale.ENGLISH);
this.pageSize = builder.pageSize;
this.pageOffset = offset(builder.pageIndex, builder.pageSize);
}