HHH-6615 Minor format changes
This commit is contained in:
parent
ea170f4dca
commit
c02a703b17
|
@ -65,11 +65,9 @@ public class DefaultRevisionInfoGenerator implements RevisionInfoGenerator {
|
|||
@Override
|
||||
public void saveRevisionData(Session session, Object revisionData) {
|
||||
session.save( revisionInfoEntityName, revisionData );
|
||||
if ( revisionInfoNumberReader != null ) {
|
||||
if ( revisionInfoNumberReader.getRevisionNumber( revisionData ).longValue() < 0 ) {
|
||||
if ( revisionInfoNumberReader != null && revisionInfoNumberReader.getRevisionNumber( revisionData ).longValue() < 0 ) {
|
||||
throw new AuditException( "Negative revision numbers are not allowed" );
|
||||
}
|
||||
}
|
||||
sessionCacheCleaner.scheduleAuditDataRemoval( session, revisionData );
|
||||
}
|
||||
|
||||
|
|
|
@ -90,7 +90,7 @@ public class RevisionNumberOverflowTest extends BaseEnversJPAFunctionalTestCase
|
|||
root = root.getCause();
|
||||
}
|
||||
assertTyping( type, root );
|
||||
assertEquals( root.getMessage(), message );
|
||||
assertEquals( message, root.getMessage() );
|
||||
}
|
||||
|
||||
// We create a custom revision entity here with an explicit configuration for the revision
|
||||
|
|
Loading…
Reference in New Issue