Update DetectionTask.java

removed previous changes