Skip to content

Commit a27306b

Browse files
committed
style: enable EmptyStatement
1 parent 7a42f68 commit a27306b

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

checkstyle.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160

161161
<!-- Checks for common coding problems -->
162162
<!-- See https://checkstyle.org/checks/coding/index.html -->
163-
<!-- <module name="EmptyStatement"/> -->
163+
<module name="EmptyStatement"/>
164164
<!-- TODO <module name="EqualsHashCode"/> -->
165165
<!-- TODO <module name="HiddenField"/> -->
166166
<module name="IllegalInstantiation"/>

src/main/java/com/thealgorithms/sorts/CircleSort.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ public class CircleSort implements SortAlgorithm {
1010
@Override
1111
public <T extends Comparable<T>> T[] sort(T[] array) {
1212
int n = array.length;
13-
while (doSort(array, 0, n - 1))
14-
;
13+
while (doSort(array, 0, n - 1)) {
14+
}
1515
return array;
1616
}
1717

src/test/java/com/thealgorithms/ciphers/DESTest.java

-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ void testDecrypt() {
4545
+ "001101001101001001101011001000011100000011001000011011001110101010010111101111000111"
4646
+ "101010011010110000100100110011000001010001010110010011011010001010011111000001110011001010011";
4747
String expectedOutput = "Your lips are smoother than vaseline\r\n";
48-
;
4948

5049
// when
5150
String plainText = des.decrypt(cipherText);

0 commit comments

Comments
 (0)