Skip to content

Commit

Permalink
fix: add generic types to return value to allow static compilation (t…
Browse files Browse the repository at this point in the history
…his class was missed in grails#982)
  • Loading branch information
matrei committed Dec 18, 2023
1 parent f2bb17f commit 7b31547
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class UserRole implements Serializable {
criteriaFor(userId, roleId).count()
}

private static DetachedCriteria criteriaFor(long userId, long roleId) {
private static DetachedCriteria<UserRole> criteriaFor(long userId, long roleId) {
UserRole.where {
user == User.load(userId) &&
role == Role.load(roleId)
Expand Down

0 comments on commit 7b31547

Please sign in to comment.