1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-25 00:58:50 -05:00

removed unnecessary explicit cast

This commit is contained in:
András Veres-Szentkirályi 2014-02-15 21:51:19 +01:00
parent e8d3553b2c
commit 1202f5109a

View File

@ -118,10 +118,9 @@ public class DomainNameChecker {
}
try {
Collection<?> subjectAltNames = certificate.getSubjectAlternativeNames();
Collection<List<?>> subjectAltNames = certificate.getSubjectAlternativeNames();
if (subjectAltNames != null) {
for (Object subjectAltName : subjectAltNames) {
List<?> altNameEntry = (List<?>)(subjectAltName);
for (List<?> altNameEntry : subjectAltNames) {
if ((altNameEntry != null) && (2 <= altNameEntry.size())) {
Integer altNameType = (Integer)(altNameEntry.get(0));
if (altNameType != null && altNameType.intValue() == ALT_IPA_NAME) {