(Multi)NamingContext: increment after computing max 31/9831/3
authorMarek Gradzki <[email protected]>
Wed, 13 Dec 2017 16:15:53 +0000 (17:15 +0100)
committerMarek Gradzki <[email protected]>
Wed, 13 Dec 2017 16:45:04 +0000 (16:45 +0000)
commit4840c9fc6ab956d6210ac33d8e9c5b1abbc4172e
treeed12e09ac706e3c172a3a948a1528e173718d153
parent938e017b9a471c078a3bbc2213b4638315b2f8df
(Multi)NamingContext: increment after computing max

Instead of incrementing all elements of stream
and applying max, first compute max and then increment.

Change-Id: I4e45ffa74d9b8685abd7bafaddc77d1d9850abdb
Signed-off-by: Marek Gradzki <[email protected]>
vpp-common/vpp-translate-utils/src/main/java/io/fd/hc2vpp/common/translate/util/MultiNamingContext.java
vpp-common/vpp-translate-utils/src/main/java/io/fd/hc2vpp/common/translate/util/NamingContext.java
vpp-common/vpp-translate-utils/src/test/java/io/fd/hc2vpp/common/translate/util/NamingContextTest.java