diff --git a/java/google/registry/model/registry/label/PremiumList.java b/java/google/registry/model/registry/label/PremiumList.java index 720efc2c2..334cf245c 100644 --- a/java/google/registry/model/registry/label/PremiumList.java +++ b/java/google/registry/model/registry/label/PremiumList.java @@ -77,7 +77,7 @@ public final class PremiumList extends BaseDomainLabelListIf the label might be premium, then the premium list entry must be loaded by key and @@ -87,7 +87,7 @@ public final class PremiumList extends BaseDomainLabelList probablePremiumLabels; /** - * Get the bloom filter. + * Get the Bloom filter. * *

Note that this is not a copy, but the mutable object itself, because copying would be * expensive. You probably should not modify the filter unless you know what you're doing. @@ -97,7 +97,7 @@ public final class PremiumList extends BaseDomainLabelListTrying to set it any larger will throw an error, as we know it won't fit into a Datastore * entity. We use 90% of the 1 MB Datastore limit to leave some wriggle room for the other @@ -122,9 +122,9 @@ public final class PremiumList extends BaseDomainLabelListThis is cached for a long duration (essentially indefinitely) because a given * {@link PremiumListRevision} is immutable and cannot ever be changed once created, so its cache @@ -190,7 +190,7 @@ public final class PremiumList extends BaseDomainLabelListA maximum size is set here on the cache because it can potentially grow too big to fit in * memory if there are a large number of distinct premium list entries being queried (both those - * that exist, as well as those that might exist according to the bloom filter, must be cached). + * that exist, as well as those that might exist according to the Bloom filter, must be cached). * The entries judged least likely to be accessed again will be evicted first. */ @NonFinalForTesting diff --git a/java/google/registry/model/registry/label/PremiumListUtils.java b/java/google/registry/model/registry/label/PremiumListUtils.java index 76c792f5d..4346d70d3 100644 --- a/java/google/registry/model/registry/label/PremiumListUtils.java +++ b/java/google/registry/model/registry/label/PremiumListUtils.java @@ -89,7 +89,7 @@ public final class PremiumListUtils { } checkState( revision.getProbablePremiumLabels() != null, - "Probable premium labels bloom filter is null on revision '%s'", + "Probable premium labels Bloom filter is null on revision '%s'", premiumList.getRevisionKey()); CheckResults checkResults = checkStatus(revision, label); @@ -144,7 +144,7 @@ public final class PremiumListUtils { ImmutableMap premiumListEntries) { final Optional oldPremiumList = PremiumList.get(premiumList.getName()); - // Create the new revision (with its bloom filter) and parent the entries on it. + // Create the new revision (with its Bloom filter) and parent the entries on it. final PremiumListRevision newRevision = PremiumListRevision.create(premiumList, premiumListEntries.keySet()); final Key newRevisionKey = Key.create(newRevision); diff --git a/java/google/registry/model/translators/BloomFilterOfStringTranslatorFactory.java b/java/google/registry/model/translators/BloomFilterOfStringTranslatorFactory.java index 8266af428..55f1161cf 100644 --- a/java/google/registry/model/translators/BloomFilterOfStringTranslatorFactory.java +++ b/java/google/registry/model/translators/BloomFilterOfStringTranslatorFactory.java @@ -67,7 +67,7 @@ public class BloomFilterOfStringTranslatorFactory Funnel castedFunnel = (Funnel) (Funnel) unencodedCharsFunnel(); return BloomFilter.readFrom(new ByteArrayInputStream(value.getBytes()), castedFunnel); } catch (IOException e) { - throw new IllegalStateException("Error loading bloom filter data", e); + throw new IllegalStateException("Error loading Bloom filter data", e); } } @@ -81,7 +81,7 @@ public class BloomFilterOfStringTranslatorFactory try { value.writeTo(bos); } catch (IOException e) { - throw new IllegalStateException("Error saving bloom filter data", e); + throw new IllegalStateException("Error saving Bloom filter data", e); } return new Blob(bos.toByteArray()); } diff --git a/javatests/google/registry/model/registry/label/PremiumListUtilsTest.java b/javatests/google/registry/model/registry/label/PremiumListUtilsTest.java index a066d9974..0dbfe0e24 100644 --- a/javatests/google/registry/model/registry/label/PremiumListUtilsTest.java +++ b/javatests/google/registry/model/registry/label/PremiumListUtilsTest.java @@ -153,7 +153,7 @@ public class PremiumListUtilsTest { .setLabel("missingno") .setPrice(Money.parse("USD 1000")) .build()); - // "missingno" shouldn't be in the bloom filter, thus it should return not premium without + // "missingno" shouldn't be in the Bloom filter, thus it should return not premium without // attempting to load the entity that is actually present. assertThat(getPremiumPrice("missingno", Registry.get("tld"))).isAbsent(); // However, if we manually query the cache to force an entity load, it should be found.