mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 08:35:13 +00:00
HHH-13496 Remove pointless variable initializers
This commit is contained in:
parent
f41b11ad3f
commit
0b67ac0d0b
@ -18,7 +18,7 @@
|
||||
*/
|
||||
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 void initialize() throws SemanticException {
|
||||
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 @@ protected List executeLoad(
|
||||
}
|
||||
persistenceContext.beforeLoad();
|
||||
try {
|
||||
List results = null;
|
||||
final List results;
|
||||
final String sql = loadQueryDetails.getSqlStatement();
|
||||
SqlStatementWrapper wrapper = null;
|
||||
try {
|
||||
|
@ -1211,7 +1211,7 @@ public void remove(Serializable id, SharedSessionContractImplementor session) th
|
||||
|
||||
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 void recreate(PersistentCollection collection, Serializable id, SharedSes
|
||||
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 void deleteRows(PersistentCollection collection, Serializable id, SharedS
|
||||
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…
x
Reference in New Issue
Block a user