Skip to content

Commit 55a5de3

Browse files
authored
Merge pull request #1026 from hazendaz/master
Move 'def' to 'NodeChildren'
2 parents 7dfbfa4 + 577d7f2 commit 55a5de3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/groovy/org/codehaus/mojo/spotbugs/SpotBugsMojo.groovy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import groovy.json.JsonBuilder
2020
import groovy.json.JsonSlurper
2121
import groovy.xml.XmlSlurper
2222
import groovy.xml.slurpersupport.GPathResult
23+
import groovy.xml.slurpersupport.NodeChildren
2324
import groovy.xml.StreamingMarkupBuilder
2425

2526
import java.nio.charset.Charset
@@ -1125,7 +1126,7 @@ class SpotBugsMojo extends AbstractMavenReport implements SpotBugsPluginsTrait {
11251126
errorCount = allNodes.findAll { it.name() == 'Error' }.size()
11261127
log.debug("Error size is ${errorCount}")
11271128

1128-
def xmlProject = path.Project
1129+
NodeChildren xmlProject = path.Project
11291130

11301131
session.getCurrentProject().compileSourceRoots.each() { compileSourceRoot ->
11311132
xmlProject.appendNode { SrcDir(compileSourceRoot) }

0 commit comments

Comments
 (0)