Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
Never use a lazy loaded variable in toString() impl. This blew up in
Browse files Browse the repository at this point in the history
DEBUG mode if the MeasurementBaseline was not a managed entity.
  • Loading branch information
jshaughn committed Dec 18, 2015
1 parent 4954341 commit 772b6cd
Showing 1 changed file with 1 addition and 7 deletions.
Expand Up @@ -217,13 +217,7 @@ public String toString() {
sb.append(", baselineMax=").append(baselineMax);
sb.append(", baselineMean=").append(baselineMean);
sb.append(", computeTime=").append(computeTime);

if (schedule != null) {
sb.append(", scheduleId=").append(schedule.getId());
} else {
sb.append(", scheduleId=null");
}

sb.append(", scheduleId=").append(scheduleId);
sb.append('}');
return sb.toString();
}
Expand Down

0 comments on commit 772b6cd

Please sign in to comment.