From b6835afcbd43195b363c9e578ad151030ce7f9fe Mon Sep 17 00:00:00 2001 From: Jon Bratseth Date: Sun, 14 Oct 2018 15:21:24 +0200 Subject: Minor fixes --- .../src/main/java/com/yahoo/container/logging/LogFileHandler.java | 4 ++-- .../src/main/java/com/yahoo/container/logging/LogFormatter.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'container-accesslogging/src/main') diff --git a/container-accesslogging/src/main/java/com/yahoo/container/logging/LogFileHandler.java b/container-accesslogging/src/main/java/com/yahoo/container/logging/LogFileHandler.java index 8bb072b5a64..1f56523bce6 100644 --- a/container-accesslogging/src/main/java/com/yahoo/container/logging/LogFileHandler.java +++ b/container-accesslogging/src/main/java/com/yahoo/container/logging/LogFileHandler.java @@ -226,7 +226,7 @@ public class LogFileHandler extends StreamHandler { } // Throw InterruptedException upwards rather than relying on isInterrupted to stop the thread as - // isInterrupted() returns false after inerruption in p.waitFor + // isInterrupted() returns false after interruption in p.waitFor private void internalRotateNow() throws InterruptedException { // figure out new file name, then // use super.setOutputStream to switch to a new file @@ -295,7 +295,7 @@ public class LogFileHandler extends StreamHandler { } /** Name files by date - create a symlink with a constant name to the newest file */ - private void createSymlinkToCurrentFile() throws InterruptedException { + private void createSymlinkToCurrentFile() { if (symlinkName == null) return; File f = new File(fileName); File f2 = new File(f.getParent(), symlinkName); diff --git a/container-accesslogging/src/main/java/com/yahoo/container/logging/LogFormatter.java b/container-accesslogging/src/main/java/com/yahoo/container/logging/LogFormatter.java index 0cedfc0f693..adb4583d405 100644 --- a/container-accesslogging/src/main/java/com/yahoo/container/logging/LogFormatter.java +++ b/container-accesslogging/src/main/java/com/yahoo/container/logging/LogFormatter.java @@ -101,7 +101,7 @@ public class LogFormatter extends Formatter { *
  • %% % * */ - public static final String insertDate (String pattern, long time) { + public static String insertDate(String pattern, long time) { DateFormat df = new SimpleDateFormat("yyyy.MM.dd:HH:mm:ss.SSS Z"); df.setTimeZone(TimeZone.getTimeZone("UTC")); Date date = new Date(time); -- cgit v1.2.3