pvillard31 commented on code in PR #11392:
URL: https://github.com/apache/nifi/pull/11392#discussion_r3536146768
##########
nifi-extension-bundles/nifi-graph-bundle/nifi-graph-processors/src/test/java/org/apache/nifi/processors/graph/util/InMemoryGraphClient.java:
##########
@@ -86,8 +86,8 @@ public Map<String, String> executeQuery(String query,
Map<String, Object> parame
while (outerResultSet.hasNext()) {
Map.Entry<String, Object> innerResultSet =
(Map.Entry<String, Object>) outerResultSet.next();
// this is for edge case handling where innerResultSet is
also a Map
- if (innerResultSet.getValue() instanceof Map) {
- Iterator resultSet = ((Map)
innerResultSet.getValue()).entrySet().iterator();
+ if (innerResultSet.getValue() instanceof Map map) {
+ Iterator resultSet = map.entrySet().iterator();
Review Comment:
final?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]