mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-24 02:12:15 -05:00
removed unnecessary explicit cast
This commit is contained in:
parent
e8d3553b2c
commit
1202f5109a
@ -118,10 +118,9 @@ public class DomainNameChecker {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Collection<?> subjectAltNames = certificate.getSubjectAlternativeNames();
|
Collection<List<?>> subjectAltNames = certificate.getSubjectAlternativeNames();
|
||||||
if (subjectAltNames != null) {
|
if (subjectAltNames != null) {
|
||||||
for (Object subjectAltName : subjectAltNames) {
|
for (List<?> altNameEntry : subjectAltNames) {
|
||||||
List<?> altNameEntry = (List<?>)(subjectAltName);
|
|
||||||
if ((altNameEntry != null) && (2 <= altNameEntry.size())) {
|
if ((altNameEntry != null) && (2 <= altNameEntry.size())) {
|
||||||
Integer altNameType = (Integer)(altNameEntry.get(0));
|
Integer altNameType = (Integer)(altNameEntry.get(0));
|
||||||
if (altNameType != null && altNameType.intValue() == ALT_IPA_NAME) {
|
if (altNameType != null && altNameType.intValue() == ALT_IPA_NAME) {
|
||||||
|
Loading…
Reference in New Issue
Block a user