Improve BaseYangTypes.javaTypeForYangType() 49/89149/2
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 20 Apr 2020 13:00:30 +0000 (15:00 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 20 Apr 2020 13:10:32 +0000 (15:10 +0200)
commit234a52c3b970b201e90a2d30c3024205e2c15021
tree08f2b3204297299480dc314b0317f7a98c38aac6
parent3ddde5b67d42917a063418252dba769615941bc9
Improve BaseYangTypes.javaTypeForYangType()

This method should not tolerate nulls and it can be implemented
in terms of a simple switch() statement instead of a lookup map.

Change-Id: Icbef37aec6aef2d1a445ce26dcc3b7479b0ec81f
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-generator-util/src/main/java/org/opendaylight/mdsal/binding/model/util/BaseYangTypes.java