mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 07:57:13 +02:00
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:
parent
580302898d
commit
072576ec9d
1 changed files with 6 additions and 4 deletions
|
@ -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.checkNotNull;
|
||||||
import static com.google.common.base.Preconditions.checkState;
|
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 com.google.common.collect.Lists;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
|
@ -131,9 +129,13 @@ public final class FormFieldException extends FormException {
|
||||||
return result.toString();
|
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
|
@CheckReturnValue
|
||||||
@VisibleForTesting(productionVisibility = Visibility.PACKAGE_PRIVATE)
|
|
||||||
public FormFieldException propagate(String name) {
|
public FormFieldException propagate(String name) {
|
||||||
return propagateImpl(name);
|
return propagateImpl(name);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue