aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakozak2011-11-21 06:29:33 (EST)
committerWinston Prakash2011-12-01 20:46:49 (EST)
commit948bdc8d51050da1533cf602166367ba4c264bbc (patch)
tree44de1ad1e2d7d57882789b3d176480faa9abc23a
parent3a2dc41d8472beff3bc96ec64939fcc35cc235d3 (diff)
downloadorg.eclipse.hudson.core-948bdc8d51050da1533cf602166367ba4c264bbc.zip
org.eclipse.hudson.core-948bdc8d51050da1533cf602166367ba4c264bbc.tar.gz
org.eclipse.hudson.core-948bdc8d51050da1533cf602166367ba4c264bbc.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;
- }
- };
}