Skip to content

Commit 1ef4bc6

Browse files
committed
change validation comment
1 parent f6819c9 commit 1ef4bc6

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

  • core/src/main/java/google/registry/model/eppcommon

core/src/main/java/google/registry/model/eppcommon/Address.java

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,18 @@
4545
/**
4646
* Container for generic street address.
4747
*
48-
* <p>This is the "addrType" type from <a href="http://tools.ietf.org/html/rfc5733">RFC5733</a>. It
48+
* <p>
49+
* This is the "addrType" type from
50+
* <a href="http://tools.ietf.org/html/rfc5733">RFC5733</a>. It
4951
* also matches the "addrType" type from <a
50-
* href="http://tools.ietf.org/html/draft-lozano-tmch-smd">Mark and Signed Mark Objects Mapping</a>.
52+
* href="http://tools.ietf.org/html/draft-lozano-tmch-smd">Mark and Signed Mark
53+
* Objects Mapping</a>.
5154
*
52-
* <p>The lengths of the fields are limited to match the constraints defined in XSD schemas like
53-
* `contact-1.0.xsd` and `rde-registrar.xsd`. Specifically, `zip` is limited to 16 characters and
54-
* `city`, `state`, and each `street` line are limited to 255 characters.
55+
* <p>
56+
* The lengths of the fields are limited to match the constraints defined in XSD
57+
* schemas like `rde-registrar.xsd`. Specifically, `zip` is limited to 16
58+
* characters and `city`, `state`, and each `street` line are limited to 255
59+
* characters.
5560
*
5661
* @see google.registry.model.mark.MarkAddress
5762
* @see google.registry.model.registrar.RegistrarAddress
@@ -212,8 +217,7 @@ public Builder<T> setState(String state) {
212217
}
213218

214219
public Builder<T> setZip(String zip) {
215-
checkArgument(
216-
zip == null || zip.length() <= 16, "Zip cannot be longer than 16 characters");
220+
checkArgument(zip == null || zip.length() <= 16, "Zip cannot be longer than 16 characters");
217221
getInstance().zip = zip;
218222
return this;
219223
}

0 commit comments

Comments
 (0)