Clean up ExceptionMapper 25/103125/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 7 Nov 2022 13:32:08 +0000 (14:32 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 7 Nov 2022 13:32:08 +0000 (14:32 +0100)
commit9464c986283cc6091b88297b101ff0d46394b50a
tree2c7032a753840853ecbc86d8a7e48ee41fbfc05c
parent500133eec8e91678f1fc3265ae7678fcd5fccb94
Clean up ExceptionMapper

Use Class.isInstance() and Class.cast() instead of unchecked casts. Also
restructure ExecutionException mapping.

Change-Id: I21b61cd99a715746c865d12b378b1874b925519b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
common/util/src/main/java/org/opendaylight/yangtools/util/concurrent/ExceptionMapper.java