Make Kotlin DSL class constructors internal
Closes gh-24059
This commit is contained in:
@@ -63,7 +63,7 @@ fun coRouter(routes: (CoRouterFunctionDsl.() -> Unit)) =
|
||||
* @author Sebastien Deleuze
|
||||
* @since 5.2
|
||||
*/
|
||||
class CoRouterFunctionDsl(private val init: (CoRouterFunctionDsl.() -> Unit)) {
|
||||
class CoRouterFunctionDsl internal constructor (private val init: (CoRouterFunctionDsl.() -> Unit)) {
|
||||
|
||||
@PublishedApi
|
||||
internal val builder = RouterFunctions.route()
|
||||
|
||||
@@ -60,7 +60,7 @@ fun router(routes: RouterFunctionDsl.() -> Unit) = RouterFunctionDsl(routes).bui
|
||||
* @author Yevhenii Melnyk
|
||||
* @since 5.0
|
||||
*/
|
||||
class RouterFunctionDsl(private val init: RouterFunctionDsl.() -> Unit) {
|
||||
class RouterFunctionDsl internal constructor (private val init: RouterFunctionDsl.() -> Unit) {
|
||||
|
||||
@PublishedApi
|
||||
internal val builder = RouterFunctions.route()
|
||||
|
||||
Reference in New Issue
Block a user