fixed compile errors
This commit is contained in:
parent
6966c520c5
commit
4750a96032
1 changed files with 2 additions and 2 deletions
|
@ -154,11 +154,11 @@ public class CertificateDAOImpl implements CertificateDAO {
|
||||||
throw new RuntimeException("Alias name already exists: " + alias);
|
throw new RuntimeException("Alias name already exists: " + alias);
|
||||||
}
|
}
|
||||||
|
|
||||||
Collections.<String> list(store.engineAliases())
|
Collections.list(store.engineAliases())
|
||||||
.stream()
|
.stream()
|
||||||
.forEach(key -> {
|
.forEach(key -> {
|
||||||
try {
|
try {
|
||||||
final Certificate cert = store.engineGetCertificate(key);
|
final Certificate cert = store.engineGetCertificate(String.valueOf(key));
|
||||||
if (cert.equals(certificate)) {
|
if (cert.equals(certificate)) {
|
||||||
throw new RuntimeException("Certificate already exists: " + key);
|
throw new RuntimeException("Certificate already exists: " + key);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue