Skip to content
Search

Scala:Troubleshooting

lastmod 2020-10-28created 2020-10-281 edits

How to solve Scala problems.

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)

There is an unnecessary enclosing block.

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

In code like the above, the { and } can be removed as below.

log.debug(s"$loggingQueueSize")

See also

author Zer0 sitemap