import org.sonar.api.utils.TimeUtils;
+import javax.annotation.Nullable;
+
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
PhasesSumUpTimeProfiler.println(msg);
}
- protected void println(String text, Double percent, AbstractTimeProfiling phaseProfiling) {
+ protected void println(String text, @Nullable Double percent, AbstractTimeProfiling phaseProfiling) {
PhasesSumUpTimeProfiler.println(text, percent, phaseProfiling);
}
import org.sonar.batch.events.BatchStepHandler;
import org.sonar.batch.phases.Phases;
+import javax.annotation.Nullable;
+
import java.util.HashMap;
import java.util.IdentityHashMap;
import java.util.List;
LOG.info(msg);
}
- static void println(String text, Double percent, AbstractTimeProfiling phaseProfiling) {
+ static void println(String text, @Nullable Double percent, AbstractTimeProfiling phaseProfiling) {
StringBuilder sb = new StringBuilder();
sb.append(StringUtils.rightPad(text, TEXT_RIGHT_PAD)).append(StringUtils.leftPad(phaseProfiling.totalTimeAsString(), TIME_LEFT_PAD));
if (percent != null) {