Skip to content

Commit

Permalink
java 8 refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
benfortuna committed May 18, 2019
1 parent 3887122 commit 70cdc11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -2,7 +2,7 @@

import net.fortuna.ical4j.model.property.Created;

import java.text.ParseException;
import java.time.format.DateTimeParseException;

/**
*
Expand All @@ -20,7 +20,7 @@ public void applyTo(Created created) {
}
try {
created.setValue(created.getValue() + UTC_MARKER);
} catch (ParseException e) {
} catch (DateTimeParseException e) {
// Let the value as it is
}
}
Expand Down
Expand Up @@ -16,7 +16,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.text.ParseException;
import java.time.format.DateTimeParseException;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
Expand Down Expand Up @@ -76,7 +76,7 @@ static void correctTzParameterFrom(DateProperty property) {
property.setTimeZone(TIMEZONE_REGISTRY.getTimeZone(newTimezone));
try {
property.setValue(value);
} catch (ParseException e) {
} catch (DateTimeParseException e) {
LOG.warn("Failed to reset property value", e);
}
} else {
Expand Down

0 comments on commit 70cdc11

Please sign in to comment.