fix: removed warning for Sorts 'C-style array declaration of parameter 'array''

This commit is contained in:
valery noname
2019-12-30 13:03:14 +07:00
parent d9c7b8477e
commit a6ae951580
4 changed files with 14 additions and 14 deletions

View File

@ -17,7 +17,7 @@ class BubbleSort implements SortAlgorithm {
**/
@Override
public <T extends Comparable<T>> T[] sort(T array[]) {
public <T extends Comparable<T>> T[] sort(T[] array) {
for (int i = 0, size = array.length; i < size - 1; ++i) {
boolean swapped = false;
for (int j = 0; j < size - 1 - i; ++j) {