Use switch expression for EventFormatterFactory selection 09/103109/1
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 6 Nov 2022 18:45:58 +0000 (19:45 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Sun, 6 Nov 2022 18:45:58 +0000 (19:45 +0100)
commitf9a5f6ec7beb29ad59f2016bdf8782ea59368142
tree6429d018f7447f1a2ae2f3f38248176b96790958
parent30bedf0e68631bea63c64cb996dbcba633626bd3
Use switch expression for EventFormatterFactory selection

Useing a switch expression removes the unhandled case, promoting to a
compile-time error if things do not match up.

Change-Id: I8688e4bc76419194cb0d910105ff0733cd6d118f
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/streams/listeners/ListenerAdapter.java
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/streams/listeners/NotificationListenerAdapter.java