File tree 1 file changed +4
-4
lines changed
src/main/groovy/org/codehaus/mojo/spotbugs 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ abstract class BaseViolationCheckMojo extends AbstractMojo {
125
125
126
126
Node xml = new XmlParser (). parse(outputFile)
127
127
128
- def bugs = xml.BugInstance
128
+ NodeList bugs = xml.BugInstance
129
129
int bugCount = bugs. size()
130
130
log. info(" BugInstance size is ${ bugCount} " )
131
131
@@ -151,7 +151,7 @@ abstract class BaseViolationCheckMojo extends AbstractMojo {
151
151
152
152
int bugCountAboveThreshold = 0
153
153
for (i in 0 .. bugCount-1 ) {
154
- def bug = bugs[i]
154
+ Node bug = bugs[i]
155
155
int priorityNum = bug. ' @priority' as Integer
156
156
String priorityName = SpotBugsInfo . spotbugsPriority[priorityNum]
157
157
String logMsg = priorityName + ' : ' + bug.LongMessage . text() + SpotBugsInfo . BLANK +
@@ -195,9 +195,9 @@ abstract class BaseViolationCheckMojo extends AbstractMojo {
195
195
! sourceFiles. isEmpty()
196
196
}
197
197
198
- private void printBugs (int total , def bugs ) {
198
+ private void printBugs (int total , NodeList bugs ) {
199
199
for (i in 0 .. total - 1 ) {
200
- def bug = bugs[i]
200
+ Node bug = bugs[i]
201
201
log. error(bug.LongMessage . text() + SpotBugsInfo . BLANK + bug.SourceLine . ' @classname' + SpotBugsInfo . BLANK +
202
202
bug.SourceLine.Message . text() + SpotBugsInfo . BLANK + bug. ' @type' )
203
203
}
You can’t perform that action at this time.
0 commit comments