Add private empty constructor to static classes

This commit is contained in:
Oystein Kristoffer Tveit 2021-04-25 22:14:59 +02:00
parent e274ac5e87
commit f89968d9d0
4 changed files with 8 additions and 1 deletions

View File

@ -5,6 +5,8 @@ import javafx.scene.control.Alert.AlertType;
public class DialogBoxes {
private DialogBoxes() {}
public static void showErrorMessage(String errorMessage) {
Alert error = new Alert(AlertType.ERROR);
error.setContentText(errorMessage);

View File

@ -14,7 +14,8 @@ import javafx.stage.Stage;
public class FileOperations {
// FIXME: This class contains bugs when opening fiies and folders.
private FileOperations() {}
// TODO: Needs documentation and cleanup
// TODO: This class needs to be extensively error checked

View File

@ -20,6 +20,8 @@ public class FiletreeOperations {
private static int iconSize = 20;
private FiletreeOperations() {}
// TODO: Clean up code that is not in use
// TODO: Error check for recursiveness, and files without icons

View File

@ -14,6 +14,8 @@ import app.model.ProgrammingLanguage;
* that implements {@link app.model.ProgrammingLanguage ProgrammingLanguage}
*/
public final class LanguageOperations {
private LanguageOperations() {}
/**
* Use a matcher to find the styleclass of the next match