style: enable EmptyStatement (#5120)

This commit is contained in:
Piotr Idzik 2024-04-26 21:39:03 +02:00 committed by GitHub
parent 6de154d218
commit de18d0df7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 4 deletions

View File

@ -160,7 +160,7 @@
<!-- Checks for common coding problems -->
<!-- See https://checkstyle.org/checks/coding/index.html -->
<!-- <module name="EmptyStatement"/> -->
<module name="EmptyStatement"/>
<!-- TODO <module name="EqualsHashCode"/> -->
<!-- TODO <module name="HiddenField"/> -->
<module name="IllegalInstantiation"/>

View File

@ -10,8 +10,8 @@ public class CircleSort implements SortAlgorithm {
@Override
public <T extends Comparable<T>> T[] sort(T[] array) {
int n = array.length;
while (doSort(array, 0, n - 1))
;
while (doSort(array, 0, n - 1)) {
}
return array;
}

View File

@ -45,7 +45,6 @@ public class DESTest {
+ "001101001101001001101011001000011100000011001000011011001110101010010111101111000111"
+ "101010011010110000100100110011000001010001010110010011011010001010011111000001110011001010011";
String expectedOutput = "Your lips are smoother than vaseline\r\n";
;
// when
String plainText = des.decrypt(cipherText);