Skip to content

File tree

5 files changed

+6
-3
lines changed

5 files changed

+6
-3
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
<liquibase.plugin.version>3.2.0</liquibase.plugin.version>
6767
<license.plugin.version>1.9.0</license.plugin.version>
6868
<checkstyle.plugin.version>2.13</checkstyle.plugin.version>
69-
<pmd.plugin.version>3.1</pmd.plugin.version>
69+
<pmd.plugin.version>3.2</pmd.plugin.version>
7070
<jacoco.plugin.version>0.6.4.201312101107</jacoco.plugin.version>
7171
<coveralls.plugin.version>2.2.0</coveralls.plugin.version>
7272
<javadoc.plugin.version>2.9.1</javadoc.plugin.version>

src/main/config/pmd.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
</rule>
4545

4646
<rule ref="rulesets/java/comments.xml">
47+
<exclude name="CommentRequired" />
4748
<exclude name="CommentSize" />
4849
</rule>
4950

src/main/java/ru/mystamps/web/controller/CollectionController.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ public String showInfo(
8181
return "collection/info";
8282
}
8383

84+
// false positive
85+
@SuppressWarnings("PMD.UnusedPrivateMethod")
8486
private Map<String, Integer> getCountriesStatistics(Collection collection, String lang) {
8587
Map<String, Integer> countriesStat = countryService.getStatisticsOf(collection, lang);
8688

src/main/java/ru/mystamps/web/service/FilesystemImagePersistenceStrategy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public void init() {
5353
}
5454

5555
if (!storageDir.canWrite()) {
56-
LOG.warn(
56+
LOG.warn(// NOPMD: GuardLogStatement
5757
"Directory '{}' exists but doesn't writable for current user! "
5858
+ "Image uploading won't work.",
5959
storageDir

src/main/java/ru/mystamps/web/service/MailServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public void prepare(MimeMessage mimeMessage) throws Exception {
9292
mailer.send(preparator);
9393

9494
} catch (MailException ex) {
95-
LOG.error("Can't send mail to e-mail " + email, ex);
95+
LOG.error("Can't send mail to e-mail " + email, ex); // NOPMD: GuardLogStatementJavaUtil
9696
}
9797
}
9898

0 commit comments

Comments
 (0)