Skip to content

Commit

Permalink
fix logging
Browse files Browse the repository at this point in the history
  • Loading branch information
SylvainJuge committed Dec 19, 2024
1 parent 6e46140 commit 101710d
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,16 @@ public static void open(
missingOpens.put(packageName, openToModuleSet);
logger.log(
FINE,
() ->
String.format(
"Exposing package '%s' in module '%s' to module '%s'",
packageName, targetModule, openToModule));
"Exposing package '{0}' in module '{1}' to module '{2}'",
new Object[] {packageName, targetModule, openToModule});
}
}
if (missingOpens.isEmpty()) {
return;
}

if (!instrumentation.isModifiableModule(targetModule)) {
logger.log(WARNING, "Module '{}' can't be modified", targetModule);
logger.log(WARNING, "Module '{0}' can't be modified", targetModule);
return;
}

Expand Down

0 comments on commit 101710d

Please sign in to comment.