Rename Command.inherits to Command.inheritsOptionsFrom
This is to avoid confusion that it inherits other metadata.
PiperOrigin-RevId: 644947040
Change-Id: I2911d81bb7cca40ea9bdca4855a02a403d18c6a1
diff --git a/src/test/java/com/google/devtools/build/lib/runtime/AbstractCommandTest.java b/src/test/java/com/google/devtools/build/lib/runtime/AbstractCommandTest.java
index d1dea1b..867d0df 100644
--- a/src/test/java/com/google/devtools/build/lib/runtime/AbstractCommandTest.java
+++ b/src/test/java/com/google/devtools/build/lib/runtime/AbstractCommandTest.java
@@ -110,8 +110,12 @@
@Command(name = "a", options = {FooOptions.class}, shortDescription = "", help = "")
private static class CommandA extends ConcreteCommand {}
- @Command(name = "b", options = {BarOptions.class}, inherits = {CommandA.class},
- shortDescription = "", help = "")
+ @Command(
+ name = "b",
+ options = {BarOptions.class},
+ inheritsOptionsFrom = {CommandA.class},
+ shortDescription = "",
+ help = "")
private static class CommandB extends ConcreteCommand {}
@Test