1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-12 10:55:20 +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 package com.sap.piper
import com.cloudbees.groovy.cps.NonCPS
class DefaultValueCache implements Serializable { class DefaultValueCache implements Serializable {
private static DefaultValueCache instance private static DefaultValueCache instance
@ -9,6 +11,7 @@ class DefaultValueCache implements Serializable {
this.defaultValues = defaultValues this.defaultValues = defaultValues
} }
@NonCPS
static getInstance(){ static getInstance(){
return instance return instance
} }
@ -17,6 +20,7 @@ class DefaultValueCache implements Serializable {
instance = new DefaultValueCache(defaultValues) instance = new DefaultValueCache(defaultValues)
} }
@NonCPS
Map getDefaultValues(){ Map getDefaultValues(){
return defaultValues return defaultValues
} }