fix checkstyle errors

This commit is contained in:
Andrea Boriero 2017-12-13 17:47:18 +00:00
parent 37df2bac74
commit 814d0c260b
3 changed files with 4 additions and 4 deletions

View File

@ -1215,7 +1215,7 @@ public void sort(List<AbstractEntityInsertAction> insertions) {
if ( iterations > maxIterations ) {
LOG.warn( "The batch containing " + latestBatches.size() + " statements could not be sorted after " + maxIterations + " iterations. " +
"This might indicate a circular entity relationship." );
"This might indicate a circular entity relationship." );
}
// Now, rebuild the insertions list. There is a batch for each entry in the name list.

View File

@ -223,7 +223,7 @@ public void afterLoad(SharedSessionContractImplementor session, Object entity, L
( (Session) session ).buildLockRequest( lockOptionsToUse )
.lock( persister.getEntityName(), entity );
}
}
}
);
parameters.setLockOptions( new LockOptions() );
return sql;

View File

@ -552,8 +552,8 @@ public Type getTypeUsingProjection(Criteria subcriteria, String propertyName)
//first look for a reference to a projection alias
final Projection projection = rootCriteria.getProjection();
Type[] projectionTypes = projection == null ?
null :
projection.getTypes( propertyName, subcriteria, this );
null :
projection.getTypes( propertyName, subcriteria, this );
if ( projectionTypes == null ) {
try {