diff --git a/src/main/java/org/jabref/gui/customentrytypes/CustomEntryTypeDialogViewModel.java b/src/main/java/org/jabref/gui/customentrytypes/CustomEntryTypeDialogViewModel.java index cc73ffe2040..8fc0f92087a 100644 --- a/src/main/java/org/jabref/gui/customentrytypes/CustomEntryTypeDialogViewModel.java +++ b/src/main/java/org/jabref/gui/customentrytypes/CustomEntryTypeDialogViewModel.java @@ -50,21 +50,21 @@ public Field fromString(String string) { } }; - private ListProperty entryTypes; - private ListProperty fields; - private ObjectProperty selectedEntryTypes = new SimpleObjectProperty<>(); - private ListProperty fieldsForType; - private ObjectProperty selectedFieldToAdd = new SimpleObjectProperty<>(); - private StringProperty entryTypeToAdd = new SimpleStringProperty(""); - private ObservableList allEntryTypes; - private ObservableList allFieldsForType = FXCollections.observableArrayList(extractor -> new Observable[] {extractor.fieldName(), extractor.fieldType()}); - private ObjectProperty newFieldToAdd = new SimpleObjectProperty<>(); - private BibDatabaseMode mode; - private Map> typesWithFields = new HashMap<>(); - private List typesToRemove = new ArrayList<>(); - - private PreferencesService preferencesService; - private BibEntryTypesManager entryTypesManager; + private final ListProperty entryTypes; + private final ListProperty fields; + private final ObjectProperty selectedEntryTypes = new SimpleObjectProperty<>(); + private final ListProperty fieldsForType; + private final ObjectProperty selectedFieldToAdd = new SimpleObjectProperty<>(); + private final StringProperty entryTypeToAdd = new SimpleStringProperty(""); + private final ObservableList allEntryTypes; + private final ObservableList allFieldsForType = FXCollections.observableArrayList(extractor -> new Observable[] {extractor.fieldName(), extractor.fieldType()}); + private final ObjectProperty newFieldToAdd = new SimpleObjectProperty<>(); + private final BibDatabaseMode mode; + private final Map> typesWithFields = new HashMap<>(); + private final List typesToRemove = new ArrayList<>(); + + private final PreferencesService preferencesService; + private final BibEntryTypesManager entryTypesManager; public CustomEntryTypeDialogViewModel(BibDatabaseMode mode, PreferencesService preferencesService, BibEntryTypesManager entryTypesManager) { this.mode = mode;