aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakozak2011-11-21 06:29:33 (EST)
committerWinston Prakash2011-12-01 20:46:49 (EST)
commit892481f25828202e7f1f1099065c35bc84a481b0 (patch)
tree61c1c28015f811e89089c883794b5c2d16f46746
parenta353adfb005ccdb7d97c53efa37d4ac365e8d095 (diff)
downloadorg.eclipse.hudson.core-892481f25828202e7f1f1099065c35bc84a481b0.zip
org.eclipse.hudson.core-892481f25828202e7f1f1099065c35bc84a481b0.tar.gz
org.eclipse.hudson.core-892481f25828202e7f1f1099065c35bc84a481b0.tar.bz2
Remove static definition from 'allowSave' property
Signed-off-by: Winston Prakash <winston.prakash@gmail.com>
-rw-r--r--hudson-core/src/main/java/hudson/model/Job.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/hudson-core/src/main/java/hudson/model/Job.java b/hudson-core/src/main/java/hudson/model/Job.java
index c57ff54..3b73d4e 100644
--- a/hudson-core/src/main/java/hudson/model/Job.java
+++ b/hudson-core/src/main/java/hudson/model/Job.java
@@ -154,6 +154,13 @@ public abstract class Job<JobT extends Job<JobT, RunT>, RunT extends Run<JobT, R
*/
private transient JobT template;
+ protected final ThreadLocal<Boolean> allowSave = new ThreadLocal<Boolean>() {
+ @Override
+ protected Boolean initialValue() {
+ return true;
+ }
+ };
+
protected Job(ItemGroup parent, String name) {
super(parent, name);
}
@@ -1392,11 +1399,4 @@ public abstract class Job<JobT extends Job<JobT, RunT>, RunT extends Run<JobT, R
return run.getDisplayName() + " : " + run.getDurationString();
}
}
-
- protected static final ThreadLocal<Boolean> allowSave = new ThreadLocal<Boolean>() {
- @Override
- protected Boolean initialValue() {
- return true;
- }
- };
}