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
|
@Override
|
||||||
public void setScalarColumnText(int i) throws SemanticException {
|
public void setScalarColumnText(int i) {
|
||||||
ColumnHelper.generateScalarColumns( this, getColumns(), i );
|
ColumnHelper.generateScalarColumns( this, getColumns(), i );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -105,7 +105,7 @@ public abstract class AbstractMapComponentNode extends FromReferenceNode impleme
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@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" );
|
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
|
@Override
|
||||||
public void setScalarColumn(int i) throws SemanticException {
|
public void setScalarColumn(int i) {
|
||||||
this.scalarColumnIndex = i;
|
this.scalarColumnIndex = i;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -220,7 +220,7 @@ public class MapEntryNode extends AbstractMapComponentNode implements Aggregated
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setScalarColumnText(int i) throws SemanticException {
|
public void setScalarColumnText(int i) {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -231,8 +231,7 @@ public class SessionFactoryRegistry {
|
||||||
|
|
||||||
public static class ObjectFactoryImpl implements ObjectFactory {
|
public static class ObjectFactoryImpl implements ObjectFactory {
|
||||||
@Override
|
@Override
|
||||||
public Object getObjectInstance(Object reference, Name name, Context nameCtx, Hashtable<?, ?> environment)
|
public Object getObjectInstance(Object reference, Name name, Context nameCtx, Hashtable<?, ?> environment) {
|
||||||
throws Exception {
|
|
||||||
LOG.debugf( "JNDI lookup: %s", name );
|
LOG.debugf( "JNDI lookup: %s", name );
|
||||||
final String uuid = (String) ( (Reference) reference ).get( 0 ).getContent();
|
final String uuid = (String) ( (Reference) reference ).get( 0 ).getContent();
|
||||||
LOG.tracef( "Resolved to UUID = %s", uuid );
|
LOG.tracef( "Resolved to UUID = %s", uuid );
|
||||||
|
|
|
@ -99,8 +99,8 @@ public abstract class AbstractEntityLoader
|
||||||
Object[] row,
|
Object[] row,
|
||||||
ResultTransformer transformer,
|
ResultTransformer transformer,
|
||||||
ResultSet rs,
|
ResultSet rs,
|
||||||
SharedSessionContractImplementor session) throws SQLException, HibernateException {
|
SharedSessionContractImplementor session) {
|
||||||
return row[row.length-1];
|
return row[ row.length - 1 ];
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -108,7 +108,7 @@ public class CollectionElementLoader extends OuterJoinLoader {
|
||||||
Object[] row,
|
Object[] row,
|
||||||
ResultTransformer transformer,
|
ResultTransformer transformer,
|
||||||
ResultSet rs,
|
ResultSet rs,
|
||||||
SharedSessionContractImplementor session) throws SQLException, HibernateException {
|
SharedSessionContractImplementor session) {
|
||||||
return row[row.length - 1];
|
return row[row.length - 1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -83,7 +83,7 @@ public class SetterFieldImpl implements Setter {
|
||||||
return setterMethod;
|
return setterMethod;
|
||||||
}
|
}
|
||||||
|
|
||||||
private Object writeReplace() throws ObjectStreamException {
|
private Object writeReplace() {
|
||||||
return new SerialForm( containerClass, propertyName, field );
|
return new SerialForm( containerClass, propertyName, field );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -119,7 +119,7 @@ public class SetterMethodImpl implements Setter {
|
||||||
return setterMethod;
|
return setterMethod;
|
||||||
}
|
}
|
||||||
|
|
||||||
private Object writeReplace() throws ObjectStreamException {
|
private Object writeReplace() {
|
||||||
return new SerialForm( containerClass, propertyName, setterMethod );
|
return new SerialForm( containerClass, propertyName, setterMethod );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -53,12 +53,12 @@ public class ShortType
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String objectToSQLString(Short value, Dialect dialect) throws Exception {
|
public String objectToSQLString(Short value, Dialect dialect) {
|
||||||
return value.toString();
|
return value.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Short stringToObject(String xml) throws Exception {
|
public Short stringToObject(String xml) {
|
||||||
return Short.valueOf( xml );
|
return Short.valueOf( xml );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue