From 01eb4a682498b56a244374a67e1ed9b30ae8aa7e Mon Sep 17 00:00:00 2001 From: guulp <110553417+guulp@users.noreply.github.com> Date: Fri, 22 Dec 2023 11:20:51 -0700 Subject: [PATCH] Update FlutterFinder.java --- .../java/io/github/ashwith/flutter/FlutterFinder.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/io/github/ashwith/flutter/FlutterFinder.java b/src/main/java/io/github/ashwith/flutter/FlutterFinder.java index 5bf4d54..6feb6d8 100644 --- a/src/main/java/io/github/ashwith/flutter/FlutterFinder.java +++ b/src/main/java/io/github/ashwith/flutter/FlutterFinder.java @@ -85,8 +85,8 @@ public FlutterElement byText(String input) { public FlutterElement byAncestor(FlutterElement of, FlutterElement matching, boolean matchRoot, boolean firstMatchOnly) { Map matchIdentifier = new HashMap<>(ImmutableMap.of( FINDER_TYPE, "Ancestor", - "matchRoot", Boolean.toString(matchRoot), - "firstMatchOnly", Boolean.toString(firstMatchOnly) + "matchRoot", "true", + "firstMatchOnly", "false" )); matchIdentifier.put("of", of.getRawMap()); matchIdentifier.put("matching", matching.getRawMap()); @@ -100,8 +100,8 @@ public FlutterElement byAncestor(FlutterElement of, FlutterElement matching, boo public FlutterElement byDescendant(FlutterElement of, FlutterElement matching, boolean matchRoot, boolean firstMatchOnly) { Map matchIdentifier = new HashMap<>(ImmutableMap.of( FINDER_TYPE, "Descendant", - "matchRoot", Boolean.toString(matchRoot), - "firstMatchOnly", Boolean.toString(firstMatchOnly) + "matchRoot", "true", + "firstMatchOnly", "false" )); matchIdentifier.put("of", of.getRawMap()); matchIdentifier.put("matching", matching.getRawMap());