Commit 317e26d2 authored by deregges's avatar deregges

Added explanations for suppressions

parent e51ff893
......@@ -9,7 +9,7 @@ import android.view.SurfaceView
* A SurfaceView which delegates its draw method to a constructor parameter
*/
@SuppressLint("ViewConstructor")
@SuppressLint("ViewConstructor" /* Not being used by tools */)
class DelegatingSurfaceView(ctx: Context, private val pDraw: (Canvas) -> Unit) : SurfaceView(ctx) {
override fun draw(canvas: Canvas) {
super.draw(canvas)
......
......@@ -7,7 +7,7 @@ import com.crashlytics.android.Crashlytics
* android log wrapper, providing default tag and Crashlytics log for logs on error level
*/
@Suppress("unused", "MemberVisibilityCanBePrivate")
@Suppress("unused", "MemberVisibilityCanBePrivate" /* util package */)
object Log {
private const val TAG = "pathchaser"
......
......@@ -12,7 +12,7 @@ abstract class Collectible(pm: PathManager, p: PointF) : Sprite(pm) {
override fun getPaint(): Paint = Paint().apply { color = Color.BLACK }
init {
@Suppress("LeakingThis")
@Suppress("LeakingThis" /* addCircle already works at this stage */)
addCircle(p.x, p.y, Constants.playerRadius / 2, Direction.CW)
}
......
......@@ -12,6 +12,7 @@ open class Enemy(var p: PointF, pm:PathManager) : Sprite(pm) {
override fun getPaint() = Paint().apply { color = Color.MAGENTA }
init{
@Suppress("LeakingThis" /* addCircle already works at this stage */)
addCircle(p.x,p.y, Constants.playerRadius/2,Direction.CW)
}
......
@file:Suppress("unused")
@file:Suppress("unused" /* util package */)
package io.ender.pathchaser.util
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment