mirror of
https://github.com/google/nomulus.git
synced 2025-06-11 06:54:46 +02:00
Fix @VisibleForTesting given the newly deployed enforcement
Generated code is now also covered by @VisibleForTesting, including Dagger @Inject This CL is a cleanup of auto-generated code by ghm@ from the Error Prone team ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=228748874
This commit is contained in:
parent
8bde7285bf
commit
c74ffd7559
15 changed files with 11 additions and 24 deletions
|
@ -16,7 +16,6 @@ package google.registry.model.contact;
|
|||
|
||||
import static google.registry.util.CollectionUtils.nullToEmptyImmutableCopy;
|
||||
|
||||
import com.google.common.annotations.VisibleForTesting;
|
||||
import com.google.common.collect.ImmutableList;
|
||||
import com.googlecode.objectify.annotation.Embed;
|
||||
import google.registry.model.Buildable;
|
||||
|
@ -84,7 +83,6 @@ public class Disclose extends ImmutableObject {
|
|||
return type;
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
public static PostalInfoChoice create(PostalInfo.Type type) {
|
||||
PostalInfoChoice instance = new PostalInfoChoice();
|
||||
instance.type = type;
|
||||
|
@ -93,7 +91,6 @@ public class Disclose extends ImmutableObject {
|
|||
}
|
||||
|
||||
/** A builder for {@link Disclose} since it is immutable. */
|
||||
@VisibleForTesting
|
||||
public static class Builder extends Buildable.Builder<Disclose> {
|
||||
public Builder setNames(ImmutableList<PostalInfoChoice> names) {
|
||||
getInstance().name = names;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue