fixed compilation errors
authorSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Tue, 12 Jul 2016 13:00:44 +0000 (16:00 +0300)
committerSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Tue, 12 Jul 2016 13:00:44 +0000 (16:00 +0300)
meviz.iml
src/main/java/eu/svjatoslav/meviz/textsplitter/Main.java
src/main/java/eu/svjatoslav/meviz/texttruncate/Main.java

index 20eab94..8cdc9f9 100644 (file)
--- a/meviz.iml
+++ b/meviz.iml
@@ -6,7 +6,6 @@
     <content url="file://$MODULE_DIR$">
       <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
       <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
     <content url="file://$MODULE_DIR$">
       <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
       <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
-      <excludeFolder url="file://$MODULE_DIR$/.idea" />
       <excludeFolder url="file://$MODULE_DIR$/target" />
     </content>
     <orderEntry type="inheritedJdk" />
       <excludeFolder url="file://$MODULE_DIR$/target" />
     </content>
     <orderEntry type="inheritedJdk" />
index 5b0e3c9..aaaecde 100755 (executable)
@@ -102,7 +102,7 @@ public class Main implements Module {
                             pattern))
                         bufferedWriter.write("\n");
 
                             pattern))
                         bufferedWriter.write("\n");
 
-                final String character = cuttableString.cutLeft(1);
+                final String character = cuttableString.trimLeft(1);
                 bufferedWriter.append(character);
             }
 
                 bufferedWriter.append(character);
             }
 
index 11e1098..4dfd1af 100755 (executable)
@@ -106,7 +106,7 @@ public class Main implements Module {
 
                 final String2 cuttableString = new String2(readLine);
 
 
                 final String2 cuttableString = new String2(readLine);
 
-                bufferedWriter.write(cuttableString.cutLeft(targetLineLength)
+                bufferedWriter.write(cuttableString.trimLeft(targetLineLength)
                         + "\n");
 
                 int splittedLinesCount = 0;
                         + "\n");
 
                 int splittedLinesCount = 0;
@@ -117,7 +117,7 @@ public class Main implements Module {
                         break;
 
                     bufferedWriter.write(splitLinePrefix
                         break;
 
                     bufferedWriter.write(splitLinePrefix
-                            + cuttableString.cutLeft(targetLineLength
+                            + cuttableString.trimLeft(targetLineLength
                             - splitLinePrefix.length()) + "\n");
                 }
             }
                             - splitLinePrefix.length()) + "\n");
                 }
             }