Skip to content

Commit

Permalink
W-17225272: Fix metadata key id warning (#14048)
Browse files Browse the repository at this point in the history
* Fix metadata key id warning
  • Loading branch information
d4nielyan9 authored Dec 5, 2024
1 parent 064fcfe commit 7be99a6
Showing 1 changed file with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,16 @@ private static Optional<MetadataKeyModelParser> getKeyIdResolverModelParser(Outp
}
}

if (keyIdResolverModelParser.isPresent()
&& outputResolverModelParser == null
&& attributesResolverModelParser == null
&& inputResolverModelParsers.isEmpty()) {
// TODO W-14195099 - change this once we have `ProblemsReporter` available
LOGGER
.warn("A Keys Resolver is being defined without defining an Output Resolver, Input Resolver nor Attributes Resolver for element {} of extension {}",
elementName, extensionElement.getName());
}

return keyIdResolverModelParser;
}

Expand All @@ -240,9 +250,6 @@ private static String getCategoryName(OutputResolverModelParser outputResolverMo
return inputResolverModelParser.getInputResolver().getCategoryName();
}

// TODO W-14195099 - change this once we have `ProblemsReporter` available
LOGGER.warn("A Keys Resolver is being defined without defining an Output Resolver, Input Resolver nor Attributes Resolver");

return null;
}
}

0 comments on commit 7be99a6

Please sign in to comment.