From de18d0df7e5d807e01971747f2613726e5cd0e1f Mon Sep 17 00:00:00 2001
From: Piotr Idzik <65706193+vil02@users.noreply.github.com>
Date: Fri, 26 Apr 2024 21:39:03 +0200
Subject: [PATCH] style: enable `EmptyStatement` (#5120)
---
checkstyle.xml | 2 +-
src/main/java/com/thealgorithms/sorts/CircleSort.java | 4 ++--
src/test/java/com/thealgorithms/ciphers/DESTest.java | 1 -
3 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/checkstyle.xml b/checkstyle.xml
index 6f635c7a..e4764fb1 100644
--- a/checkstyle.xml
+++ b/checkstyle.xml
@@ -160,7 +160,7 @@
-
+
diff --git a/src/main/java/com/thealgorithms/sorts/CircleSort.java b/src/main/java/com/thealgorithms/sorts/CircleSort.java
index 74b3fc62..7f2dc5fd 100644
--- a/src/main/java/com/thealgorithms/sorts/CircleSort.java
+++ b/src/main/java/com/thealgorithms/sorts/CircleSort.java
@@ -10,8 +10,8 @@ public class CircleSort implements SortAlgorithm {
@Override
public > T[] sort(T[] array) {
int n = array.length;
- while (doSort(array, 0, n - 1))
- ;
+ while (doSort(array, 0, n - 1)) {
+ }
return array;
}
diff --git a/src/test/java/com/thealgorithms/ciphers/DESTest.java b/src/test/java/com/thealgorithms/ciphers/DESTest.java
index e652c028..834f7e19 100644
--- a/src/test/java/com/thealgorithms/ciphers/DESTest.java
+++ b/src/test/java/com/thealgorithms/ciphers/DESTest.java
@@ -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);