Make various fields final.
Change-Id: I115ca235d66f70d1429c28c2fe49af3231f70734
diff --git a/src/main/java/eu/mulk/mulkcms2/benki/bookmarks/BookmarkResource.java b/src/main/java/eu/mulk/mulkcms2/benki/bookmarks/BookmarkResource.java
index d026a1a..fcea278 100644
--- a/src/main/java/eu/mulk/mulkcms2/benki/bookmarks/BookmarkResource.java
+++ b/src/main/java/eu/mulk/mulkcms2/benki/bookmarks/BookmarkResource.java
@@ -63,14 +63,14 @@
@Path("/bookmarks")
public class BookmarkResource {
- private static Logger log = Logger.getLogger(BookmarkResource.class);
+ private static final Logger log = Logger.getLogger(BookmarkResource.class);
- private static DateTimeFormatter htmlDateFormatter = DateTimeFormatter.ISO_OFFSET_DATE_TIME;
+ private static final DateTimeFormatter htmlDateFormatter = DateTimeFormatter.ISO_OFFSET_DATE_TIME;
- private static DateTimeFormatter humanDateFormatter =
+ private static final DateTimeFormatter humanDateFormatter =
DateTimeFormatter.ofLocalizedDateTime(FormatStyle.LONG, FormatStyle.SHORT);
- private static JsonProvider jsonProvider = JsonProvider.provider();
+ private static final JsonProvider jsonProvider = JsonProvider.provider();
@ConfigProperty(name = "mulkcms.bookmarks.default-max-results")
int defaultMaxResults;
diff --git a/src/main/java/eu/mulk/mulkcms2/benki/lazychat/LazychatResource.java b/src/main/java/eu/mulk/mulkcms2/benki/lazychat/LazychatResource.java
index cb89e71..74b0b2a 100644
--- a/src/main/java/eu/mulk/mulkcms2/benki/lazychat/LazychatResource.java
+++ b/src/main/java/eu/mulk/mulkcms2/benki/lazychat/LazychatResource.java
@@ -28,14 +28,14 @@
@Path("/lazychat")
public class LazychatResource {
- private static Logger log = Logger.getLogger(LazychatResource.class);
+ private static final Logger log = Logger.getLogger(LazychatResource.class);
- private static DateTimeFormatter htmlDateFormatter = DateTimeFormatter.ISO_OFFSET_DATE_TIME;
+ private static final DateTimeFormatter htmlDateFormatter = DateTimeFormatter.ISO_OFFSET_DATE_TIME;
- private static DateTimeFormatter humanDateFormatter =
+ private static final DateTimeFormatter humanDateFormatter =
DateTimeFormatter.ofLocalizedDateTime(FormatStyle.LONG, FormatStyle.SHORT);
- private static JsonProvider jsonProvider = JsonProvider.provider();
+ private static final JsonProvider jsonProvider = JsonProvider.provider();
@ConfigProperty(name = "mulkcms.lazychat.default-max-results")
int defaultMaxResults;