HHH-8319 checkstyle

This commit is contained in:
Brett Meyer 2013-06-21 10:51:42 -04:00
parent 5abe02f92d
commit 77fd4d6a89
1 changed files with 7 additions and 7 deletions

View File

@ -57,19 +57,19 @@ public class MySQL5Dialect extends MySQLDialect {
return EXTRACTER;
}
private static ViolatedConstraintNameExtracter EXTRACTER = new TemplatedViolatedConstraintNameExtracter() {
private static final ViolatedConstraintNameExtracter EXTRACTER = new TemplatedViolatedConstraintNameExtracter() {
public String extractConstraintName(SQLException sqle) {
try {
int sqlState = Integer.valueOf( JdbcExceptionHelper.extractSqlState( sqle ) ).intValue();
final int sqlState = Integer.valueOf( JdbcExceptionHelper.extractSqlState( sqle ) ).intValue();
switch ( sqlState ) {
case 23000:
return extractUsingTemplate( " for key '", "'", sqle.getMessage() );
default:
return null;
case 23000:
return extractUsingTemplate( " for key '", "'", sqle.getMessage() );
default:
return null;
}
}
catch (NumberFormatException nfe) {
catch ( NumberFormatException nfe ) {
return null;
}
}