Apply "type inference for generic instance creation" Java 7 feature
Change-Id: Ia14802c903ca67b9d94dc6038d70b0e9644bc621
This commit is contained in:
@@ -42,7 +42,7 @@ class HostKeyProvider implements Provider<KeyPairProvider> {
|
||||
final File rsaKey = site.ssh_rsa;
|
||||
final File dsaKey = site.ssh_dsa;
|
||||
|
||||
final List<String> stdKeys = new ArrayList<String>(2);
|
||||
final List<String> stdKeys = new ArrayList<>(2);
|
||||
if (rsaKey.exists()) {
|
||||
stdKeys.add(rsaKey.getAbsolutePath());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user