Author: pmouawad Date: Wed Mar 8 21:07:32 2017 New Revision: 1786078 URL: http://svn.apache.org/viewvc?rev=1786078&view=rev Log: Fix sonar error
Modified: jmeter/trunk/src/core/org/apache/jmeter/reporters/ResultCollector.java Modified: jmeter/trunk/src/core/org/apache/jmeter/reporters/ResultCollector.java URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/reporters/ResultCollector.java?rev=1786078&r1=1786077&r2=1786078&view=diff ============================================================================== --- jmeter/trunk/src/core/org/apache/jmeter/reporters/ResultCollector.java (original) +++ jmeter/trunk/src/core/org/apache/jmeter/reporters/ResultCollector.java Wed Mar 8 21:07:32 2017 @@ -443,15 +443,15 @@ public class ResultCollector extends Abs } } - private static PrintWriter getFileWriter(String filename, SampleSaveConfiguration saveConfig) + private static PrintWriter getFileWriter(final String pFilename, SampleSaveConfiguration saveConfig) throws IOException { - if (filename == null || filename.length() == 0) { + if (pFilename == null || pFilename.length() == 0) { return null; } if(log.isDebugEnabled()) { - log.debug("Getting file: {} in thread {}", filename, Thread.currentThread().getName()); + log.debug("Getting file: {} in thread {}", pFilename, Thread.currentThread().getName()); } - filename = FileServer.resolveBaseRelativeName(filename); + String filename = FileServer.resolveBaseRelativeName(pFilename); filename = new File(filename).getCanonicalPath(); // try to ensure uniqueness (Bug 60822) FileEntry fe = files.get(filename); PrintWriter writer = null;