jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1332257 - in /jmeter/trunk/src/protocol/native/org/apache/jmeter/protocol/system: NativeCommand.java StreamGobbler.java
Date Mon, 30 Apr 2012 15:42:59 GMT
Author: sebb
Date: Mon Apr 30 15:42:58 2012
New Revision: 1332257

URL: http://svn.apache.org/viewvc?rev=1332257&view=rev
Log:
Make immutable private variables final

Modified:
    jmeter/trunk/src/protocol/native/org/apache/jmeter/protocol/system/NativeCommand.java
    jmeter/trunk/src/protocol/native/org/apache/jmeter/protocol/system/StreamGobbler.java

Modified: jmeter/trunk/src/protocol/native/org/apache/jmeter/protocol/system/NativeCommand.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/native/org/apache/jmeter/protocol/system/NativeCommand.java?rev=1332257&r1=1332256&r2=1332257&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/native/org/apache/jmeter/protocol/system/NativeCommand.java
(original)
+++ jmeter/trunk/src/protocol/native/org/apache/jmeter/protocol/system/NativeCommand.java
Mon Apr 30 15:42:58 2012
@@ -28,7 +28,7 @@ import java.util.List;
 public class NativeCommand {
 
 	private StreamGobbler outputGobbler;
-    private File directory;
+    private final File directory;
 
 	/**
 	 * 

Modified: jmeter/trunk/src/protocol/native/org/apache/jmeter/protocol/system/StreamGobbler.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/native/org/apache/jmeter/protocol/system/StreamGobbler.java?rev=1332257&r1=1332256&r2=1332257&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/native/org/apache/jmeter/protocol/system/StreamGobbler.java
(original)
+++ jmeter/trunk/src/protocol/native/org/apache/jmeter/protocol/system/StreamGobbler.java
Mon Apr 30 15:42:58 2012
@@ -27,8 +27,8 @@ import java.io.InputStreamReader;
  * Thread that eats Output and Error Stream to avoid Deadlock on Windows Machines
  */
 class StreamGobbler extends Thread {
-	private InputStream is;
-	private StringBuilder buffer = new StringBuilder();
+	private final InputStream is;
+	private final StringBuilder buffer = new StringBuilder();
 	/**
 	 * @param is {@link InputStream}
 	 */



Mime
View raw message