aboutsummaryrefslogtreecommitdiffstats
path: root/pf4j
diff options
context:
space:
mode:
authorDecebal Suiu <decebal.suiu@gmail.com>2022-10-27 00:34:59 +0300
committerDecebal Suiu <decebal.suiu@gmail.com>2022-10-27 00:34:59 +0300
commit16690d5362d46e1dd86b94622f673f4f40e65300 (patch)
tree68d9640ab4eb012bf309985c5f3ee87c6062d64d /pf4j
parentc36ab8f1d53286899828e7756bd85228d789239e (diff)
downloadpf4j-16690d5362d46e1dd86b94622f673f4f40e65300.tar.gz
pf4j-16690d5362d46e1dd86b94622f673f4f40e65300.zip
Fix #508
Diffstat (limited to 'pf4j')
-rw-r--r--pf4j/src/main/java/org/pf4j/processor/ExtensionAnnotationProcessor.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/pf4j/src/main/java/org/pf4j/processor/ExtensionAnnotationProcessor.java b/pf4j/src/main/java/org/pf4j/processor/ExtensionAnnotationProcessor.java
index a5f82b0..66293f8 100644
--- a/pf4j/src/main/java/org/pf4j/processor/ExtensionAnnotationProcessor.java
+++ b/pf4j/src/main/java/org/pf4j/processor/ExtensionAnnotationProcessor.java
@@ -131,7 +131,9 @@ public class ExtensionAnnotationProcessor extends AbstractProcessor {
}
// write extensions
- storage.write(extensions);
+ if (extensions.size() > 0) {
+ storage.write(extensions);
+ }
return false;
}