Skip to content

Commit

Permalink
Kotlin cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler committed Dec 3, 2023
1 parent 08cfe48 commit dbc138c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ interface SpotBugsExtension {
/**
* Property to set the directory to generate report files. Default is `"$buildDir/reports/spotbugs"`.
*
* Note that each [SpotBugsTask] creates own sub-directory in this directory.
* Note that each [SpotBugsTask] creates own subdirectory in this directory.
*/
val reportsDir: DirectoryProperty

Expand Down
1 change: 1 addition & 0 deletions src/main/kotlin/com/github/spotbugs/snom/SpotBugsReport.kt
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ abstract class SpotBugsReport
}
}

@Suppress("MemberVisibilityCanBePrivate")
fun configure(action: Action<in Report>): Report {
action.execute(this)
return this
Expand Down
4 changes: 2 additions & 2 deletions src/main/kotlin/com/github/spotbugs/snom/SpotBugsTask.kt
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,8 @@ abstract class SpotBugsTask : DefaultTask(), VerificationTask {
else -> throw InvalidUserDataException("$name is invalid as the report name")
}
}
setDescription("Run SpotBugs analysis.")
setGroup(JavaBasePlugin.VERIFICATION_GROUP)
description = "Run SpotBugs analysis."
group = JavaBasePlugin.VERIFICATION_GROUP
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import java.io.OutputStream
internal class OutputScanner(out: OutputStream) : FilterOutputStream(out) {
private val builder = ByteArrayOutputStream()
var isFailedToReport = false
get() = field

override fun write(
b: ByteArray,
Expand Down

0 comments on commit dbc138c

Please sign in to comment.