avoid declaring unthrown exception

This commit is contained in:
Sanne Grinovero 2012-02-14 16:39:34 +00:00
parent ebd78e9bb1
commit 40146b2920
2 changed files with 3 additions and 7 deletions

View File

@ -49,8 +49,7 @@ public class AliasedProjection implements EnhancedProjection {
return projection.toSqlString(criteria, position, criteriaQuery);
}
public String toGroupSqlString(Criteria criteria, CriteriaQuery criteriaQuery)
throws HibernateException {
public String toGroupSqlString(Criteria criteria, CriteriaQuery criteriaQuery) {
return projection.toGroupSqlString(criteria, criteriaQuery);
}

View File

@ -24,7 +24,6 @@
*/
package org.hibernate.criterion;
import org.hibernate.Criteria;
import org.hibernate.HibernateException;
import org.hibernate.type.Type;
@ -70,8 +69,7 @@ public abstract class SimpleProjection implements EnhancedProjection {
return getColumnAliases( alias, loc );
}
public Type[] getTypes(String alias, Criteria criteria, CriteriaQuery criteriaQuery)
throws HibernateException {
public Type[] getTypes(String alias, Criteria criteria, CriteriaQuery criteriaQuery) {
return null;
}
@ -102,8 +100,7 @@ public abstract class SimpleProjection implements EnhancedProjection {
return new String[1];
}
public String toGroupSqlString(Criteria criteria, CriteriaQuery criteriaQuery)
throws HibernateException {
public String toGroupSqlString(Criteria criteria, CriteriaQuery criteriaQuery) {
throw new UnsupportedOperationException("not a grouping projection");
}