In file src/main/kotlin/My.kt:8:12:
data class My private constructor (val x: Double,val y: Int,val z: String)
Class "My" is never used
In file src/main/kotlin/My.kt:8:15:
data class Myprivate constructor (val x: Double,val y: Int,val z: String)
Private data class constructor is exposed via the generated 'copy' method.
In file src/main/kotlin/My.kt:10:5:
fun canBeVal (): Int {var x = 1var y = x * 2 ...
Function "canBeVal" is never used
In file src/main/kotlin/My.kt:11:5:
{
var x = 1
var y = x * 2
var z = "98" + y
...
Variable is never modified and can be declared immutable using 'val'
In file src/main/kotlin/My.kt:12:5:
{
var x = 1
var y = x * 2
var z = "98" + y
return z.toInt()
...
Variable is never modified and can be declared immutable using 'val'
In file src/main/kotlin/My.kt:13:5:
...var x = 1var y = x * 2z = "98" + y var return z.toInt() }
Variable is never modified and can be declared immutable using 'val'
In file src/main/kotlin/My.kt:17:5:
fun foldToElvis (arg: Int?): Int {val n = argif (n ==null )return -1 ...
Function "foldToElvis" is never used
In file src/main/kotlin/My.kt:19:5:
{
val n = arg
if (n == null ) return -1
return n
}
Replace 'if' with elvis operator
In file src/main/kotlin/My.kt:23:7:
class Unused {val s: Stringget () = ""fun bar(s: String) = s ...
Class "Unused" is never used
In file src/main/kotlin/My.kt:24:9:
{
val s : String get () = ""
fun bar(s: String) = s
}
Property "s" is never used
In file src/main/kotlin/My.kt:25:9:
{
val s: String get () = ""
fun bar (s: String) = s
}
Function "bar" is never used