From 8003aa4f2668c2e4328c800972351f484f0790b3 Mon Sep 17 00:00:00 2001 From: Sebastien Deleuze Date: Wed, 27 Mar 2019 15:05:31 +0100 Subject: [PATCH] Deprecate GenericApplicationContext { } Kotlin extension Closes gh-22692 --- .../context/support/GenericApplicationContextExtensions.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-context/src/main/kotlin/org/springframework/context/support/GenericApplicationContextExtensions.kt b/spring-context/src/main/kotlin/org/springframework/context/support/GenericApplicationContextExtensions.kt index 07400ad654..27076b2228 100644 --- a/spring-context/src/main/kotlin/org/springframework/context/support/GenericApplicationContextExtensions.kt +++ b/spring-context/src/main/kotlin/org/springframework/context/support/GenericApplicationContextExtensions.kt @@ -1,5 +1,5 @@ /* - * Copyright 2002-2017 the original author or authors. + * Copyright 2002-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -73,6 +73,7 @@ inline fun GenericApplicationContext.registerBean(name: String * @author Sebastien Deleuze * @since 5.0 */ +@Deprecated("Use regular apply method instead.", replaceWith = ReplaceWith("GenericApplicationContext().apply(configure)")) fun GenericApplicationContext(configure: GenericApplicationContext.() -> Unit) = GenericApplicationContext().apply(configure)