mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-20 01:55:02 +00:00
HHH-13496 Remove pointless variable initializers
This commit is contained in:
parent
f41b11ad3f
commit
0b67ac0d0b
@ -18,7 +18,7 @@
|
|||||||
*/
|
*/
|
||||||
public class Caching {
|
public class Caching {
|
||||||
// NOTE : TruthValue for now because I need to look at how JPA's SharedCacheMode concept is handled
|
// 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 String region;
|
||||||
private AccessType accessType;
|
private AccessType accessType;
|
||||||
private boolean cacheLazyProperties;
|
private boolean cacheLazyProperties;
|
||||||
|
@ -37,7 +37,7 @@ public void initialize() throws SemanticException {
|
|||||||
final Type rhType = ( rhs instanceof SqlNode ) ? ( (SqlNode) rhs ).getDataType() : null;
|
final Type rhType = ( rhs instanceof SqlNode ) ? ( (SqlNode) rhs ).getDataType() : null;
|
||||||
|
|
||||||
if ( ExpectedTypeAwareNode.class.isAssignableFrom( lhs.getClass() ) && rhType != null ) {
|
if ( ExpectedTypeAwareNode.class.isAssignableFrom( lhs.getClass() ) && rhType != null ) {
|
||||||
Type expectedType = null;
|
final Type expectedType;
|
||||||
// we have something like : "? [op] rhs"
|
// we have something like : "? [op] rhs"
|
||||||
if ( isDateTimeType( rhType ) ) {
|
if ( isDateTimeType( rhType ) ) {
|
||||||
// more specifically : "? [op] datetime"
|
// more specifically : "? [op] datetime"
|
||||||
|
@ -114,7 +114,7 @@ protected List executeLoad(
|
|||||||
}
|
}
|
||||||
persistenceContext.beforeLoad();
|
persistenceContext.beforeLoad();
|
||||||
try {
|
try {
|
||||||
List results = null;
|
final List results;
|
||||||
final String sql = loadQueryDetails.getSqlStatement();
|
final String sql = loadQueryDetails.getSqlStatement();
|
||||||
SqlStatementWrapper wrapper = null;
|
SqlStatementWrapper wrapper = null;
|
||||||
try {
|
try {
|
||||||
|
@ -1211,7 +1211,7 @@ public void remove(Serializable id, SharedSessionContractImplementor session) th
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
int offset = 1;
|
int offset = 1;
|
||||||
PreparedStatement st = null;
|
final PreparedStatement st;
|
||||||
Expectation expectation = Expectations.appropriateExpectation( getDeleteAllCheckStyle() );
|
Expectation expectation = Expectations.appropriateExpectation( getDeleteAllCheckStyle() );
|
||||||
boolean callable = isDeleteAllCallable();
|
boolean callable = isDeleteAllCallable();
|
||||||
boolean useBatch = expectation.canBeBatched();
|
boolean useBatch = expectation.canBeBatched();
|
||||||
@ -1313,7 +1313,7 @@ public void recreate(PersistentCollection collection, Serializable id, SharedSes
|
|||||||
final Object entry = entries.next();
|
final Object entry = entries.next();
|
||||||
if ( collection.entryExists( entry, i ) ) {
|
if ( collection.entryExists( entry, i ) ) {
|
||||||
int offset = 1;
|
int offset = 1;
|
||||||
PreparedStatement st = null;
|
final PreparedStatement st;
|
||||||
boolean callable = isInsertCallable();
|
boolean callable = isInsertCallable();
|
||||||
boolean useBatch = expectation.canBeBatched();
|
boolean useBatch = expectation.canBeBatched();
|
||||||
String sql = getSQLInsertRowString();
|
String sql = getSQLInsertRowString();
|
||||||
@ -1429,7 +1429,7 @@ public void deleteRows(PersistentCollection collection, Serializable id, SharedS
|
|||||||
int offset = 1;
|
int offset = 1;
|
||||||
int count = 0;
|
int count = 0;
|
||||||
while ( deletes.hasNext() ) {
|
while ( deletes.hasNext() ) {
|
||||||
PreparedStatement st = null;
|
final PreparedStatement st;
|
||||||
boolean callable = isDeleteCallable();
|
boolean callable = isDeleteCallable();
|
||||||
boolean useBatch = expectation.canBeBatched();
|
boolean useBatch = expectation.canBeBatched();
|
||||||
String sql = getSQLDeleteRowString();
|
String sql = getSQLDeleteRowString();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user