Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[FIXED JENKINS-9662] thread safety fix
- Loading branch information
Showing
with
4 additions
and
2 deletions.
-
+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) { |
|
|