Skip to content

Commit

Permalink
Bump org.apache.maven.plugins:maven-pmd-plugin from 3.23.0 to 3.24.0 (#…
Browse files Browse the repository at this point in the history
…205)

Bumps [org.apache.maven.plugins:maven-pmd-plugin](https://github.com/apache/maven-pmd-plugin) from 3.23.0 to 3.24.0.
- [Release notes](https://github.com/apache/maven-pmd-plugin/releases)
- [Commits](apache/maven-pmd-plugin@maven-pmd-plugin-3.23.0...maven-pmd-plugin-3.24.0)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-pmd-plugin
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] authored Jul 19, 2024
1 parent 13bea9b commit 89a8f11
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<slf4j.version>2.0.13</slf4j.version>
<maven-checkstyle-plugin.version>3.4.0</maven-checkstyle-plugin.version>
<maven-dependency-plugin.version>3.7.1</maven-dependency-plugin.version>
<maven-pmd-plugin.version>3.23.0</maven-pmd-plugin.version>
<maven-pmd-plugin.version>3.24.0</maven-pmd-plugin.version>
<system-rules.version>1.19.0</system-rules.version>
<openkeepass.version>0.8.2</openkeepass.version>
<vault-java-driver.version>6.2.0</vault-java-driver.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public Configuration getConfiguration(final String env) {
private File getKeepassDatabaseFile(final String fileName) {
final ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
final URL resource = classLoader.getResource(fileName);
File keepassFile;
File keepassFile; // NOPMD
if (null == resource) {
throw new EnvConfigException(String.format("Database %s does not exist!", fileName));
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ void testThrowsExceptionWhenKeepassMasterKeyNotPresent() {
final EnvConfigProperties configProperties = new EnvConfigProperties();
final EnvConfigException exception = Assertions.assertThrows(EnvConfigException.class,
configProperties::getKeepassProperties);
Assertions.assertEquals(String.format("Missing required variable '%s'", EnvConfigUtils.CONFIG_KEEPASS_MASTERKEY_KEY),
Assertions.assertEquals(String.format("Missing required variable '%s'", "env.config.keepass.masterkey"),
exception.getMessage());
}

Expand Down
4 changes: 2 additions & 2 deletions src/test/java/com/github/sitture/envconfig/EnvConfigTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,8 @@ void testExceptionWhenKeepassMasterKeyMissing() {
System.setProperty(EnvConfigUtils.CONFIG_KEEPASS_ENABLED_KEY, "true");
final EnvConfigException exception = Assertions.assertThrows(EnvConfigException.class,
() -> EnvConfig.get(PROPERTY_KEEPASS));
Assertions.assertEquals(String.format("Missing required variable '%s'", EnvConfigUtils.CONFIG_KEEPASS_MASTERKEY_KEY),
exception.getMessage());
Assertions.assertEquals(String.format("Missing required variable '%s'", "env.config.keepass.masterkey"),
exception.getMessage());
}

@Test
Expand Down

0 comments on commit 89a8f11

Please sign in to comment.