Skip to content

Commit

Permalink
Remove redundant type parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
sleberknight committed Dec 24, 2024
1 parent bdea8c1 commit 393fad5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/java/org/kiwiproject/util/YamlTestHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static <T> T loadFromYamlWithSnakeYaml(String filename, Class<T> clazz) {
* <a href="https://github.com/FasterXML/jackson-dataformats-text">Jackson</a>.
*/
public static <T> T loadFromYamlWithDropwizard(String filename, Class<T> clazz) {
var factory = new YamlConfigurationFactory<T>(clazz, VALIDATOR, OBJECT_MAPPER, "dw");
var factory = new YamlConfigurationFactory<>(clazz, VALIDATOR, OBJECT_MAPPER, "dw");
try {
return factory.build(new ResourceConfigurationSourceProvider(), filename);
} catch (Exception e) {
Expand Down

0 comments on commit 393fad5

Please sign in to comment.