Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
<groupId>com.iland.common.pom</groupId>
<artifactId>parent-pom</artifactId>
Expand All @@ -10,7 +8,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>net.codacloud</groupId>
<artifactId>footprint</artifactId>
<version>7.18.20.n-SNAPSHOT</version>
<version>7.18.19.p-SNAPSHOT</version>
<packaging>jar</packaging>

<name>CODA Footprint</name>
Expand Down
24 changes: 13 additions & 11 deletions src/main/java/com/iland/coda/footprint/CodaClient.java
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -55,8 +55,6 @@

/**
* {@link CodaClient}.
*
* @author <a href="mailto:tagspilman@1111systems.com">Tag Spilman</a>
*/
public interface CodaClient {

Expand Down Expand Up @@ -167,6 +165,10 @@ default Optional<RegistrationLight> 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));
Expand Down