Class BitbucketLegacyTraitConverter
- java.lang.Object
 - 
- com.atlassian.bitbucket.jenkins.internal.scm.trait.BitbucketLegacyTraitConverter
 
 
- 
public class BitbucketLegacyTraitConverter extends Object
- Since:
 - 4.0.0
 
 
- 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static jenkins.scm.api.trait.SCMSourceTraitmaybeConvert(jenkins.scm.api.trait.SCMSourceTrait trait)Attempts to convert known legacy traits into their newer equivalents. 
 - 
 
- 
- 
Method Detail
- 
maybeConvert
@CheckForNull public static jenkins.scm.api.trait.SCMSourceTrait maybeConvert(jenkins.scm.api.trait.SCMSourceTrait trait)
Attempts to convert known legacy traits into their newer equivalents. May return one of the following.- Returns null if support for the trait has been dropped.
 - Returns the new equivalent of the trait if there is one available.
 - Returns the same trait instance if neither of the previous conditions have been met.
 
 
 - 
 
 -