1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-01-04 04:07:16 +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 * this shared, e.g. in other shared libraries. In case there is the
* need for changing this methods this should be clearly announced * need for changing this methods this should be clearly announced
* in order to get a consensus about the change and in order to allow * 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) @Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.TYPE}) @Target({ElementType.METHOD, ElementType.TYPE})
public @interface API { public @interface API {
boolean deprecated() default false;
} }

View File

@ -2,7 +2,7 @@ package com.sap.piper
import com.cloudbees.groovy.cps.NonCPS import com.cloudbees.groovy.cps.NonCPS
@API @API(deprecated = true)
class ConfigurationLoader implements Serializable { class ConfigurationLoader implements Serializable {
@NonCPS @NonCPS
static Map stepConfiguration(script, String stepName) { static Map stepConfiguration(script, String stepName) {

View File

@ -2,7 +2,7 @@ package com.sap.piper
import com.cloudbees.groovy.cps.NonCPS import com.cloudbees.groovy.cps.NonCPS
@API @API(deprecated = true)
class ConfigurationMerger { class ConfigurationMerger {
@NonCPS @NonCPS
static Map merge(Map configs, Set configKeys, Map defaults) { static Map merge(Map configs, Set configKeys, Map defaults) {