HHH-13496 Remove redundant cases of throws

This commit is contained in:
Sanne Grinovero 2019-07-08 10:52:23 +01:00
parent 70d33e0c6b
commit 3b0d7d67b1
8 changed files with 12 additions and 13 deletions

View File

@ -35,7 +35,7 @@ public abstract class AbstractMapComponentNode extends FromReferenceNode impleme
}
@Override
public void setScalarColumnText(int i) throws SemanticException {
public void setScalarColumnText(int i) {
ColumnHelper.generateScalarColumns( this, getColumns(), i );
}
@ -105,7 +105,7 @@ public abstract class AbstractMapComponentNode extends FromReferenceNode impleme
}
@Override
public void resolveIndex(AST parent) throws SemanticException {
public void resolveIndex(AST parent) {
throw new UnsupportedOperationException( expressionDescription() + " expression cannot be the source for an index operation" );
}

View File

@ -210,7 +210,7 @@ public class MapEntryNode extends AbstractMapComponentNode implements Aggregated
}
@Override
public void setScalarColumn(int i) throws SemanticException {
public void setScalarColumn(int i) {
this.scalarColumnIndex = i;
}
@ -220,7 +220,7 @@ public class MapEntryNode extends AbstractMapComponentNode implements Aggregated
}
@Override
public void setScalarColumnText(int i) throws SemanticException {
public void setScalarColumnText(int i) {
}
@Override

View File

@ -231,8 +231,7 @@ public class SessionFactoryRegistry {
public static class ObjectFactoryImpl implements ObjectFactory {
@Override
public Object getObjectInstance(Object reference, Name name, Context nameCtx, Hashtable<?, ?> environment)
throws Exception {
public Object getObjectInstance(Object reference, Name name, Context nameCtx, Hashtable<?, ?> environment) {
LOG.debugf( "JNDI lookup: %s", name );
final String uuid = (String) ( (Reference) reference ).get( 0 ).getContent();
LOG.tracef( "Resolved to UUID = %s", uuid );

View File

@ -99,8 +99,8 @@ public abstract class AbstractEntityLoader
Object[] row,
ResultTransformer transformer,
ResultSet rs,
SharedSessionContractImplementor session) throws SQLException, HibernateException {
return row[row.length-1];
SharedSessionContractImplementor session) {
return row[ row.length - 1 ];
}
@Override

View File

@ -108,7 +108,7 @@ public class CollectionElementLoader extends OuterJoinLoader {
Object[] row,
ResultTransformer transformer,
ResultSet rs,
SharedSessionContractImplementor session) throws SQLException, HibernateException {
SharedSessionContractImplementor session) {
return row[row.length - 1];
}

View File

@ -83,7 +83,7 @@ public class SetterFieldImpl implements Setter {
return setterMethod;
}
private Object writeReplace() throws ObjectStreamException {
private Object writeReplace() {
return new SerialForm( containerClass, propertyName, field );
}

View File

@ -119,7 +119,7 @@ public class SetterMethodImpl implements Setter {
return setterMethod;
}
private Object writeReplace() throws ObjectStreamException {
private Object writeReplace() {
return new SerialForm( containerClass, propertyName, setterMethod );
}

View File

@ -53,12 +53,12 @@ public class ShortType
}
@Override
public String objectToSQLString(Short value, Dialect dialect) throws Exception {
public String objectToSQLString(Short value, Dialect dialect) {
return value.toString();
}
@Override
public Short stringToObject(String xml) throws Exception {
public Short stringToObject(String xml) {
return Short.valueOf( xml );
}