cyclonedx-core-java
cyclonedx-core-java copied to clipboard
ToolInformation - Equals, HashCode, and multi-tool parsing fixes w/tests
- The new ToolInformation class did not have equals & hashCode methods, which prevented equality checks during downstream unit testing
- The custom deserializer for ToolInformation did not correctly handle multiple components & services, in XML format due to the way jackson nests the nodes
Just added a unit test for serialization along with fixes to that too. FWIW, the previous code was semi-symmetrical across serialization & deserialization, it just also didn't work or generate/parse the expected XML. My sympathy to whoever had to understand the jackson internals enough to do this, I find them sometime frustratingly complex and I'm an expert on this kind of stuff.
Will look into the failing workflow next week.