HHH-13496 Remove redundant cases of throws
This commit is contained in:
parent
70d33e0c6b
commit
3b0d7d67b1
|
@ -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" );
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 );
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue