fix: checkstyle violations

This commit is contained in:
Natalia Cholewa 2025-12-19 20:16:21 +01:00
commit d802d8627e

View file

@ -42,7 +42,8 @@ public class FoodpalApplicationCtrl implements LocaleAware {
private final LocaleManager localeManager;
private final IngredientListCtrl ingredientListCtrl;
private final RecipeStepListCtrl stepListCtrl;
private final SearchBarCtrl searchBarCtrl;
private SearchBarCtrl searchBarCtrl;
public VBox detailsScreen;
public HBox editableTitleArea;
@ -100,7 +101,6 @@ public class FoodpalApplicationCtrl implements LocaleAware {
LocaleManager localeManager,
IngredientListCtrl ingredientListCtrl,
RecipeStepListCtrl stepListCtrl,
SearchBarCtrl searchBarCtrl,
ConfigService configService
) {
this.server = server;
@ -108,13 +108,17 @@ public class FoodpalApplicationCtrl implements LocaleAware {
this.localeManager = localeManager;
this.ingredientListCtrl = ingredientListCtrl;
this.stepListCtrl = stepListCtrl;
this.searchBarCtrl = searchBarCtrl;
this.configService = configService;
initializeWebSocket();
}
@Inject
void setSearchBarCtrl(SearchBarCtrl searchBarCtrl) {
this.searchBarCtrl = searchBarCtrl;
}
private void initializeSearchBar() {
// Refresh on search bar change
this.searchBarCtrl.setOnSearch(recipes -> {
@ -220,7 +224,6 @@ public class FoodpalApplicationCtrl implements LocaleAware {
});
this.initializeSearchBar();
refresh();
updateFavouriteButton(recipeList.getSelectionModel().getSelectedItem());
}