Skip to content

Commit 85dfaf3

Browse files
committed
Fix PMD warnings.
1 parent c12cd9a commit 85dfaf3

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Jenkinsfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
def configurations = [
2-
[ platform: "linux", jdk: "11" ]
2+
[ platform: "linux", jdk: "11" ],
3+
[ platform: "windows", jdk: "11" ]
34
]
45

5-
buildPlugin(failFast: false, configurations: configurations)
6+
buildPlugin(failFast: false, configurations: configurations,
7+
checkstyle: [qualityGates: [[threshold: 1, type: 'NEW', unstable: true]]],
8+
pmd: [qualityGates: [[threshold: 1, type: 'NEW', unstable: true]]] )

src/main/java/io/jenkins/plugins/datatables/TableColumn.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,8 @@ private String createDefinition() {
329329
return mapper.writerWithDefaultPrettyPrinter().writeValueAsString(columnDefinition);
330330
}
331331
catch (JsonProcessingException exception) {
332-
throw new IllegalArgumentException("Can't convert to JSON: " + columnDefinition);
332+
throw new IllegalArgumentException("Can't convert to JSON: " + columnDefinition,
333+
exception);
333334
}
334335
}
335336
}

0 commit comments

Comments
 (0)