diff --git a/java/google/registry/ui/forms/FormFieldException.java b/java/google/registry/ui/forms/FormFieldException.java index a42e439f4..0f2dec5b8 100644 --- a/java/google/registry/ui/forms/FormFieldException.java +++ b/java/google/registry/ui/forms/FormFieldException.java @@ -18,8 +18,6 @@ import static com.google.common.base.MoreObjects.toStringHelper; import static com.google.common.base.Preconditions.checkNotNull; import static com.google.common.base.Preconditions.checkState; -import com.google.common.annotations.VisibleForTesting; -import com.google.common.annotations.VisibleForTesting.Visibility; import com.google.common.collect.Lists; import java.util.ArrayList; import java.util.Iterator; @@ -131,9 +129,13 @@ public final class FormFieldException extends FormException { return result.toString(); } - /** Returns self with {@code name} prepended, for propagating exceptions up the stack. */ + /** + * Returns self with {@code name} prepended, for propagating exceptions up the stack. + * + *
This would be package-private except that it needs to be called by a test class in another + * package. + */ @CheckReturnValue - @VisibleForTesting(productionVisibility = Visibility.PACKAGE_PRIVATE) public FormFieldException propagate(String name) { return propagateImpl(name); }