diff options
author | 2015-08-05 09:47:57 +0000 | |
---|---|---|
committer | 2015-08-05 20:54:13 +0000 | |
commit | 4b5a3f712786c16aef4bafae4b78bbf57642470a (patch) | |
tree | a1144b754352bbb9db1b482c8f7d415d06df79fd | |
parent | 64afefaa40a5c1f90f1197b24ffdae329cacea3a (diff) |
Annotate AspectDefinition.attributeAspect @SafeVarargs to suppress warnings.
--
MOS_MIGRATED_REVID=99904596
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/packages/AspectDefinition.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/packages/AspectDefinition.java b/src/main/java/com/google/devtools/build/lib/packages/AspectDefinition.java index 10ba3ffbff..14bade6f02 100644 --- a/src/main/java/com/google/devtools/build/lib/packages/AspectDefinition.java +++ b/src/main/java/com/google/devtools/build/lib/packages/AspectDefinition.java @@ -181,7 +181,8 @@ public final class AspectDefinition { * <p>Note that {@code AspectFactory} instances are expected in the second argument, but we * cannot reference that interface here. */ - public Builder attributeAspect( + @SafeVarargs + public final Builder attributeAspect( String attribute, Class<? extends AspectFactory<?, ?, ?>>... aspectFactories) { Preconditions.checkNotNull(attribute); for (Class<? extends AspectFactory<?, ?, ?>> aspectFactory : aspectFactories) { |