Skip to content
Permalink
Browse files

[FIXED JENKINS-9662] thread safety fix

  • Loading branch information...
alanharder committed Jul 10, 2011
1 parent a6bc56b commit a3fefa58a2cfb33b90b531f08ed2dab20dc5b0ab
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/main/java/hudson/plugins/plot/Plot.java
@@ -494,8 +494,10 @@ private void generatePlot(boolean forceGenerate) {
final private String text;
public Label(String buildNum, String buildTime, String text) {
this.buildNum = Integer.parseInt(buildNum);
this.buildDate = DATE_FORMAT.format(
new Date(Long.parseLong(buildTime)));
synchronized (DATE_FORMAT) {
this.buildDate = DATE_FORMAT.format(
new Date(Long.parseLong(buildTime)));
}
this.text = text;
}
public Label(String buildNum, String buildTime) {

0 comments on commit a3fefa5

Please sign in to comment.
You can’t perform that action at this time.