Skip to content

Commit 3163b7a

Browse files
committed
Format and add @SuppressWarnings("ConstantValue")
1 parent a6fae5b commit 3163b7a

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

inject/src/main/java/io/avaje/inject/DBeanScopeBuilder.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -221,19 +221,19 @@ private ConfigPropertyPlugin defaultPropertyPlugin() {
221221
return detectAvajeConfig() ? new DConfigProps() : new DSystemProps();
222222
}
223223

224+
@SuppressWarnings("ConstantValue")
224225
private static boolean detectAvajeConfig() {
225226
var modules = ModuleLayer.boot();
226227
return modules
227-
.findModule("io.avaje.inject")
228-
.map(m -> modules.findModule("io.avaje.config").isPresent())
229-
.orElseGet(
230-
() -> {
231-
try {
232-
return Configuration.class != null;
233-
} catch (NoClassDefFoundError e) {
234-
return false;
235-
}
236-
});
228+
.findModule("io.avaje.inject")
229+
.map(m -> modules.findModule("io.avaje.config").isPresent())
230+
.orElseGet(() -> {
231+
try {
232+
return Configuration.class != null;
233+
} catch (NoClassDefFoundError e) {
234+
return false;
235+
}
236+
});
237237
}
238238

239239
private void initProfiles() {

0 commit comments

Comments
 (0)