Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ccavanaugh committed Jul 1, 2018
1 parent 3a62a03 commit c9832df
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ private void updateCharts() {
private ObservableList<PieChart.Data>[] createPieDataSet(@NotNull final Account account) {

@SuppressWarnings("unchecked")
final ObservableList<PieChart.Data>[] chartData = (ObservableList<PieChart.Data>[]) new ObservableList[2];
final ObservableList<PieChart.Data>[] chartData = new ObservableList[2];

chartData[CREDIT] = FXCollections.observableArrayList();
chartData[DEBIT] = FXCollections.observableArrayList();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ private void initialize() {
scrollPane.vvalueProperty().addListener(
(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) -> {

final double interval = 1d / (double) pageCount.get();
final double interval = 1d / pageCount.get();
double low = pageIndex.get() * interval;
double hi = low + interval;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import java.util.ResourceBundle;
import java.util.prefs.Preferences;

import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.scene.control.ButtonBar;
Expand Down Expand Up @@ -106,7 +105,7 @@ private void setDatabaseField(final String database) {
}

@FXML
protected void handleSelectFileAction(final ActionEvent event) {
protected void handleSelectFileAction() {
final File file = DatabasePathAction.getFileToOpen();

if (file != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ private NewFileWizard() {
}
}

public static void showAndWait() {
@SuppressWarnings("unused")
public static void showAndWait() {
new NewFileWizard();
}
}
3 changes: 2 additions & 1 deletion jgnash-plugin/src/main/java/jgnash/plugin/Plugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ public interface Plugin {
/**
* Called by the PluginFactory to start the plugin.
*/
default void start(PluginPlatform pluginPlatform) {
@SuppressWarnings("unused")
default void start(PluginPlatform pluginPlatform) {
}

/**
Expand Down
1 change: 1 addition & 0 deletions spelling.dic
Original file line number Diff line number Diff line change
Expand Up @@ -309,3 +309,4 @@ Gradle
versioning
uninstallation
INVACCTTO
nop

0 comments on commit c9832df

Please sign in to comment.