chore: change clearTasks() to use HashMap.clear()
style: change Javadoc to meet coding standard

Align parameter descriptions