File tree 1 file changed +2
-1
lines changed
src/main/java/org/apache/maven/plugins/checkstyle
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 27
27
import java .io .IOException ;
28
28
import java .io .OutputStream ;
29
29
import java .io .Reader ;
30
+ import java .nio .file .Files ;
30
31
import java .util .ArrayList ;
31
32
import java .util .Collections ;
32
33
import java .util .List ;
@@ -855,7 +856,7 @@ else if ( "plain".equals( outputFileFormat ) )
855
856
{
856
857
// Write a plain output file to the standard output file,
857
858
// and write an XML output file to the temp directory that can be used to count violations
858
- outputXmlFile = File .createTempFile ( "checkstyle-result" , ".xml" );
859
+ outputXmlFile = Files .createTempFile ( "checkstyle-result" , ".xml" ). toFile ( );
859
860
outputXmlFile .deleteOnExit ();
860
861
OutputStream xmlOut = getOutputStream ( outputXmlFile );
861
862
CompositeAuditListener compoundListener = new CompositeAuditListener ();
You can’t perform that action at this time.
0 commit comments