]> source.dussan.org Git - jgit.git/commitdiff
Make Logger instances final 96/158496/1
authorDavid Pursehouse <david.pursehouse@gmail.com>
Thu, 27 Feb 2020 11:32:29 +0000 (20:32 +0900)
committerDavid Pursehouse <david.pursehouse@gmail.com>
Thu, 27 Feb 2020 11:32:29 +0000 (20:32 +0900)
Change-Id: Ibb997952917e47bc31a8cbe3863623bc959a8100
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/RepeatRule.java
org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/LfsProtocolServlet.java
org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/fs/ObjectDownloadListener.java
org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/fs/ObjectUploadListener.java
org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheCheckout.java
org.eclipse.jgit/src/org/eclipse/jgit/util/sha1/SHA1.java

index 8636f2a0aa3ab94be0135868cf77f3485450b1ba..cc1d8d3494443bf2213fa12bd9a09f891cad7836 100644 (file)
@@ -78,7 +78,7 @@ import org.junit.runners.model.Statement;
  */
 public class RepeatRule implements TestRule {
 
-       private static Logger LOG = Logger
+       private static final Logger LOG = Logger
                        .getLogger(RepeatRule.class.getName());
 
        /**
index c7f55dd3c1daa49da2ac19efae22f0b5207d1d72..e29783e921f984ee3bfc667db66a9eab6a69d383 100644 (file)
@@ -93,7 +93,7 @@ import org.slf4j.LoggerFactory;
  * @since 4.3
  */
 public abstract class LfsProtocolServlet extends HttpServlet {
-       private static Logger LOG = LoggerFactory
+       private static final Logger LOG = LoggerFactory
                        .getLogger(LfsProtocolServlet.class);
 
        private static final long serialVersionUID = 1L;
index 06a772695559cf36fd64fe28ed710f81a3d994fd..e65e60306d6bf77c58263ddc37b707f82c13234f 100644 (file)
@@ -67,7 +67,7 @@ import org.eclipse.jgit.util.HttpSupport;
  */
 public class ObjectDownloadListener implements WriteListener {
 
-       private static Logger LOG = Logger
+       private static final Logger LOG = Logger
                        .getLogger(ObjectDownloadListener.class.getName());
 
        private final AsyncContext context;
index 3bb2899b9c8f520d7c70876f1e5956a4f80d6eac..332e39f9d5b8bd135559b319f2557b4968a7f3f7 100644 (file)
@@ -71,7 +71,7 @@ import org.eclipse.jgit.lfs.lib.Constants;
  */
 public class ObjectUploadListener implements ReadListener {
 
-       private static Logger LOG = Logger
+       private static final Logger LOG = Logger
                        .getLogger(ObjectUploadListener.class.getName());
 
        private final AsyncContext context;
index bbaed3766e6182ef584a193c70f67642433c982f..3502d7a43a90b4da03a51bd5378bee061f0bb309 100644 (file)
@@ -106,7 +106,8 @@ import org.slf4j.LoggerFactory;
  * This class handles checking out one or two trees merging with the index.
  */
 public class DirCacheCheckout {
-       private static Logger LOG = LoggerFactory.getLogger(DirCacheCheckout.class);
+       private static final Logger LOG = LoggerFactory
+                       .getLogger(DirCacheCheckout.class);
 
        private static final int MAX_EXCEPTION_TEXT_SIZE = 10 * 1024;
 
index 1ad6602fce58798a5f8e8ee8b474dc33a8141197..e6971ee2051d6a5599f0941364fab63fa89b2bc2 100644 (file)
@@ -78,7 +78,7 @@ import org.slf4j.LoggerFactory;
  * @since 4.7
  */
 public class SHA1 {
-       private static Logger LOG = LoggerFactory.getLogger(SHA1.class);
+       private static final Logger LOG = LoggerFactory.getLogger(SHA1.class);
        private static final boolean DETECT_COLLISIONS;
 
        static {