]> source.dussan.org Git - pf4j.git/commitdiff
Fix #508
authorDecebal Suiu <decebal.suiu@gmail.com>
Wed, 26 Oct 2022 21:34:59 +0000 (00:34 +0300)
committerDecebal Suiu <decebal.suiu@gmail.com>
Wed, 26 Oct 2022 21:34:59 +0000 (00:34 +0300)
pf4j/src/main/java/org/pf4j/processor/ExtensionAnnotationProcessor.java

index a5f82b0020aa09fc85345b832db53e8f88f6ea7a..66293f8c084b513827089c3c8df3bfb9bdb43427 100644 (file)
@@ -131,7 +131,9 @@ public class ExtensionAnnotationProcessor extends AbstractProcessor {
         }
 
         // write extensions
-        storage.write(extensions);
+        if (extensions.size() > 0) {
+            storage.write(extensions);
+        }
 
         return false;
     }