1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-14 11:03:09 +02:00

Merge pull request #35 from marcusholl/pr/FixDefaultValueCacheGetInstance

fix default value cache get instance
This commit is contained in:
Marcus Holl 2017-12-13 08:47:53 +01:00 committed by GitHub
commit b54fd85755
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,7 @@
package com.sap.piper
import com.cloudbees.groovy.cps.NonCPS
class DefaultValueCache implements Serializable {
private static DefaultValueCache instance
@ -9,6 +11,7 @@ class DefaultValueCache implements Serializable {
this.defaultValues = defaultValues
}
@NonCPS
static getInstance(){
return instance
}
@ -17,6 +20,7 @@ class DefaultValueCache implements Serializable {
instance = new DefaultValueCache(defaultValues)
}
@NonCPS
Map getDefaultValues(){
return defaultValues
}