Refine return type of STRUCT factory methods
RELNOTES: None
@@ -89,13 +89,14 @@ public abstract class NativeProvider<V extends Info> extends Provider {
* providers, such as the {@code native} object, and the struct fields of {@code ctx} like
* {@code ctx.attr}.
* */
- public Info create(Map<String, Object> values, String errorMessageFormatForUnknownField) {
+ public SkylarkInfo create(
+ Map<String, Object> values, String errorMessageFormatForUnknownField) {
return SkylarkInfo.createSchemalessWithCustomMessage(
this, values, errorMessageFormatForUnknownField);
}
/** Creates an empty struct with the given location. */
- public Info createEmpty(Location loc) {
+ public SkylarkInfo createEmpty(Location loc) {
return SkylarkInfo.createSchemaless(this, ImmutableMap.of(), loc);
}
}
