thx for the directions Nate.
I tried overriding the method, '
readValue' (
https://github.com/EsotericSoftware/yamlbeans/blob/master/src/com/esotericsoftware/yamlbeans/YamlReader.java#L112) by extending YamlReader class in my project and use that class instead of YamlReader. I was thinking of writing a new readValueInternalNoDuplicate with the changed logic that you pointed out earlier and call it instead in the '
readValue' method towards the end. Essentially keeping all '
readValue' method as is and just changing the last line to call this new method readValueInternalNoDuplicate. However, I am really stuck because the '
readValue' method uses private and final vars like parser, config, and anchors etc. So, I will kind of have to redeclare them in my class and duplicate what YamlReader already has.
Do you think that we should rather change the access modifiers on these vars because YanlReader says that one can override 'readValue' ?
Or better, if I make this change to the YamlBeans library itself and you can release a new version of the same and then I use that version instead.
Let me know what you think. I really want to do this.