Skip to content

Commit

Permalink
[JENKINS-15816] Working around javac bug triggered by d84eca4.
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick committed Nov 13, 2012
1 parent ea13e2a commit 7bf6c5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/hudson/model/Run.java
Expand Up @@ -240,8 +240,8 @@ private static enum State {
private volatile transient RunExecution runner;

private static final SimpleDateFormat CANONICAL_ID_FORMATTER = new SimpleDateFormat("yyyy-MM-dd_HH-mm-ss");
protected static final ThreadLocal<SimpleDateFormat> ID_FORMATTER =
new ThreadLocal<SimpleDateFormat>() {
protected static final ThreadLocal<SimpleDateFormat> ID_FORMATTER = new IDFormatterProvider();
private static final class IDFormatterProvider extends ThreadLocal<SimpleDateFormat> {
@Override
protected SimpleDateFormat initialValue() {
synchronized (CANONICAL_ID_FORMATTER) {
Expand Down

0 comments on commit 7bf6c5c

Please sign in to comment.