small cleanups
[meviz.git] / src / main / java / eu / svjatoslav / meviz / replace / Main.java
index 3f42a9a..884ac0b 100755 (executable)
@@ -1,12 +1,9 @@
 /*
- * Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
- * 
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of version 2 of the GNU General Public License
- * as published by the Free Software Foundation.
+ * Meviz - Various tools collection to work with multimedia. Author: Svjatoslav Agejenko.
+ * This project is released under Creative Commons Zero (CC0) license.
  */
 
+
 package eu.svjatoslav.meviz.replace;
 
 import eu.svjatoslav.meviz.Module;
@@ -15,13 +12,13 @@ import java.io.*;
 
 public class Main implements Module {
 
-    CommandlineHandler commandlineHandler = new CommandlineHandler();
+    private final CommandlineHandler commandlineHandler = new CommandlineHandler();
 
-    CommandlineOptions options;
+    private CommandlineOptions options;
 
     @Override
     public String getDescription() {
-        return "Replace one string to another string in all occurrances and all files recursively.";
+        return "Replace one string to another string in all occurrences and all files recursively.";
     }
 
     @Override
@@ -29,7 +26,7 @@ public class Main implements Module {
         return "replace";
     }
 
-    public void processDirectory(final File directory) {
+    private void processDirectory(final File directory) {
 
         for (final File file : directory.listFiles())
             if (file.isDirectory()) {
@@ -47,7 +44,7 @@ public class Main implements Module {
 
     }
 
-    public void processFile(final File file) throws IOException {
+    private void processFile(final File file) throws IOException {
 
         final FileReader fileReader = new FileReader(file);
         final BufferedReader bufferedReader = new BufferedReader(fileReader);