fix PMD warnings (empty catch blocks)

This commit is contained in:
Vincent Behar 2011-07-08 16:09:17 +02:00
parent aed16bfe69
commit bb14e9414c
2 changed files with 2 additions and 0 deletions

View file

@ -51,6 +51,7 @@ public class AbortParser implements XmlNodeParser<RundeckAbort> {
try { try {
abort.setStatus(AbortStatus.valueOf(StringUtils.upperCase(abortNode.valueOf("@status")))); abort.setStatus(AbortStatus.valueOf(StringUtils.upperCase(abortNode.valueOf("@status"))));
} catch (IllegalArgumentException e) { } catch (IllegalArgumentException e) {
abort.setStatus(null);
} }
Node execNode = abortNode.selectSingleNode("execution"); Node execNode = abortNode.selectSingleNode("execution");

View file

@ -54,6 +54,7 @@ public class ExecutionParser implements XmlNodeParser<RundeckExecution> {
try { try {
execution.setStatus(ExecutionStatus.valueOf(StringUtils.upperCase(execNode.valueOf("@status")))); execution.setStatus(ExecutionStatus.valueOf(StringUtils.upperCase(execNode.valueOf("@status"))));
} catch (IllegalArgumentException e) { } catch (IllegalArgumentException e) {
execution.setStatus(null);
} }
execution.setDescription(StringUtils.trimToNull(execNode.valueOf("description"))); execution.setDescription(StringUtils.trimToNull(execNode.valueOf("description")));
execution.setStartedBy(StringUtils.trimToNull(execNode.valueOf("user"))); execution.setStartedBy(StringUtils.trimToNull(execNode.valueOf("user")));