diff options
author | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2015-08-13 08:55:27 +0200 |
---|---|---|
committer | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2015-08-19 14:17:58 +0200 |
commit | f613be565370fc7a7d250159a669cb40c991a1e3 (patch) | |
tree | 15bbf8cdc00e6eb5698e65fe51e045573f10af94 /sonar-db | |
parent | 2b4920d26b7a72f47a4c44689f71fa77621a6260 (diff) | |
download | sonarqube-f613be565370fc7a7d250159a669cb40c991a1e3.tar.gz sonarqube-f613be565370fc7a7d250159a669cb40c991a1e3.zip |
Fix typo in PermissionQuery
Diffstat (limited to 'sonar-db')
-rw-r--r-- | sonar-db/src/main/java/org/sonar/db/permission/PermissionQuery.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sonar-db/src/main/java/org/sonar/db/permission/PermissionQuery.java b/sonar-db/src/main/java/org/sonar/db/permission/PermissionQuery.java index 6d1a04a66bb..26e278bc485 100644 --- a/sonar-db/src/main/java/org/sonar/db/permission/PermissionQuery.java +++ b/sonar-db/src/main/java/org/sonar/db/permission/PermissionQuery.java @@ -27,6 +27,8 @@ import javax.annotation.CheckForNull; import javax.annotation.Nullable; import org.apache.commons.lang.StringUtils; +import static com.google.common.base.Preconditions.checkNotNull; + /** * Query used to get users and groups from a permission */ @@ -189,7 +191,7 @@ public class PermissionQuery { } public PermissionQuery build() { - Preconditions.checkNotNull(permission, "Permission cant be null."); + checkNotNull(permission, "Permission cannot be null."); initMembership(); initPageIndex(); initPageSize(); |