Skip to content

Commit

Permalink
#137 - Improve warning logged when @singleton generated with no defau…
Browse files Browse the repository at this point in the history
…lt module
  • Loading branch information
rbygrave committed Jul 26, 2021
1 parent 447ed8d commit 6d45229
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,10 @@ void writeModule() {
if (emptyModule) {
// typically nothing in the default scope, only custom scopes
if (meta.size() > 0) {
context.logWarn("Empty module but meta is not empty? " + meta);
String msg = meta + " is being ignored by avaje-inject as there is no 'default' module. This is expected when " +
meta + " is a @Singleton being generated by an annotation processor but there is no 'default' module " +
"(only custom modules are being used).";
context.logWarn(msg);
}
return;
}
Expand Down

0 comments on commit 6d45229

Please sign in to comment.