瀏覽代碼

LabelTypeHelper: Fix a debug message

This fixes a warning from LGTM:

    Variable includedPaths may be null here as suggested
    by this null guard.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Stefan Weil 6 年之前
父節點
當前提交
fc915c537d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/org/codelibs/fess/helper/LabelTypeHelper.java

+ 1 - 1
src/main/java/org/codelibs/fess/helper/LabelTypeHelper.java

@@ -263,7 +263,7 @@ public class LabelTypeHelper {
             } else {
             } else {
                 final boolean match = !excludedPaths.matcher(path).matches();
                 final boolean match = !excludedPaths.matcher(path).matches();
                 if (!match && logger.isDebugEnabled()) {
                 if (!match && logger.isDebugEnabled()) {
-                    logger.debug("Path " + path + " matched against the excludes paths expression " + includedPaths.toString());
+                    logger.debug("Path " + path + " matched against the excludes paths expression " + excludedPaths.toString());
                 }
                 }
                 return match;
                 return match;
             }
             }