From e31da4f1523e0e5bfbc9ef1ae0378b90ef530400 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Mon, 23 Mar 2020 06:24:23 +0100 Subject: Make various fields final. Change-Id: I115ca235d66f70d1429c28c2fe49af3231f70734 --- .../java/eu/mulk/mulkcms2/benki/bookmarks/BookmarkResource.java | 8 ++++---- .../java/eu/mulk/mulkcms2/benki/lazychat/LazychatResource.java | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src/main/java') 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 @@ import org.jsoup.Jsoup; @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 @@ import org.jboss.logging.Logger; @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; -- cgit v1.2.3