Skip to content

Commit 0a55ce0

Browse files
committed
Remove unnecessary fields
1 parent fa6398f commit 0a55ce0

File tree

4 files changed

+0
-20
lines changed

4 files changed

+0
-20
lines changed

src/main/kotlin/org/t246osslab/easybuggy4kt/troubles/ForwardLoopController.kt

-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package org.t246osslab.easybuggy4kt.troubles
22

3-
import org.springframework.beans.factory.annotation.Autowired
4-
import org.springframework.context.MessageSource
53
import org.springframework.stereotype.Controller
64
import org.springframework.web.bind.annotation.RequestMapping
75
import java.io.IOException
@@ -10,9 +8,6 @@ import javax.servlet.ServletException
108
@Controller
119
class ForwardLoopController {
1210

13-
@Autowired
14-
internal var msg: MessageSource? = null
15-
1611
@RequestMapping(value = "/forwardloop")
1712
@Throws(IOException::class, ServletException::class)
1813
fun process(): String {

src/main/kotlin/org/t246osslab/easybuggy4kt/troubles/InfiniteLoopController.kt

-5
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
package org.t246osslab.easybuggy4kt.troubles
22

33
import org.slf4j.LoggerFactory
4-
import org.springframework.beans.factory.annotation.Autowired
5-
import org.springframework.context.MessageSource
64
import org.springframework.stereotype.Controller
75
import org.springframework.web.bind.annotation.RequestMapping
86
import javax.servlet.http.HttpServletRequest
97

108
@Controller
119
class InfiniteLoopController {
1210

13-
@Autowired
14-
internal var msg: MessageSource? = null
15-
1611
@RequestMapping(value = "/infiniteloop")
1712
fun process(req: HttpServletRequest) {
1813
while (true) {

src/main/kotlin/org/t246osslab/easybuggy4kt/troubles/JVMCrashByEAVController.kt

-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package org.t246osslab.easybuggy4kt.troubles
22

3-
import org.springframework.beans.factory.annotation.Autowired
4-
import org.springframework.context.MessageSource
53
import org.springframework.stereotype.Controller
64
import org.springframework.web.bind.annotation.RequestMapping
75
import sun.misc.Unsafe
@@ -11,9 +9,6 @@ import javax.servlet.http.HttpServletResponse
119
@Controller
1210
class JVMCrashByEAVController {
1311

14-
@Autowired
15-
internal var msg: MessageSource? = null
16-
1712
private val unsafe: Unsafe
1813
@Throws(NoSuchFieldException::class, IllegalAccessException::class)
1914
get() {

src/main/kotlin/org/t246osslab/easybuggy4kt/troubles/RedirectLoopController.kt

-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
package org.t246osslab.easybuggy4kt.troubles
22

3-
import org.springframework.beans.factory.annotation.Autowired
4-
import org.springframework.context.MessageSource
53
import org.springframework.stereotype.Controller
64
import org.springframework.web.bind.annotation.RequestMapping
75
import java.io.IOException
86

97
@Controller
108
class RedirectLoopController {
119

12-
@Autowired
13-
internal var msg: MessageSource? = null
14-
1510
@RequestMapping(value = "/redirectloop")
1611
@Throws(IOException::class)
1712
fun process(): String {

0 commit comments

Comments
 (0)