class CatPicturesAPI { /** * Experimental in case cats overtake the planet and * demand pets and treats in exchange for cat pictures */ @ExperimentalCatPicturesAPI fun getCatPicture(): CatPicture = CatPicture() }
fun doCatPictureAPIStuff() { val catPicturesAPI = CatPicturesAPI() catPicturesAPI.getCatPicture() } This API is experimental and its usage must be marked with @UseExperimental.
@UseExperimental(ExperimentalCatPicturesAPI::class) fun doCatPictureAPIStuff() { val catPicturesAPI = CatPicturesAPI() catPicturesAPI.getCatPicture() }
/** * Marks the annotated declaration as deprecated. */ TYPEALIAS) annotation class Deprecated( val message: String, val replaceWith: ReplaceWith = ReplaceWith(""), val level: DeprecationLevel = DeprecationLevel.WARNING )
@Deprecated(“This is a legacy API. Please use the new CatPicturesAPI instead.") class LegacyCatPictureAPI { fun getCatPicture(): CatPicture = CatPicture() }
/** * Marks the annotated declaration as deprecated. */ TYPEALIAS) annotation class Deprecated( val message: String, val replaceWith: ReplaceWith = ReplaceWith(""), val level: DeprecationLevel = DeprecationLevel.WARNING )
@Deprecated( "This is a legacy API. Please use the new CatPicturesAPI instead.", ReplaceWith("CatPicturesAPI") ) class LegacyCatPictureAPI { fun getCatPicture(): CatPicture = CatPicture() }
@Deprecated( "This is a legacy API. Please use the new CatPicturesAPI instead.", ReplaceWith("CatPicturesAPI") ) class LegacyCatPictureAPI { fun getCatPicture(): CatPicture = CatPicture() }
class Laboratory { @Deprecated( "Typo in here. Please use getRandomChemical instead.", ReplaceWith("getRandomChemical") ) fun getRandommChemical(): Chemical = randomExperiment + randomExperiment + explosive }
class Laboratory { @Deprecated( "Typo in here. Please use getRandomChemical instead.", ReplaceWith("getRandomChemical") ) fun getRandommChemical(): Chemical = randomExperiment + randomExperiment + explosive fun getRandomChemical(): Chemical = randomExperiment + randomExperiment + explosive }
class Laboratory { @Deprecated( "Typo in here. Please use getRandomChemical instead.", ReplaceWith("getRandomChemical") ) fun getRandommChemical(): Chemical = getRandomChemical() fun getRandomChemical(): Chemical = randomExperiment + randomExperiment + explosive }
class CatPicturesAPI { /** * Experimental in case cats overtake the planet and * demand pets and treats in exchange for cat pictures */ @ExperimentalCatPicturesAPI fun getCatPicture(): CatPicture = CatPicture() }
class CatPictureAPI { /** * Experimental in case cats overtake the planet and * demand pets and treats in exchange for cat pictures */ @ExperimentalCatPicturesAPI fun getCatPicture(): CatPicture = CatPicture() }
interface CanvasCapabilities interface SDKCapabilities: CanvasCapabilities class CanvasManager: CanvasCapabilities class ArtboardSDK: SDKCapabilities, CanvasCapabilities by CanvasManager()
interface CanvasCapabilities interface SDKCapabilities: CanvasCapabilities class CanvasManager: CanvasCapabilities class ArtboardSDK: SDKCapabilities, CanvasCapabilities by CanvasManager()