Skip to content

Commit

Permalink
thin
Browse files Browse the repository at this point in the history
  • Loading branch information
l3r8yJ committed Mar 25, 2023
1 parent 25b5238 commit 85ee272
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/io/github/eocqrs/kafka/xml/XmlMapParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import org.cactoos.Scalar;
import org.cactoos.io.ResourceOf;
import org.cactoos.text.Concatenated;
import org.cactoos.text.FormattedText;

import java.util.Locale;
import java.util.Map;
Expand Down Expand Up @@ -92,9 +93,8 @@ protected XmlMapParams(final String name, final KfCustomer cust) throws Exceptio

@Override
public final Map<String, Object> value() throws Exception {
final String parent = this.customer.toString();
return new XMLDocument(this.configuration.toString())
.nodes(new Concatenated("//", parent, "/*").toString())
.nodes(new FormattedText("//%s/*", this.customer).toString())
.stream()
.map(Object::toString)
.map(XMLDocument::new)
Expand Down

0 comments on commit 85ee272

Please sign in to comment.