Skip to content

Commit 1bfb3b5

Browse files
committed
Misc. cleanup.
1 parent e7812c9 commit 1bfb3b5

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

src/main/java/dev/rilling/musicbrainzenricher/enrichment/Enricher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public interface Enricher extends DataTypeAware {
1414

1515
/**
1616
* Checks if a relation of the data type is supported for enrichment.
17-
* Often enrichers check if e.g. an URL stored in the relation is supported.
17+
* Often enrichers check if e.g., an URL stored in the relation is supported.
1818
*
1919
* @param relation Relation to check.
2020
* @return if the relation is supported.

src/main/java/dev/rilling/musicbrainzenricher/util/CanonicalStringMatcher.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@ public CanonicalStringMatcher(Set<String> canonicalValues,
4646
.map(Pattern::quote)
4747
.collect(Collectors.joining("|")));
4848

49-
List<String> list = canonicalValues.stream().map(this::removeIgnoredSubstrings).toList();
50-
51-
5249
// Using a tree map with the collator and the adjusted canonical value as key makes for fast lookups.
5350
canonicalMap = new TreeMap<>(collator);
5451
for (String canonicalValue : canonicalValues) {

src/main/java/dev/rilling/musicbrainzenricher/util/MergeUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ private MergeUtils() {
1717
*
1818
* @param sets Collection of sets to analyze the contents of.
1919
* @param minUsagePercentage Percentage from 0 to 1.
20-
* If e.g. 0.9 is used, all values with a count of at least 90%
20+
* If e.g., 0.9 is used, all values with a count of at least 90%
2121
* of the item of the highest count are included.
2222
* @param <T> Set item value.
2323
* @return Set containing items of the original sets with a high count.

0 commit comments

Comments
 (0)