Skip to content

Commit

Permalink
Stop using deprecated exception class
Browse files Browse the repository at this point in the history
  • Loading branch information
basil committed Nov 30, 2024
1 parent b90e551 commit db926a4
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
*/
package io.jenkins.plugins.view.calendar.service;

import antlr.ANTLRException;
import hudson.model.AbstractProject;
import hudson.model.Job;
import hudson.scheduler.CronTab;
Expand Down Expand Up @@ -92,7 +91,7 @@ public List<CronTab> getCronTabs(final Trigger trigger, final Hash hash) {
@SuppressWarnings("PMD.AvoidInstantiatingObjectsInLoops")
final CronTab cronTab = new CronTab(line, lineNumber, hash, timezone);
cronTabs.add(cronTab);
} catch (ANTLRException e) {
} catch (IllegalArgumentException e) {
final String msg = "Unable to parse cron trigger spec: '" + line + "'";
Logger.getLogger(this.getClass()).error(msg, e);
}
Expand Down

0 comments on commit db926a4

Please sign in to comment.