Skip to content

Commit

Permalink
Merge pull request #747 from hazendaz/thorough-cleanup
Browse files Browse the repository at this point in the history
More 'def' to proper naming
  • Loading branch information
hazendaz authored Dec 31, 2023
2 parents 180cea6 + 16a58ca commit 3804fa1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/it/multi/verify.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ xhtmlParser.setFeature("http://apache.org/xml/features/disallow-doctype-decl", f
xhtmlParser.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false)
GPathResult path = xhtmlParser.parse(spotbugsHtml)

def spotbugsErrors = path.body.'**'.find {main -> main.@id == 'bodyColumn'}.section[1].table.tr[1].td[1].toInteger()
int spotbugsErrors = path.body.'**'.find {main -> main.@id == 'bodyColumn'}.section[1].table.tr[1].td[1].toInteger()
println "Error Count is ${spotbugsErrors}"

println '******************'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ abstract class BaseViolationCheckMojo extends AbstractMojo {
for (i in 0..bugCount-1) {
def bug = bugs[i]
int priorityNum = bug.'@priority' as Integer
def priorityName = SpotBugsInfo.spotbugsPriority[priorityNum]
String priorityName = SpotBugsInfo.spotbugsPriority[priorityNum]
String logMsg = priorityName + ': ' + bug.LongMessage.text() + SpotBugsInfo.BLANK + bug.SourceLine.'@classname' + SpotBugsInfo.BLANK +
bug.SourceLine.Message.text() + SpotBugsInfo.BLANK + bug.'@type'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,5 @@ interface SpotBugsInfo {

Map<String, String> spotbugsThresholds = [High: "high", Exp: "experimental", Low: "low", Medium: "medium", Default: "medium"]

def spotbugsPriority = ["unknown", "High", "Medium", "Low"]
List<String> spotbugsPriority = ["unknown", "High", "Medium", "Low"]
}

0 comments on commit 3804fa1

Please sign in to comment.