File tree 1 file changed +3
-3
lines changed
src/main/groovy/org/codehaus/mojo/spotbugs
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2005-2024 the original author or authors.
2
+ * Copyright 2005-2025 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -383,7 +383,7 @@ abstract class BaseViolationCheckMojo extends AbstractMojo {
383
383
384
384
if (outputFile. exists()) {
385
385
386
- def xml = new XmlParser (). parse(outputFile)
386
+ Node xml = new XmlParser (). parse(outputFile)
387
387
388
388
def bugs = xml.BugInstance
389
389
int bugCount = bugs. size()
@@ -452,7 +452,7 @@ abstract class BaseViolationCheckMojo extends AbstractMojo {
452
452
! sourceFiles. isEmpty()
453
453
}
454
454
455
- private void printBugs (total , bugs ) {
455
+ private void printBugs (int total , def bugs ) {
456
456
for (i in 0 .. total - 1 ) {
457
457
def bug = bugs[i]
458
458
log. error(bug.LongMessage . text() + SpotBugsInfo . BLANK + bug.SourceLine . ' @classname' + SpotBugsInfo . BLANK + bug.SourceLine.Message . text() + SpotBugsInfo . BLANK + bug. ' @type' )
You can’t perform that action at this time.
0 commit comments