001/*
002 * Copyright (C) 2006 The Guava Authors
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
005 * in compliance with the License. You may obtain a copy of the License at
006 *
007 * http://www.apache.org/licenses/LICENSE-2.0
008 *
009 * Unless required by applicable law or agreed to in writing, software distributed under the License
010 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
011 * or implied. See the License for the specific language governing permissions and limitations under
012 * the License.
013 */
014
015package com.google.common.annotations;
016
017/**
018 * Annotates a program element that exists, or is more widely visible than otherwise necessary, only
019 * for use in test code.
020 *
021 * <p><b>Do not use this interface</b> for public or protected declarations: it is a fig leaf for
022 * bad design, and it does not prevent anyone from using the declaration---and experience has shown
023 * that they will. If the method breaks the encapsulation of its class, then its internal
024 * representation will be hard to change. Instead, use <a
025 * href="http://errorprone.info/bugpattern/RestrictedApiChecker">RestrictedApiChecker</a>, which
026 * enforces fine-grained visibility policies.
027 *
028 * @author Johannes Henkel
029 */
030@GwtCompatible
031public @interface VisibleForTesting {
032}