Skip to content

style: enable EmptyStatement #5120

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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"/>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/thealgorithms/sorts/CircleSort.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
1 change: 0 additions & 1 deletion src/test/java/com/thealgorithms/ciphers/DESTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ void testDecrypt() {
+ "001101001101001001101011001000011100000011001000011011001110101010010111101111000111"
+ "101010011010110000100100110011000001010001010110010011011010001010011111000001110011001010011";
String expectedOutput = "Your lips are smoother than vaseline\r\n";
;

// when
String plainText = des.decrypt(cipherText);
Expand Down