1
0
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:
Florian Wilhelm 2019-01-23 09:48:21 +01:00
parent 7f1713148f
commit 33238403d2
3 changed files with 4 additions and 3 deletions

View File

@ -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;
}

View File

@ -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) {

View File

@ -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) {