Restructure LengthGenerator.createExpressions() 99/83699/2
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 15 Aug 2019 11:36:49 +0000 (13:36 +0200)
committerRobert Varga <nite@hq.sk>
Fri, 16 Aug 2019 13:55:59 +0000 (13:55 +0000)
commita8c8c834f76d0f2cca4249513b03095f389618bc
tree626637a72aee7c2c646d2a8a7c7a9a82b2431d3d
parente53b093fd60311d1ee4f5013aac1e8b69162553d
Restructure LengthGenerator.createExpressions()

SpotBugs is warning about INT_VACUOUS_COMPARISON at the head
of the 'min <= Integer.MAX_VALUE' comparison. This restructures
the logic to eliminate this check.

Change-Id: Ie465bb16443d9912a12a8b2f712851a24d339d78
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-java-api-generator/src/main/java/org/opendaylight/mdsal/binding/java/api/generator/LengthGenerator.java