diff options
author | Decebal Suiu <decebal.suiu@gmail.com> | 2022-10-27 00:34:59 +0300 |
---|---|---|
committer | Decebal Suiu <decebal.suiu@gmail.com> | 2022-10-27 00:34:59 +0300 |
commit | 16690d5362d46e1dd86b94622f673f4f40e65300 (patch) | |
tree | 68d9640ab4eb012bf309985c5f3ee87c6062d64d /pf4j | |
parent | c36ab8f1d53286899828e7756bd85228d789239e (diff) | |
download | pf4j-16690d5362d46e1dd86b94622f673f4f40e65300.tar.gz pf4j-16690d5362d46e1dd86b94622f673f4f40e65300.zip |
Fix #508
Diffstat (limited to 'pf4j')
-rw-r--r-- | pf4j/src/main/java/org/pf4j/processor/ExtensionAnnotationProcessor.java | 4 |
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; } |