Closed jpastoor closed 9 months ago
Prevents panic as described in issue https://github.com/paketo-buildpacks/libpak/issues/269. After the change https://github.com/paketo-buildpacks/libpak/pull/261/files the Equals method became prone to panics due to the unchecked type assertions. This change makes the Equals method more robust, by not panicking when the deprecationDate is present in the layer metadata in an unexpected format.
Handling various LayerMetadata from without breaking whenever it does not exactly conform to expections.
The committers listed above are authorized under a signed CLA.
Summary
Prevents panic as described in issue https://github.com/paketo-buildpacks/libpak/issues/269. After the change https://github.com/paketo-buildpacks/libpak/pull/261/files the Equals method became prone to panics due to the unchecked type assertions. This change makes the Equals method more robust, by not panicking when the deprecationDate is present in the layer metadata in an unexpected format.
Use Cases
Handling various LayerMetadata from without breaking whenever it does not exactly conform to expections.
Checklist