Skip to content

Scala:Troubleshooting

Scala 문제 해결 방법.

The enclosing block is redundant

The enclosing block is redundant
Inspection info: This inspection reports redundant enclosing blocks around expressions (including ones within interpolated strings)

불필요한, 둘러쌓은(enclosing) 블록이 있다.

log.debug(s"${loggingQueueSize}")

위와 같은 코드를 아래와 같이 {} 를 제거할 수 있다.

log.debug(s"$loggingQueueSize")

See also