Skip to content

Commit 6e51ce3

Browse files
author
Vincent Potucek
committed
EmptyControlStatement
1 parent 11f29ff commit 6e51ce3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

its/core-it-support/core-it-plugins/maven-it-plugin-active-collection/src/main/java/org/apache/maven/plugin/coreit/CheckThreadSafetyMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,11 @@ public void run() {
9797
while (go.isEmpty()) {
9898
// [WARNING] PMD Failure: Rule:EmptyControlStatement Priority:3 Empty while statement.
9999
try {
100+
// wait for the start
100101
Thread.sleep(100);
101102
} catch (InterruptedException e) {
102103
throw new RuntimeException(e);
103104
}
104-
// wait for the start
105105
}
106106
for (int j = 0; j < 10 * 1000; j++) {
107107
try {

its/core-it-support/core-it-plugins/maven-it-plugin-dependency-resolution/src/main/java/org/apache/maven/plugin/coreit/AbstractDependencyMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ private String calcChecksum(File jarFile) throws IOException, NoSuchAlgorithmExc
223223

224224
try (FileInputStream is = new FileInputStream(jarFile)) {
225225
// [WARNING] PMD Failure: Rule:EmptyControlStatement Priority:3 Empty for statement.
226-
new DigestInputStream(is, digester).read(new byte[1024 * 4]);
226+
new DigestInputStream(is, digester).read(new byte[1024 * 4]); // only read required.
227227
}
228228

229229
byte[] digest = digester.digest();

0 commit comments

Comments
 (0)