mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-30 21:08:30 +08:00
Code style: remove final in local variables
This commit is contained in:
parent
72b9c49610
commit
579630df08
@ -489,13 +489,13 @@ public class AbstractMetaDataExportMojo extends AbstractMojo {
|
||||
exporter.setConfiguration(configuration);
|
||||
|
||||
Class.forName(jdbcDriver);
|
||||
final String user;
|
||||
final String password;
|
||||
String user;
|
||||
String password;
|
||||
if (server == null) {
|
||||
user = jdbcUser;
|
||||
password = jdbcPassword;
|
||||
} else {
|
||||
final AuthenticationInfo info = wagonManager.getAuthenticationInfo(server);
|
||||
AuthenticationInfo info = wagonManager.getAuthenticationInfo(server);
|
||||
if (info == null) {
|
||||
throw new MojoExecutionException("No authentication info for server " + server);
|
||||
}
|
||||
@ -510,7 +510,7 @@ public class AbstractMetaDataExportMojo extends AbstractMojo {
|
||||
throw new MojoExecutionException("Missing password from server " + server);
|
||||
}
|
||||
}
|
||||
final Connection conn = DriverManager.getConnection(jdbcUrl, user, password);
|
||||
Connection conn = DriverManager.getConnection(jdbcUrl, user, password);
|
||||
try {
|
||||
exporter.export(conn.getMetaData());
|
||||
} finally {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user