StorageEntry should not be a Map.Entry 44/113744/4
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 27 Sep 2024 11:02:10 +0000 (13:02 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 27 Sep 2024 14:49:57 +0000 (16:49 +0200)
commit8cb6cc3edf29e03f6584630b26b73d2e93323eb4
tree6eae0c0f20e9743fbb87dc220d879b042a86d455
parent589a900a456fbc56fec0c883946094168ffd3037
StorageEntry should not be a Map.Entry

StorageEntry is internal storage and as such it does not follow the
Map.Entry contract -- most notably it has a different hashCode().

Stop claiming we are implementing Map.Entry and instead use Map.entry()
to construct the one to give out to users.

Change-Id: I6ef9900f32d65d129edbbc7aa84e89177ca853e3
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
keystore/plaintext-localfile/src/main/java/org/opendaylight/netconf/keystore/plaintext/localfile/PlaintextLocalFileStorage.java
keystore/plaintext-localfile/src/main/java/org/opendaylight/netconf/keystore/plaintext/localfile/StorageEntry.java
keystore/plaintext-localfile/src/test/java/org/opendaylight/netconf/keystore/plaintext/localfile/TestUtils.java