Commits

gigadot  committed b4c42c3

made dos2unix static

  • Participants
  • Parent commits 033b2dd

Comments (0)

Files changed (1)

File gigatools-extra/src/main/java/gigatools/extra/io/FileTools.java

         return deleted;
     }
 
-    public void dos2unix(File input, File output) throws IOException {
+    public static void dos2unix(File input, File output) throws IOException {
         String str = FileUtils.readFileToString(input, "UTF-8");
         FileUtils.writeStringToFile(output, str.replaceAll("\r", ""), "UTF-8");
     }
 
-    public void dos2unix(File input) throws IOException {
+    public static void dos2unix(File input) throws IOException {
         dos2unix(input, input);
     }
 }