Skip to content

Commit

Permalink
Reduce constructor scope of ClasspathConfigurationProvider and URLCon…
Browse files Browse the repository at this point in the history
…figurationProvider
  • Loading branch information
derTobsch committed Jan 6, 2025
1 parent bf34c98 commit 1697466
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ClasspathConfigurationProvider implements ConfigurationProvider {
private static final String DEFAULT_CONFIGURATION_FILE_NAME = "jollyday.properties";
private URL configurationFile;

public ClasspathConfigurationProvider() {
ClasspathConfigurationProvider() {
this.configurationFile = getConfigurationFile(DEFAULT_CONFIGURATION_FILE_NAME);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ class URLConfigurationProvider implements ConfigurationProvider {

private static final Logger LOG = LoggerFactory.getLogger(URLConfigurationProvider.class);

URLConfigurationProvider() {
// ok
}

/**
* Returns the properties by reading from the URLs provided by the system
* property 'config.urls'.
Expand Down

0 comments on commit 1697466

Please sign in to comment.