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:
parent
e8d3553b2c
commit
1202f5109a
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user