Use constants for PortMapping log messages Step 4 49/97849/1
authorguillaume.lambert <guillaume.lambert@orange.com>
Fri, 8 Oct 2021 10:04:05 +0000 (12:04 +0200)
committerguillaume.lambert <guillaume.lambert@orange.com>
Fri, 8 Oct 2021 10:07:59 +0000 (12:07 +0200)
commit700eb0475db06f97244c382d598ab04b8d774f53
tree0a6363cc2a60fb605d9315783b035467827b4ba2
parentb1944b5b626c8a85cb186c03edfd133373ee2019
Use constants for PortMapping log messages Step 4

Few PortMapping log messages were redundant and needed to be realigned.
They were fixed previously but this created new string for the words
"create" and "update" and "found".
Sonar complains they are used multiples times.
Since these words are shared among all PortMappingVersion*** classes,
migrating them to constants in the PortMappingUtils class is preferable.

JIRA: TRNSPRTPCE-355 TRNSPRTPCE-356
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I71a5e8eb654256004f11d10e9f3d3273d79bcede
common/src/main/java/org/opendaylight/transportpce/common/mapping/PortMappingUtils.java
common/src/main/java/org/opendaylight/transportpce/common/mapping/PortMappingVersion121.java
common/src/main/java/org/opendaylight/transportpce/common/mapping/PortMappingVersion221.java
common/src/main/java/org/opendaylight/transportpce/common/mapping/PortMappingVersion710.java