Fix VisibleForTesting warnings for RuleConfiguredTarget
RuleConfiguredTarget is using VisibleForTesting annotations even though the
class is used in production. mproperly, resulting with warnings from
error-prone. Drop the annotation for the class and methods declared in the
interface it implements.
RELNOTES: None.
// limitations under the License.
package com.google.devtools.build.lib.skyframe;
-import com.google.common.annotations.VisibleForTesting;
import com.google.common.base.MoreObjects;
import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableList;
@@ -35,7 +34,6 @@ import javax.annotation.Nullable;
@Immutable
@ThreadSafe
@AutoCodec(explicitlyAllowClass = RuleConfiguredTarget.class)
-@VisibleForTesting
public final class RuleConfiguredTargetValue extends ActionLookupValue
implements ConfiguredTargetValue {
@@ -69,14 +67,12 @@ public final class RuleConfiguredTargetValue extends ActionLookupValue
this.generatingActionIndex = configuredTarget.getGeneratingActionIndex();
}
- @VisibleForTesting
@Override
public ConfiguredTarget getConfiguredTarget() {
Preconditions.checkNotNull(configuredTarget);
return configuredTarget;
}
- @VisibleForTesting
@Override
public ImmutableList<ActionAnalysisMetadata> getActions() {
return actions;
