Make lcp hash computation method public 31/97831/9
authorGilles Thouenon <gilles.thouenon@orange.com>
Wed, 6 Oct 2021 15:50:31 +0000 (17:50 +0200)
committerGilles Thouenon <gilles.thouenon@orange.com>
Tue, 16 Nov 2021 17:36:19 +0000 (18:36 +0100)
To make it available by other modules, especially at the renderer level
if we want to compute the hash for sapi/dapi at the service
configuration step.

JIRA: TRNSPRTPCE-537
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: Ia1b32ce5725bbe21e76af08fd3a8247d7f9abb8a

common/src/main/java/org/opendaylight/transportpce/common/mapping/PortMappingUtils.java

index 2951e2c81337ce89fd71f51197e308c4ade204ed..de45683bd67b3ff17c7819a28f547aa92a364f9e 100644 (file)
@@ -111,7 +111,7 @@ public final class PortMappingUtils {
      * @param stringdata the String to be hashed
      * @return the hash string
      */
-    protected static String fnv1size64(String stringdata) {
+    public static String fnv1size64(String stringdata) {
         BigInteger hash = FNV_INIT;
         byte[] data = stringdata.getBytes(StandardCharsets.UTF_8);