Remove redundant class members, turn others to local variables. (sonar)
[controller.git] / opendaylight / sal / api / src / main / java / org / opendaylight / controller / sal / utils / WriteToFile.java
index b4624323ae88a38539614dab6d16733fa3b78a83..2717c942287ff42932159d95c2b0957a9c4dfb67 100644 (file)
@@ -26,10 +26,8 @@ public class WriteToFile {
     .getLogger(WriteToFile.class);
     private FileWriter fstream;
     private BufferedWriter bufferOut;
-    private String fileName;
 
-    public WriteToFile(String name) throws IOException {
-        fileName = name;
+    public WriteToFile(String fileName) throws IOException {
         fstream = new FileWriter(fileName);
         bufferOut = new BufferedWriter(fstream);
     }