Make Kotlin DSL class constructors internal

Closes gh-24059
This commit is contained in:
Sébastien Deleuze
2019-11-22 16:10:42 +01:00
parent dc0ebefc56
commit 6c7250b0ae
9 changed files with 9 additions and 9 deletions

View File

@@ -40,7 +40,7 @@ import javax.servlet.http.Cookie
* @author Sebastien Deleuze
* @since 5.2
*/
open class MockHttpServletRequestDsl(private val builder: MockHttpServletRequestBuilder) {
open class MockHttpServletRequestDsl internal constructor (private val builder: MockHttpServletRequestBuilder) {
/**
* @see [MockHttpServletRequestBuilder.contextPath]

View File

@@ -27,7 +27,7 @@ import javax.servlet.http.Part
* @author Sebastien Deleuze
* @since 5.2
*/
class MockMultipartHttpServletRequestDsl(private val builder: MockMultipartHttpServletRequestBuilder) : MockHttpServletRequestDsl(builder) {
class MockMultipartHttpServletRequestDsl internal constructor (private val builder: MockMultipartHttpServletRequestBuilder) : MockHttpServletRequestDsl(builder) {
/**
* @see [MockMultipartHttpServletRequestBuilder.file]

View File

@@ -26,7 +26,7 @@ import java.io.Writer
* @author Sebastien Deleuze
* @since 5.2
*/
class MockMvcResultHandlersDsl(private val actions: ResultActions) {
class MockMvcResultHandlersDsl internal constructor (private val actions: ResultActions) {
/**
* @see MockMvcResultHandlers.print

View File

@@ -25,7 +25,7 @@ import org.springframework.test.web.servlet.result.*
* @author Sebastien Deleuze
* @since 5.2
*/
class MockMvcResultMatchersDsl(private val actions: ResultActions) {
class MockMvcResultMatchersDsl internal constructor (private val actions: ResultActions) {
/**
* @see MockMvcResultMatchers.request

View File

@@ -8,7 +8,7 @@ import org.springframework.test.web.servlet.request.MockMvcRequestBuilders
* @author Sebastien Deleuze
* @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.