Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Edmunds Žagars
Java_course_final
Commits
fb9e90ae
Commit
fb9e90ae
authored
Apr 06, 2018
by
edmundszagars
Browse files
-Fixing "Unchecked generics array creation for varargs parameter less..." warnings in MainWindow
parent
cf4e045e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
src/gui/MainWindow.java
src/gui/MainWindow.java
+4
-5
No files found.
src/gui/MainWindow.java
View file @
fb9e90ae
...
@@ -16,7 +16,6 @@ import sorting_algorithms.BubbleSort;
...
@@ -16,7 +16,6 @@ import sorting_algorithms.BubbleSort;
import
java.io.File
;
import
java.io.File
;
import
java.io.FileNotFoundException
;
import
java.io.FileNotFoundException
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
public
class
MainWindow
extends
Application
{
public
class
MainWindow
extends
Application
{
private
FileChooser
fileChooser
=
new
FileChooser
();
private
FileChooser
fileChooser
=
new
FileChooser
();
...
@@ -63,15 +62,15 @@ public class MainWindow extends Application {
...
@@ -63,15 +62,15 @@ public class MainWindow extends Application {
mergeSortCheckBox
.
setText
(
"Merge sort"
);
mergeSortCheckBox
.
setText
(
"Merge sort"
);
mergeSortCheckBox
.
setSelected
(
true
);
mergeSortCheckBox
.
setSelected
(
true
);
TableColumn
<
Result
,
Double
>
dataColumn
=
new
TableColumn
(
"Data"
);
TableColumn
<
Result
,
Double
>
dataColumn
=
new
TableColumn
<>
(
"Data"
);
dataColumn
.
setMinWidth
(
300
);
dataColumn
.
setMinWidth
(
300
);
dataColumn
.
setCellValueFactory
(
new
PropertyValueFactory
<>(
"startDataString"
));
dataColumn
.
setCellValueFactory
(
new
PropertyValueFactory
<>(
"startDataString"
));
TableColumn
<
Result
,
Double
>
resultDataColumn
=
new
TableColumn
(
"Result"
);
TableColumn
<
Result
,
Double
>
resultDataColumn
=
new
TableColumn
<>
(
"Result"
);
resultDataColumn
.
setMinWidth
(
300
);
resultDataColumn
.
setMinWidth
(
300
);
resultDataColumn
.
setCellValueFactory
(
new
PropertyValueFactory
<>(
"resultDataString"
));
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
.
setMinWidth
(
100
);
timeColumn
.
setCellValueFactory
(
new
PropertyValueFactory
<>(
"executionResultTime"
));
timeColumn
.
setCellValueFactory
(
new
PropertyValueFactory
<>(
"executionResultTime"
));
...
@@ -85,7 +84,7 @@ public class MainWindow extends Application {
...
@@ -85,7 +84,7 @@ public class MainWindow extends Application {
GetDataFromCSV
dataFromCSV
=
new
GetDataFromCSV
();
GetDataFromCSV
dataFromCSV
=
new
GetDataFromCSV
();
dataFromCSV
.
setnFileLocation
(
filePath
);
dataFromCSV
.
setnFileLocation
(
filePath
);
try
{
try
{
list
=
new
ArrayList
(
dataFromCSV
.
getDataFromCSV
());
list
=
new
ArrayList
<>
(
dataFromCSV
.
getDataFromCSV
());
}
catch
(
FileNotFoundException
e
)
{
}
catch
(
FileNotFoundException
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment