Skip to content

Commit

Permalink
redundant types off
Browse files Browse the repository at this point in the history
  • Loading branch information
h1alexbel committed Jul 10, 2023
1 parent c8f5128 commit d6fd141
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions src/main/java/io/github/eocqrs/kafka/yaml/YamlMapParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,9 @@
/**
* This class converts a YAML source from
* kebab case keys into kafka specific keys Map.
*
* @param <K> The key type.
* @param <X> The value type.
*/
@RequiredArgsConstructor
public class YamlMapParams<K, X> implements Scalar<Map<String, Object>> {
public final class YamlMapParams implements Scalar<Map<String, Object>> {

/**
* The config value.
Expand Down Expand Up @@ -78,7 +75,7 @@ public YamlMapParams(final InputStream stream) {
}

@Override
public final Map<String, Object> value() {
public Map<String, Object> value() {
final Map<String, Object> accum = new HashMap<>(0);
this.value
.forEach(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ final class YamlMapParamsTest {

@BeforeEach
void setParams() throws Exception {
this.params = new YamlMapParams<>("producer.yaml").value();
this.params = new YamlMapParams("producer.yaml").value();
}

@Test
Expand Down

0 comments on commit d6fd141

Please sign in to comment.