remove unnecessary SuppressWarning

This commit is contained in:
EAlexa
2020-04-07 16:37:17 +02:00
parent 3629e32c08
commit c560e72201

View File

@ -20,7 +20,7 @@ class MergeSort implements SortAlgorithm {
* @return sorted array
*/
@Override
@SuppressWarnings("unchecked")
public <T extends Comparable<T>> T[] sort(T[] unsorted) {
doSort(unsorted, 0, unsorted.length - 1);
return unsorted;