mirror of
https://github.com/Fishwaldo/rundeck-api-java-client.git
synced 2025-07-08 14:08:33 +00:00
fix PMD warnings (empty catch blocks)
This commit is contained in:
parent
aed16bfe69
commit
bb14e9414c
2 changed files with 2 additions and 0 deletions
|
@ -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");
|
||||||
|
|
|
@ -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")));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue