HHH-13496 Remove pointless variable initializers
This commit is contained in:
parent
f41b11ad3f
commit
0b67ac0d0b
|
@ -18,7 +18,7 @@ import org.hibernate.internal.util.StringHelper;
|
|||
*/
|
||||
public class Caching {
|
||||
// NOTE : TruthValue for now because I need to look at how JPA's SharedCacheMode concept is handled
|
||||
private TruthValue requested = TruthValue.UNKNOWN;
|
||||
private TruthValue requested;
|
||||
private String region;
|
||||
private AccessType accessType;
|
||||
private boolean cacheLazyProperties;
|
||||
|
|
|
@ -37,7 +37,7 @@ public class BinaryArithmeticOperatorNode extends AbstractSelectExpression
|
|||
final Type rhType = ( rhs instanceof SqlNode ) ? ( (SqlNode) rhs ).getDataType() : null;
|
||||
|
||||
if ( ExpectedTypeAwareNode.class.isAssignableFrom( lhs.getClass() ) && rhType != null ) {
|
||||
Type expectedType = null;
|
||||
final Type expectedType;
|
||||
// we have something like : "? [op] rhs"
|
||||
if ( isDateTimeType( rhType ) ) {
|
||||
// more specifically : "? [op] datetime"
|
||||
|
|
|
@ -114,7 +114,7 @@ public abstract class AbstractLoadPlanBasedLoader {
|
|||
}
|
||||
persistenceContext.beforeLoad();
|
||||
try {
|
||||
List results = null;
|
||||
final List results;
|
||||
final String sql = loadQueryDetails.getSqlStatement();
|
||||
SqlStatementWrapper wrapper = null;
|
||||
try {
|
||||
|
|
|
@ -1211,7 +1211,7 @@ public abstract class AbstractCollectionPersister
|
|||
|
||||
try {
|
||||
int offset = 1;
|
||||
PreparedStatement st = null;
|
||||
final PreparedStatement st;
|
||||
Expectation expectation = Expectations.appropriateExpectation( getDeleteAllCheckStyle() );
|
||||
boolean callable = isDeleteAllCallable();
|
||||
boolean useBatch = expectation.canBeBatched();
|
||||
|
@ -1313,7 +1313,7 @@ public abstract class AbstractCollectionPersister
|
|||
final Object entry = entries.next();
|
||||
if ( collection.entryExists( entry, i ) ) {
|
||||
int offset = 1;
|
||||
PreparedStatement st = null;
|
||||
final PreparedStatement st;
|
||||
boolean callable = isInsertCallable();
|
||||
boolean useBatch = expectation.canBeBatched();
|
||||
String sql = getSQLInsertRowString();
|
||||
|
@ -1429,7 +1429,7 @@ public abstract class AbstractCollectionPersister
|
|||
int offset = 1;
|
||||
int count = 0;
|
||||
while ( deletes.hasNext() ) {
|
||||
PreparedStatement st = null;
|
||||
final PreparedStatement st;
|
||||
boolean callable = isDeleteCallable();
|
||||
boolean useBatch = expectation.canBeBatched();
|
||||
String sql = getSQLDeleteRowString();
|
||||
|
|
Loading…
Reference in New Issue