Commit fb9e90ae authored by edmundszagars's avatar edmundszagars
Browse files

-Fixing "Unchecked generics array creation for varargs parameter less..." warnings in MainWindow

parent cf4e045e
......@@ -16,7 +16,6 @@ import sorting_algorithms.BubbleSort;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.Arrays;
public class MainWindow extends Application {
private FileChooser fileChooser = new FileChooser();
......@@ -63,15 +62,15 @@ public class MainWindow extends Application {
mergeSortCheckBox.setText("Merge sort");
mergeSortCheckBox.setSelected(true);
TableColumn<Result, Double> dataColumn = new TableColumn("Data");
TableColumn<Result, Double> dataColumn = new TableColumn<>("Data");
dataColumn.setMinWidth(300);
dataColumn.setCellValueFactory(new PropertyValueFactory<>("startDataString"));
TableColumn<Result, Double> resultDataColumn = new TableColumn("Result");
TableColumn<Result, Double> resultDataColumn = new TableColumn<>("Result");
resultDataColumn.setMinWidth(300);
resultDataColumn.setCellValueFactory(new PropertyValueFactory<>("resultDataString"));
TableColumn<Result, Long> timeColumn = new TableColumn("Execution Time");
TableColumn<Result, Long> timeColumn = new TableColumn<>("Execution Time");
timeColumn.setMinWidth(100);
timeColumn.setCellValueFactory(new PropertyValueFactory<>("executionResultTime"));
......@@ -85,7 +84,7 @@ public class MainWindow extends Application {
GetDataFromCSV dataFromCSV = new GetDataFromCSV();
dataFromCSV.setnFileLocation(filePath);
try {
list = new ArrayList(dataFromCSV.getDataFromCSV());
list = new ArrayList<>(dataFromCSV.getDataFromCSV());
} catch (FileNotFoundException e) {
e.printStackTrace();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment