Skip to content

Commit

Permalink
Polishing.
Browse files Browse the repository at this point in the history
Extract singular/plural form into String.format(…) for easier readability.

See #2967
  • Loading branch information
mp911de committed Nov 9, 2023
1 parent c52520a commit 3c872ae
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ public List<BeanComponentDefinition> registerRepositoriesIn(BeanDefinitionRegist
configurationsByRepositoryName.put(configuration.getRepositoryInterface(), configuration);

BeanDefinitionBuilder definitionBuilder = builder.build(configuration);

extension.postProcess(definitionBuilder, configurationSource);

if (isXml) {
Expand Down Expand Up @@ -208,8 +207,8 @@ public List<BeanComponentDefinition> registerRepositoriesIn(BeanDefinitionRegist
if (logger.isInfoEnabled()) {
logger.info(
LogMessage.format("Finished Spring Data repository scanning in %s ms. Found %s %s repository interface%s." ,
watch.getLastTaskTimeMillis(), configurations.size(),
extension.getModuleName(), configurations.size() == 1 ? "" : "s"));
watch.lastTaskInfo().getTimeMillis(), configurations.size(), extension.getModuleName(),
configurations.size() == 1 ? "interface" : "interfaces"));
}

// TODO: AOT Processing -> guard this one with a flag so it's not always present
Expand Down

0 comments on commit 3c872ae

Please sign in to comment.