fixed warnings

This commit is contained in:
Ziver Koc 2010-08-14 15:36:53 +00:00
parent 80565a2b03
commit 2693a9eb4e
3 changed files with 2 additions and 3 deletions

View file

@ -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

View file

@ -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){

View file

@ -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];