コード例 #1
0
 @Override
 public void unregisterAction(Action action) {
   for (Artifact artifact : action.getOutputs()) {
     generatingActionMap.remove(artifact, action);
     Action otherAction = generatingActionMap.get(artifact);
     Preconditions.checkState(
         otherAction == null
             || (otherAction != action && Actions.canBeShared(action, otherAction)),
         "%s %s",
         action,
         otherAction);
   }
 }
コード例 #2
0
 @Override
 @Nullable
 public Action getGeneratingAction(Artifact artifact) {
   return generatingActionMap.get(artifact);
 }