Commit e50e9b99 authored by Ricki Hirner's avatar Ricki Hirner 🐑

Upgrade to ez-vcard/0.10.2

parent 3ab8b6b9
Pipeline #6628701 passed with stage
in 10 minutes and 42 seconds
......@@ -55,7 +55,7 @@ dependencies {
provided 'org.projectlombok:lombok:1.16.14'
// ez-vcard to parse/generate VCards
compile('com.googlecode.ez-vcard:ez-vcard:0.10.1') {
compile('com.googlecode.ez-vcard:ez-vcard:0.10.2') {
// hCard functionality not needed
exclude group: 'org.jsoup'
exclude group: 'org.freemarker'
......
......@@ -26,8 +26,8 @@ import java.util.concurrent.atomic.AtomicInteger;
import ezvcard.Ezvcard;
import ezvcard.VCard;
import ezvcard.VCardVersion;
import ezvcard.ValidationWarning;
import ezvcard.ValidationWarnings;
import ezvcard.Warning;
import ezvcard.parameter.EmailType;
import ezvcard.parameter.ImageType;
import ezvcard.parameter.TelephoneType;
......@@ -520,8 +520,8 @@ public class Contact {
ValidationWarnings validation = vCard.validate(vCardVersion);
if (!validation.isEmpty()) {
Constants.log.warning("Generating possibly invalid VCard:");
for (Map.Entry<VCardProperty, List<Warning>> entry : validation)
for (Warning warning : entry.getValue())
for (Map.Entry<VCardProperty, List<ValidationWarning>> entry : validation)
for (ValidationWarning warning : entry.getValue())
if (entry.getKey() != null)
Constants.log.warning(" * " + entry.getKey().getClass().getSimpleName() + " - " + warning.getMessage());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment