mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-25 13:34:54 +08:00
remove unnecessary SuppressWarning
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user