fixed warnings
This commit is contained in:
parent
80565a2b03
commit
2693a9eb4e
3 changed files with 2 additions and 3 deletions
|
|
@ -2,7 +2,6 @@ package zutil.algo.path;
|
||||||
|
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.LinkedList;
|
import java.util.LinkedList;
|
||||||
import java.util.Queue;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A PathFinder class implemented with DFS
|
* A PathFinder class implemented with DFS
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ import zutil.algo.sort.sortable.SortableDataList;
|
||||||
* @author Ziver
|
* @author Ziver
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||||
public class QuickSelect {
|
public class QuickSelect {
|
||||||
|
|
||||||
public static Object find(SortableDataList list, int k){
|
public static Object find(SortableDataList list, int k){
|
||||||
|
|
|
||||||
|
|
@ -110,7 +110,7 @@ public class MergeSort{
|
||||||
* @param stop is the end of the second sublist
|
* @param stop is the end of the second sublist
|
||||||
* @param pivot is the end index for the first list and the beginning of the second.
|
* @param pivot is the end index for the first list and the beginning of the second.
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||||
protected static <T> void merge(SortableDataList<T> list, int start, int stop, int pivot){
|
protected static <T> void merge(SortableDataList<T> list, int start, int stop, int pivot){
|
||||||
int length = pivot-start;
|
int length = pivot-start;
|
||||||
Object[] tmp = new Object[stop-start];
|
Object[] tmp = new Object[stop-start];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue