Do not use Optional during lookup 40/113740/2
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 27 Sep 2024 09:48:27 +0000 (11:48 +0200)
committerRobert Varga <nite@hq.sk>
Fri, 27 Sep 2024 12:39:46 +0000 (12:39 +0000)
commitd0a559e57ee51e3adbf035bac11467a65397b470
treea724d4ac9e9b71b8a060fc2d9355d897f645f9da
parent8379ae58b58606ec3ee0f99b2b56a0c2801b50dc
Do not use Optional during lookup

We are using Optional only to remap it internally. Rename findByKey() to
lookupEntry() and return a nullable instead.

While we are here, also make sure we reject null keys consistently.

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