style: enable EmptyStatement
(#5120)
This commit is contained in:
parent
6de154d218
commit
de18d0df7e
@ -160,7 +160,7 @@
|
|||||||
|
|
||||||
<!-- Checks for common coding problems -->
|
<!-- Checks for common coding problems -->
|
||||||
<!-- See https://checkstyle.org/checks/coding/index.html -->
|
<!-- See https://checkstyle.org/checks/coding/index.html -->
|
||||||
<!-- <module name="EmptyStatement"/> -->
|
<module name="EmptyStatement"/>
|
||||||
<!-- TODO <module name="EqualsHashCode"/> -->
|
<!-- TODO <module name="EqualsHashCode"/> -->
|
||||||
<!-- TODO <module name="HiddenField"/> -->
|
<!-- TODO <module name="HiddenField"/> -->
|
||||||
<module name="IllegalInstantiation"/>
|
<module name="IllegalInstantiation"/>
|
||||||
|
@ -10,8 +10,8 @@ public class CircleSort implements SortAlgorithm {
|
|||||||
@Override
|
@Override
|
||||||
public <T extends Comparable<T>> T[] sort(T[] array) {
|
public <T extends Comparable<T>> T[] sort(T[] array) {
|
||||||
int n = array.length;
|
int n = array.length;
|
||||||
while (doSort(array, 0, n - 1))
|
while (doSort(array, 0, n - 1)) {
|
||||||
;
|
}
|
||||||
return array;
|
return array;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,7 +45,6 @@ public class DESTest {
|
|||||||
+ "001101001101001001101011001000011100000011001000011011001110101010010111101111000111"
|
+ "001101001101001001101011001000011100000011001000011011001110101010010111101111000111"
|
||||||
+ "101010011010110000100100110011000001010001010110010011011010001010011111000001110011001010011";
|
+ "101010011010110000100100110011000001010001010110010011011010001010011111000001110011001010011";
|
||||||
String expectedOutput = "Your lips are smoother than vaseline\r\n";
|
String expectedOutput = "Your lips are smoother than vaseline\r\n";
|
||||||
;
|
|
||||||
|
|
||||||
// when
|
// when
|
||||||
String plainText = des.decrypt(cipherText);
|
String plainText = des.decrypt(cipherText);
|
||||||
|
Loading…
Reference in New Issue
Block a user