Update the Javadoc for `ArtifactRoot#asDerivedRoot`.
Javadoc of ArtifactRoot#asDerivedRoot mentions derived roots registration in
`ArtifactFactory`, which has been removed in the past. Update the comment so it
matches current logic in `ArtifactFactory`.
@@ -62,8 +62,8 @@ public final class ArtifactRoot implements Comparable<ArtifactRoot>, Serializabl
* Constructs an ArtifactRoot given the output prefixes. (eg, "bin"), and (eg, "testlogs")
* relative to the execRoot.
*
- * <p>Be careful with this method - all derived roots must be registered with the artifact factory
- * before the analysis phase.
+ * <p>Be careful with this method - all derived roots must be within the derived artifacts tree,
+ * defined in ArtifactFactory (see {@link ArtifactFactory#isDerivedArtifact(PathFragment)}).
*/
public static ArtifactRoot asDerivedRoot(Path execRoot, String... prefixes) {
Path root = execRoot;
