refactor: static labels

This commit is contained in:
filippo-ferrari 2024-05-24 00:20:37 +02:00
parent 59e9368649
commit fb2d026141
2 changed files with 4 additions and 4 deletions

View file

@ -32,8 +32,8 @@ import java.util.Optional;
@Uses(Icon.class)
public class CategoriesView extends Div implements BeforeEnterObserver {
private final String CATEGORY_ID = "categoryID";
private final String CATEGORY_EDIT_ROUTE_TEMPLATE = "categories/%s/edit";
private static final String CATEGORY_ID = "categoryID";
private static final String CATEGORY_EDIT_ROUTE_TEMPLATE = "categories/%s/edit";
private final Grid<Category> grid = new Grid<>(Category.class, false);

View file

@ -41,8 +41,8 @@ import java.util.Optional;
@Uses(Icon.class)
public class ExpensesView extends Div implements BeforeEnterObserver {
private final String EXPENSE_ID = "expenseID";
private final String EXPENSE_EDIT_ROUTE_TEMPLATE = "/%s/edit";
private static final String EXPENSE_ID = "expenseID";
private static final String EXPENSE_EDIT_ROUTE_TEMPLATE = "/%s/edit";
private final Grid<Expense> grid = new Grid<>(Expense.class, false);