diff --git a/pom.xml b/pom.xml index 6ed8bc9..31dce4c 100644 --- a/pom.xml +++ b/pom.xml @@ -1,6 +1,4 @@ - + com.iland.common.pom parent-pom @@ -10,7 +8,7 @@ 4.0.0 net.codacloud footprint - 7.18.20.n-SNAPSHOT + 7.18.19.p-SNAPSHOT jar CODA Footprint diff --git a/src/main/java/com/iland/coda/footprint/CodaClient.java b/src/main/java/com/iland/coda/footprint/CodaClient.java index 8b856fc..ed157d9 100644 --- a/src/main/java/com/iland/coda/footprint/CodaClient.java +++ b/src/main/java/com/iland/coda/footprint/CodaClient.java @@ -1,16 +1,16 @@ /* - * Copyright (c) 2022, iland Internet Solutions, Corp + * Copyright (c) 2013 - 2026, 11:11 Systems Inc. * - * This software is licensed under the Terms and Conditions contained within the - * "LICENSE.txt" file that accompanied this software. Any inquiries concerning - * the scope or enforceability of the license should be addressed to: + * This software is licensed under the Terms and Conditions contained within the + * "LICENSE.txt" file that accompanied this software. Any inquiries concerning + * the scope or enforceability of the license should be addressed to: * - * iland Internet Solutions, Corp - * 1235 North Loop West, Suite 800 - * Houston, TX 77008 - * USA + * 11:11 Systems + * 1235 North Loop West, Suite 800 + * Houston, TX 77008 + * USA * - * http://www.iland.com + * https://1111systems.com/ */ package com.iland.coda.footprint; @@ -55,8 +55,6 @@ /** * {@link CodaClient}. - * - * @author Tag Spilman */ public interface CodaClient { @@ -167,6 +165,10 @@ default Optional getRegistrationForLabel( .min(Comparator.comparing(RegistrationLight::getId)) .orElseThrow())); + if (registrationByLabel.containsKey(label)) { + return Optional.of(label).map(registrationByLabel::get); + } + final int length64 = 64; final String label64 = label.substring(0, Math.min(label.length(), length64));