Skip to content

Commit

Permalink
code changes to remove bad file extension check
Browse files Browse the repository at this point in the history
  • Loading branch information
Al Niessner authored and Al Niessner committed Jan 14, 2025
1 parent 89bf77b commit 864c3dd
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,6 @@ public synchronized Collection<String> getUnreferencedTargets() {
return unreferencedTargets;
}

@Override
public synchronized Collection<Identifier> getReferencedIdentifiers() {
return referencedIdentifiers;
}

@Override
public synchronized Collection<Identifier> getUnreferencedIdentifiers() {
List<Identifier> unreferencedIdentifiers = new ArrayList<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ public interface TargetRegistrar {
*
* @return a collection of referenced identifiers.
*/
Collection<Identifier> getReferencedIdentifiers();

/**
* Gets the location of where the given identifier is referenced.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,7 @@ public void collectionReferentialIntegrityRule() {
LOG.debug("collectionReferentialIntegrityRule:getTarget() {}, num collections {}",
getTarget(), collections.keySet().size());

// Check for collection(_.*)?\.(xml or lblx) file.
for (Map.Entry<String, ValidationTarget> collection : collections.entrySet()) {
if (!collection.getValue().getLocation().endsWith(getContext().getLabelExtension())) {
continue;
}

Target collectionTarget = new Target(collection.getValue().getUrl(), false);
try {
XMLExtractor extractor = new XMLExtractor(collectionTarget.getUrl());
Expand Down

0 comments on commit 864c3dd

Please sign in to comment.