From 072576ec9d8c5e279ff22039cbd37545ce6a602b Mon Sep 17 00:00:00 2001 From: mcilwain Date: Thu, 10 Jan 2019 12:51:45 -0800 Subject: [PATCH] Remove @VisibleForTesting annotation using Visibility field The Visibility field isn't in public Guava yet, so just remove it. This fixes the breakage caused by [] ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=228759870 --- java/google/registry/ui/forms/FormFieldException.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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); }