@@ -780,7 +780,7 @@ class SpotBugsMojo extends AbstractMavenReport implements SpotBugsPluginsTrait {
780
780
File auxClasspathFile = createSpotbugsAuxClasspathFile()
781
781
782
782
if (auxClasspathFile) {
783
- log. debug(" Adding 'auxclasspathFromFile'" )
783
+ log. debug(" Adding 'auxclasspathFromFile'" )
784
784
args << ' -auxclasspathFromFile'
785
785
args << auxClasspathFile. getAbsolutePath()
786
786
}
@@ -836,9 +836,9 @@ class SpotBugsMojo extends AbstractMavenReport implements SpotBugsPluginsTrait {
836
836
log. debug(" Adding 'onlyAnalyze'" )
837
837
args << ' -onlyAnalyze'
838
838
args << Arrays . stream(onlyAnalyze. split(SpotBugsInfo . COMMA )). map {
839
- it. startsWith(" file:" ) ? Files . lines(resourceHelper. getResourceFile(it. substring(5 )). toPath())
839
+ it. startsWith(' file:' ) ? Files . lines(resourceHelper. getResourceFile(it. substring(5 )). toPath())
840
840
.collect(Collectors . joining(SpotBugsInfo . COMMA )) : it
841
- }. collect(Collectors . joining(" , " ))
841
+ }. collect(Collectors . joining(' , ' ))
842
842
}
843
843
844
844
if (includeFilterFile) {
@@ -902,7 +902,7 @@ class SpotBugsMojo extends AbstractMavenReport implements SpotBugsPluginsTrait {
902
902
if (addSourceDirs) {
903
903
log. debug(' Adding Source directories (To process source exclusions)' )
904
904
args << ' -sourcepath'
905
- String sourceRoots = " "
905
+ String sourceRoots = ' '
906
906
session. getCurrentProject(). compileSourceRoots. each() { sourceRoots + = it + File . pathSeparator }
907
907
if (includeTests) {
908
908
session. getCurrentProject(). testCompileSourceRoots. each() { sourceRoots + it + File . pathSeparator }
@@ -1015,7 +1015,7 @@ class SpotBugsMojo extends AbstractMavenReport implements SpotBugsPluginsTrait {
1015
1015
1016
1016
resourceManager. addSearchPath(FileResourceLoader . ID , session. getCurrentProject(). getFile()
1017
1017
.getParentFile(). getAbsolutePath())
1018
- resourceManager. addSearchPath(SpotBugsInfo.URL , " " )
1018
+ resourceManager. addSearchPath(SpotBugsInfo.URL , ' ' )
1019
1019
1020
1020
resourceManager. setOutputDirectory(new File (session. getCurrentProject(). getBuild(). directory))
1021
1021
@@ -1051,7 +1051,7 @@ class SpotBugsMojo extends AbstractMavenReport implements SpotBugsPluginsTrait {
1051
1051
}
1052
1052
1053
1053
ant. java(classname : ' edu.umd.cs.findbugs.FindBugs2' , fork : " ${ fork} " , failonerror : ' true' ,
1054
- clonevm : ' false' , timeout : " ${ timeout} " , maxmemory : " ${ maxHeap} m" ) {
1054
+ clonevm : ' false' , timeout : timeout, maxmemory : " ${ maxHeap} m" ) {
1055
1055
1056
1056
log. debug(' File Encoding is ' + effectiveEncoding. name())
1057
1057
@@ -1146,7 +1146,7 @@ class SpotBugsMojo extends AbstractMavenReport implements SpotBugsPluginsTrait {
1146
1146
1147
1147
BufferedWriter writer = Files . newBufferedWriter(outputFile. toPath(), effectiveEncoding)
1148
1148
1149
- if (effectiveEncoding. name(). equalsIgnoreCase(" Cp1252" )) {
1149
+ if (effectiveEncoding. name(). equalsIgnoreCase(' Cp1252' )) {
1150
1150
writer. write ' <?xml version="1.0" encoding="windows-1252"?>'
1151
1151
} else {
1152
1152
writer. write ' <?xml version="1.0" encoding="' +
@@ -1190,7 +1190,7 @@ class SpotBugsMojo extends AbstractMavenReport implements SpotBugsPluginsTrait {
1190
1190
1191
1191
if (newFileName != null ) {
1192
1192
if (log. isDebugEnabled()) {
1193
- log. info(" $originalFullPath modified to $newFileName " )
1193
+ log. info(" ${ originalFullPath} modified to ${ newFileName} " )
1194
1194
}
1195
1195
loc. physicalLocation. artifactLocation. uri = newFileName
1196
1196
} else {
0 commit comments