Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
爱吃血肠
spring-framework
提交
6c7250b0
S
spring-framework
项目概览
爱吃血肠
/
spring-framework
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
spring-framework
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
6c7250b0
编写于
11月 22, 2019
作者:
S
Sébastien Deleuze
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Make Kotlin DSL class constructors internal
Closes gh-24059
上级
dc0ebefc
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
9 addition
and
9 deletion
+9
-9
spring-context/src/main/kotlin/org/springframework/context/support/BeanDefinitionDsl.kt
.../org/springframework/context/support/BeanDefinitionDsl.kt
+1
-1
spring-test/src/main/kotlin/org/springframework/test/web/servlet/MockHttpServletRequestDsl.kt
...ngframework/test/web/servlet/MockHttpServletRequestDsl.kt
+1
-1
spring-test/src/main/kotlin/org/springframework/test/web/servlet/MockMultipartHttpServletRequestDsl.kt
...rk/test/web/servlet/MockMultipartHttpServletRequestDsl.kt
+1
-1
spring-test/src/main/kotlin/org/springframework/test/web/servlet/MockMvcResultHandlersDsl.kt
...ingframework/test/web/servlet/MockMvcResultHandlersDsl.kt
+1
-1
spring-test/src/main/kotlin/org/springframework/test/web/servlet/MockMvcResultMatchersDsl.kt
...ingframework/test/web/servlet/MockMvcResultMatchersDsl.kt
+1
-1
spring-test/src/main/kotlin/org/springframework/test/web/servlet/ResultActionsDsl.kt
.../org/springframework/test/web/servlet/ResultActionsDsl.kt
+1
-1
spring-webflux/src/main/kotlin/org/springframework/web/reactive/function/server/CoRouterFunctionDsl.kt
...ework/web/reactive/function/server/CoRouterFunctionDsl.kt
+1
-1
spring-webflux/src/main/kotlin/org/springframework/web/reactive/function/server/RouterFunctionDsl.kt
...amework/web/reactive/function/server/RouterFunctionDsl.kt
+1
-1
spring-webmvc/src/main/kotlin/org/springframework/web/servlet/function/RouterFunctionDsl.kt
...springframework/web/servlet/function/RouterFunctionDsl.kt
+1
-1
未找到文件。
spring-context/src/main/kotlin/org/springframework/context/support/BeanDefinitionDsl.kt
浏览文件 @
6c7250b0
...
@@ -76,7 +76,7 @@ fun beans(init: BeanDefinitionDsl.() -> Unit) = BeanDefinitionDsl(init)
...
@@ -76,7 +76,7 @@ fun beans(init: BeanDefinitionDsl.() -> Unit) = BeanDefinitionDsl(init)
* @author Sebastien Deleuze
* @author Sebastien Deleuze
* @since 5.0
* @since 5.0
*/
*/
open
class
BeanDefinitionDsl
(
private
val
init
:
BeanDefinitionDsl
.()
->
Unit
,
open
class
BeanDefinitionDsl
internal
constructor
(
private
val
init
:
BeanDefinitionDsl
.()
->
Unit
,
private
val
condition
:
(
ConfigurableEnvironment
)
->
Boolean
=
{
true
})
private
val
condition
:
(
ConfigurableEnvironment
)
->
Boolean
=
{
true
})
:
ApplicationContextInitializer
<
GenericApplicationContext
>
{
:
ApplicationContextInitializer
<
GenericApplicationContext
>
{
...
...
spring-test/src/main/kotlin/org/springframework/test/web/servlet/MockHttpServletRequestDsl.kt
浏览文件 @
6c7250b0
...
@@ -40,7 +40,7 @@ import javax.servlet.http.Cookie
...
@@ -40,7 +40,7 @@ import javax.servlet.http.Cookie
* @author Sebastien Deleuze
* @author Sebastien Deleuze
* @since 5.2
* @since 5.2
*/
*/
open
class
MockHttpServletRequestDsl
(
private
val
builder
:
MockHttpServletRequestBuilder
)
{
open
class
MockHttpServletRequestDsl
internal
constructor
(
private
val
builder
:
MockHttpServletRequestBuilder
)
{
/**
/**
* @see [MockHttpServletRequestBuilder.contextPath]
* @see [MockHttpServletRequestBuilder.contextPath]
...
...
spring-test/src/main/kotlin/org/springframework/test/web/servlet/MockMultipartHttpServletRequestDsl.kt
浏览文件 @
6c7250b0
...
@@ -27,7 +27,7 @@ import javax.servlet.http.Part
...
@@ -27,7 +27,7 @@ import javax.servlet.http.Part
* @author Sebastien Deleuze
* @author Sebastien Deleuze
* @since 5.2
* @since 5.2
*/
*/
class
MockMultipartHttpServletRequestDsl
(
private
val
builder
:
MockMultipartHttpServletRequestBuilder
)
:
MockHttpServletRequestDsl
(
builder
)
{
class
MockMultipartHttpServletRequestDsl
internal
constructor
(
private
val
builder
:
MockMultipartHttpServletRequestBuilder
)
:
MockHttpServletRequestDsl
(
builder
)
{
/**
/**
* @see [MockMultipartHttpServletRequestBuilder.file]
* @see [MockMultipartHttpServletRequestBuilder.file]
...
...
spring-test/src/main/kotlin/org/springframework/test/web/servlet/MockMvcResultHandlersDsl.kt
浏览文件 @
6c7250b0
...
@@ -26,7 +26,7 @@ import java.io.Writer
...
@@ -26,7 +26,7 @@ import java.io.Writer
* @author Sebastien Deleuze
* @author Sebastien Deleuze
* @since 5.2
* @since 5.2
*/
*/
class
MockMvcResultHandlersDsl
(
private
val
actions
:
ResultActions
)
{
class
MockMvcResultHandlersDsl
internal
constructor
(
private
val
actions
:
ResultActions
)
{
/**
/**
* @see MockMvcResultHandlers.print
* @see MockMvcResultHandlers.print
...
...
spring-test/src/main/kotlin/org/springframework/test/web/servlet/MockMvcResultMatchersDsl.kt
浏览文件 @
6c7250b0
...
@@ -25,7 +25,7 @@ import org.springframework.test.web.servlet.result.*
...
@@ -25,7 +25,7 @@ import org.springframework.test.web.servlet.result.*
* @author Sebastien Deleuze
* @author Sebastien Deleuze
* @since 5.2
* @since 5.2
*/
*/
class
MockMvcResultMatchersDsl
(
private
val
actions
:
ResultActions
)
{
class
MockMvcResultMatchersDsl
internal
constructor
(
private
val
actions
:
ResultActions
)
{
/**
/**
* @see MockMvcResultMatchers.request
* @see MockMvcResultMatchers.request
...
...
spring-test/src/main/kotlin/org/springframework/test/web/servlet/ResultActionsDsl.kt
浏览文件 @
6c7250b0
...
@@ -8,7 +8,7 @@ import org.springframework.test.web.servlet.request.MockMvcRequestBuilders
...
@@ -8,7 +8,7 @@ import org.springframework.test.web.servlet.request.MockMvcRequestBuilders
* @author Sebastien Deleuze
* @author Sebastien Deleuze
* @since 5.2
* @since 5.2
*/
*/
class
ResultActionsDsl
(
private
val
actions
:
ResultActions
,
private
val
mockMvc
:
MockMvc
)
{
class
ResultActionsDsl
internal
constructor
(
private
val
actions
:
ResultActions
,
private
val
mockMvc
:
MockMvc
)
{
/**
/**
* Provide access to [MockMvcResultMatchersDsl] Kotlin DSL.
* Provide access to [MockMvcResultMatchersDsl] Kotlin DSL.
...
...
spring-webflux/src/main/kotlin/org/springframework/web/reactive/function/server/CoRouterFunctionDsl.kt
浏览文件 @
6c7250b0
...
@@ -63,7 +63,7 @@ fun coRouter(routes: (CoRouterFunctionDsl.() -> Unit)) =
...
@@ -63,7 +63,7 @@ fun coRouter(routes: (CoRouterFunctionDsl.() -> Unit)) =
* @author Sebastien Deleuze
* @author Sebastien Deleuze
* @since 5.2
* @since 5.2
*/
*/
class
CoRouterFunctionDsl
(
private
val
init
:
(
CoRouterFunctionDsl
.()
->
Unit
))
{
class
CoRouterFunctionDsl
internal
constructor
(
private
val
init
:
(
CoRouterFunctionDsl
.()
->
Unit
))
{
@PublishedApi
@PublishedApi
internal
val
builder
=
RouterFunctions
.
route
()
internal
val
builder
=
RouterFunctions
.
route
()
...
...
spring-webflux/src/main/kotlin/org/springframework/web/reactive/function/server/RouterFunctionDsl.kt
浏览文件 @
6c7250b0
...
@@ -60,7 +60,7 @@ fun router(routes: RouterFunctionDsl.() -> Unit) = RouterFunctionDsl(routes).bui
...
@@ -60,7 +60,7 @@ fun router(routes: RouterFunctionDsl.() -> Unit) = RouterFunctionDsl(routes).bui
* @author Yevhenii Melnyk
* @author Yevhenii Melnyk
* @since 5.0
* @since 5.0
*/
*/
class
RouterFunctionDsl
(
private
val
init
:
RouterFunctionDsl
.()
->
Unit
)
{
class
RouterFunctionDsl
internal
constructor
(
private
val
init
:
RouterFunctionDsl
.()
->
Unit
)
{
@PublishedApi
@PublishedApi
internal
val
builder
=
RouterFunctions
.
route
()
internal
val
builder
=
RouterFunctions
.
route
()
...
...
spring-webmvc/src/main/kotlin/org/springframework/web/servlet/function/RouterFunctionDsl.kt
浏览文件 @
6c7250b0
...
@@ -58,7 +58,7 @@ fun router(routes: (RouterFunctionDsl.() -> Unit)) = RouterFunctionDsl(routes).b
...
@@ -58,7 +58,7 @@ fun router(routes: (RouterFunctionDsl.() -> Unit)) = RouterFunctionDsl(routes).b
* @author Sebastien Deleuze
* @author Sebastien Deleuze
* @since 5.2
* @since 5.2
*/
*/
class
RouterFunctionDsl
(
private
val
init
:
(
RouterFunctionDsl
.()
->
Unit
))
{
class
RouterFunctionDsl
internal
constructor
(
private
val
init
:
(
RouterFunctionDsl
.()
->
Unit
))
{
@PublishedApi
@PublishedApi
internal
val
builder
=
RouterFunctions
.
route
()
internal
val
builder
=
RouterFunctions
.
route
()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录