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
This commit is contained in:
mcilwain 2019-01-10 12:51:45 -08:00 committed by Ben McIlwain
parent 580302898d
commit 072576ec9d

View file

@ -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.
*
* <p>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);
}