Use a simple isEmpty() check 78/96278/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 19 May 2021 19:10:44 +0000 (21:10 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 20 May 2021 08:29:15 +0000 (10:29 +0200)
commitff54e7079fb3c60ef3f30daac67d312f2747d1d3
treea914acb935d63a74990f4eb502353aaef42952f0
parentfd7f306caa619d9dec1ed57ecc295d9656233c5c
Use a simple isEmpty() check

Rather than checking size() == 0, use isEmpty(), which is clearer
and potentially fasterUse a simple isEmpty() check

Rather than checking size() == 0, use isEmpty(), which is clearer
and potentially faster.

Change-Id: I0aadff4a55258f2fbb0bd60c26993b08b3b8e7b0
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 3ba1f3fea3d6e54d5dd3fd7ad074217d8b1972bb)
restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/jersey/providers/errors/RestconfDocumentedExceptionMapper.java