From f1dcdf8920f96f5dbb8515aeec402e9d3d7562c4 Mon Sep 17 00:00:00 2001 From: GunoH Date: Tue, 11 Feb 2020 10:15:33 +0100 Subject: [PATCH] Check proper list for debug logging (#366) --- pf4j/src/main/java/org/pf4j/AbstractExtensionFinder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pf4j/src/main/java/org/pf4j/AbstractExtensionFinder.java b/pf4j/src/main/java/org/pf4j/AbstractExtensionFinder.java index 3cfbc7e..0862501 100644 --- a/pf4j/src/main/java/org/pf4j/AbstractExtensionFinder.java +++ b/pf4j/src/main/java/org/pf4j/AbstractExtensionFinder.java @@ -63,7 +63,7 @@ public abstract class AbstractExtensionFinder implements ExtensionFinder, Plugin result.addAll(pluginExtensions); } - if (entries.isEmpty()) { + if (result.isEmpty()) { log.debug("No extensions found for extension point '{}'", type.getName()); } else { log.debug("Found {} extensions for extension point '{}'", result.size(), type.getName()); -- 2.39.5