Skip to content

Commit d2cc27d

Browse files
authored
Merge pull request #327 from SentryMan/plug
Make Plugin Provides a Default Method.
2 parents 5b81f50 + 38947ad commit d2cc27d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

inject/src/main/java/io/avaje/inject/spi/Plugin.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ public interface Plugin {
1414
/**
1515
* Return the classes that the plugin provides.
1616
*/
17-
Class<?>[] provides();
17+
default Class<?>[] provides() {
18+
return new Class<?>[]{};
19+
}
1820

1921
/**
2022
* Apply the plugin to the scope builder.

0 commit comments

Comments
 (0)