Skip to content

Commit

Permalink
fix: ???
Browse files Browse the repository at this point in the history
  • Loading branch information
MiniDigger committed Nov 1, 2023
1 parent b1b93b1 commit f5d268c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ public Instrumentation instrumentation() {
// find return type
if (parameters.getField().getType() instanceof final GraphQLScalarType scalarType) {
if (scalarType.getName().equals("Int")) {
return (DataFetcher<Integer>) _ -> 0;
return (DataFetcher<Integer>) dum -> 0;
}
}
return (DataFetcher<Object>) _ -> EMPTY;
return (DataFetcher<Object>) dum -> EMPTY;
}
return Instrumentation.super.instrumentDataFetcher(dataFetcher, parameters, state);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ private void merge(final List<Map<String, String>> input, final Map<String, Obje
if (key.equals(commonKey + "_" + pk)) {
pkValue = row.get(key);
System.out.println(logPrefix + "primary key: " + pkValue);
newResult = current.computeIfAbsent(pkValue, _ -> new HashMap<>());
newResult = current.computeIfAbsent(pkValue, dum -> new HashMap<>());
newResult.put(pk, row.get(key));
} else {
final String shortenedKey = key.replaceFirst(commonKey + "_", "");
Expand All @@ -94,7 +94,7 @@ private void merge(final List<Map<String, String>> input, final Map<String, Obje
result.put(commonKey, others);
} else {
System.out.println(logPrefix + "others: " + others);
newInputs.computeIfAbsent(pkValue, _ -> new ArrayList<>()).add(others);
newInputs.computeIfAbsent(pkValue, dum -> new ArrayList<>()).add(others);
}
}

Expand Down

0 comments on commit f5d268c

Please sign in to comment.