com.autonomousapps.model.Warning.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dependency-analysis-gradle-plugin Show documentation
Show all versions of dependency-analysis-gradle-plugin Show documentation
Analyzes dependency usage in Android and JVM projects
package com.autonomousapps.model
import com.autonomousapps.internal.utils.LexicographicIterableComparator
import com.squareup.moshi.JsonClass
/** Warnings about the project for which the plugin cannot yet make universally actionable advice. */
@JsonClass(generateAdapter = false)
data class Warning(
val duplicateClasses: Set,
) : Comparable {
internal companion object {
@JvmStatic
fun empty() = Warning(emptySet())
}
override fun compareTo(other: Warning): Int {
return LexicographicIterableComparator()
.compare(duplicateClasses, other.duplicateClasses)
}
fun isEmpty(): Boolean = duplicateClasses.isEmpty()
fun isNotEmpty(): Boolean = !isEmpty()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy