diff options
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2020-03-23 06:24:23 +0100 |
---|---|---|
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2020-03-23 06:24:23 +0100 |
commit | e31da4f1523e0e5bfbc9ef1ae0378b90ef530400 (patch) | |
tree | 192356fa536a7b71e1bd7b06a7ce34a0f5d90591 /src/main | |
parent | 371164a188b93b24f33cb5badb0362ac2544d33d (diff) |
Make various fields final.
Change-Id: I115ca235d66f70d1429c28c2fe49af3231f70734
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/eu/mulk/mulkcms2/benki/bookmarks/BookmarkResource.java | 8 | ||||
-rw-r--r-- | src/main/java/eu/mulk/mulkcms2/benki/lazychat/LazychatResource.java | 8 |
2 files changed, 8 insertions, 8 deletions
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; |