AMashenkov commented on code in PR #6213:
URL: https://github.com/apache/ignite-3/pull/6213#discussion_r2194685517
##########
modules/runner/src/test/java/org/apache/ignite/internal/configuration/compatibility/framework/ConfigurationTreeScanner.java:
##########
@@ -145,12 +144,38 @@ private static ConfigNode createNodeForField(ConfigNode
parent, Field field) {
List<ConfigAnnotation> annotations =
collectAdditionalAnnotations(field);
EnumSet<ConfigNode.Flags> flags = extractFlags(field);
+ Set<String> legacyNames = extractLegacy(field);
+ String publicProperty = extractPublicPropertyName(field);
Map<String, String> attributes = new LinkedHashMap<>();
- attributes.put(Attributes.NAME, field.getName());
+ attributes.put(Attributes.NAME, publicProperty.isEmpty() ?
field.getName() : publicProperty);
Review Comment:
Let's resolve value inside `extractPublicPropertyName(Field field)`
--
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]