From 3b3f350abe0c0ef734c79b50fa1863a149fd8db0 Mon Sep 17 00:00:00 2001 From: gbrodman Date: Tue, 2 Jul 2019 10:35:32 -0400 Subject: [PATCH] Update checkstyle.xml with many presubmit checks (#130) * Update checkstyle.xml with many presubmit checks * Remove a comment --- config/checkstyle/checkstyle.xml | 47 +++++++++++++++++++ config/checkstyle/suppressions.xml | 2 + .../registry/model/domain/DomainBase.java | 2 +- 3 files changed, 50 insertions(+), 1 deletion(-) diff --git a/config/checkstyle/checkstyle.xml b/config/checkstyle/checkstyle.xml index 5e8d60967..0e8a824b5 100644 --- a/config/checkstyle/checkstyle.xml +++ b/config/checkstyle/checkstyle.xml @@ -25,6 +25,53 @@ by Joshua Bloch in his book Effective Java --> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/config/checkstyle/suppressions.xml b/config/checkstyle/suppressions.xml index cd993cc2e..405e27ab5 100644 --- a/config/checkstyle/suppressions.xml +++ b/config/checkstyle/suppressions.xml @@ -9,4 +9,6 @@ + + diff --git a/core/src/main/java/google/registry/model/domain/DomainBase.java b/core/src/main/java/google/registry/model/domain/DomainBase.java index 6f5087564..5180ca32a 100644 --- a/core/src/main/java/google/registry/model/domain/DomainBase.java +++ b/core/src/main/java/google/registry/model/domain/DomainBase.java @@ -104,7 +104,7 @@ public class DomainBase extends EppResource * from (creationTime, deletionTime) there can only be one domain in Datastore with this name. * However, there can be many domains with the same name and non-overlapping lifetimes. * - * @invariant fullyQualifiedDomainName == fullyQualifiedDomainName.toLowerCase() + * @invariant fullyQualifiedDomainName == fullyQualifiedDomainName.toLowerCase(Locale.ENGLISH) */ @Index String fullyQualifiedDomainName;