Skip to content

Commit

Permalink
Added documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Shailesh Jagannath Padave authored and Shailesh Jagannath Padave committed Jan 9, 2025
1 parent af5e807 commit d2b3bcc
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -530,10 +530,15 @@ public TaskDef getTaskDefinition() {
}

/**
* @param taskDefinition Task definition
* Sets the TaskDef for this instance. If the passed TaskDef does not have a name,
* this method will set it to the name of the current instance.
*
* NOTE: This method mutates the passed TaskDef object.
*
* @param taskDefinition The TaskDef to set. It may be modified by this method.
*/
public void setTaskDefinition(TaskDef taskDefinition) {
if (taskDefinition != null && taskDefinition.getName() == null) {
if (taskDefinition != null) {
taskDefinition.setName(this.name);
}
this.taskDefinition = taskDefinition;
Expand Down

0 comments on commit d2b3bcc

Please sign in to comment.