From fb2d026141901783d705f67122a0c3055e838fda Mon Sep 17 00:00:00 2001 From: filippo-ferrari Date: Fri, 24 May 2024 00:20:37 +0200 Subject: [PATCH] refactor: static labels --- .../com/application/munera/views/expenses/CategoriesView.java | 4 ++-- .../com/application/munera/views/expenses/ExpensesView.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/application/munera/views/expenses/CategoriesView.java b/src/main/java/com/application/munera/views/expenses/CategoriesView.java index 3f02f53..17dfd1c 100644 --- a/src/main/java/com/application/munera/views/expenses/CategoriesView.java +++ b/src/main/java/com/application/munera/views/expenses/CategoriesView.java @@ -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 grid = new Grid<>(Category.class, false); diff --git a/src/main/java/com/application/munera/views/expenses/ExpensesView.java b/src/main/java/com/application/munera/views/expenses/ExpensesView.java index e140c43..17634f4 100644 --- a/src/main/java/com/application/munera/views/expenses/ExpensesView.java +++ b/src/main/java/com/application/munera/views/expenses/ExpensesView.java @@ -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 grid = new Grid<>(Expense.class, false);