From 9776b7ded388d83e8ed6ddcd77b2102e85db02fc Mon Sep 17 00:00:00 2001 From: Gilles Thouenon Date: Wed, 6 Oct 2021 17:50:31 +0200 Subject: [PATCH] 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 --- .../transportpce/common/mapping/PortMappingUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.36.6