File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
inject/src/main/java/io/avaje/inject Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff 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 () {
You can’t perform that action at this time.
0 commit comments