From: Gilles Thouenon Date: Wed, 6 Oct 2021 15:50:31 +0000 (+0200) Subject: Make lcp hash computation method public X-Git-Tag: 5.0.0~183 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=9776b7ded388d83e8ed6ddcd77b2102e85db02fc;p=transportpce.git Make lcp hash computation method public 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 Change-Id: Ia1b32ce5725bbe21e76af08fd3a8247d7f9abb8a --- diff --git a/common/src/main/java/org/opendaylight/transportpce/common/mapping/PortMappingUtils.java b/common/src/main/java/org/opendaylight/transportpce/common/mapping/PortMappingUtils.java index 2951e2c81..de45683bd 100644 --- a/common/src/main/java/org/opendaylight/transportpce/common/mapping/PortMappingUtils.java +++ b/common/src/main/java/org/opendaylight/transportpce/common/mapping/PortMappingUtils.java @@ -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);