fixed warnings

This commit is contained in:
Ziver Koc 2010-08-14 15:38:56 +00:00
parent 2693a9eb4e
commit 93b14283c2
5 changed files with 20 additions and 20 deletions

View file

@ -43,7 +43,7 @@ public class QuickSort{
* @param stop is the index to stop
* @param type is the type of pivot to use
*/
@SuppressWarnings("unchecked")
@SuppressWarnings({ "unchecked", "rawtypes" })
public static void sort(SortableDataList list, int start, int stop, int type, boolean insertionSort){
if(stop-start <= 15 && insertionSort){
SimpleSort.insertionSort( list, start, stop);
@ -76,7 +76,7 @@ public class QuickSort{
}
@SuppressWarnings("unchecked")
@SuppressWarnings({ "unchecked", "rawtypes" })
private static int pivot(SortableDataList<?> list, int start, int stop,int type){
switch(type){
case RANDOM_PIVOT:

View file

@ -14,7 +14,7 @@ public class Randomizer {
* Randomizes the index of all the elements
* @param list The list
*/
@SuppressWarnings("unchecked")
@SuppressWarnings({ "rawtypes" })
public static void sort(SortableDataList list){
int size = list.size();
for(int i=0; i<size ;i++){