mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-14 11:03:09 +02:00
Mark old classes as deprecated api
This commit is contained in:
parent
7f1713148f
commit
33238403d2
@ -10,10 +10,11 @@ import java.lang.annotation.Target;
|
||||
* this shared, e.g. in other shared libraries. In case there is the
|
||||
* need for changing this methods this should be clearly announced
|
||||
* in order to get a consensus about the change and in order to allow
|
||||
* users of the correponding class/method to adapt to the change accordingly.
|
||||
* users of the corresponding class/method to adapt to the change accordingly.
|
||||
*/
|
||||
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target({ElementType.METHOD, ElementType.TYPE})
|
||||
public @interface API {
|
||||
boolean deprecated() default false;
|
||||
}
|
||||
|
@ -2,7 +2,7 @@ package com.sap.piper
|
||||
|
||||
import com.cloudbees.groovy.cps.NonCPS
|
||||
|
||||
@API
|
||||
@API(deprecated = true)
|
||||
class ConfigurationLoader implements Serializable {
|
||||
@NonCPS
|
||||
static Map stepConfiguration(script, String stepName) {
|
||||
|
@ -2,7 +2,7 @@ package com.sap.piper
|
||||
|
||||
import com.cloudbees.groovy.cps.NonCPS
|
||||
|
||||
@API
|
||||
@API(deprecated = true)
|
||||
class ConfigurationMerger {
|
||||
@NonCPS
|
||||
static Map merge(Map configs, Set configKeys, Map defaults) {
|
||||
|
Loading…
Reference in New Issue
Block a user