]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
(refs #7325) Fixed incorrect call of write in FilterCRWriter 45/645/1
authorHannu Niemistö <hannu.niemisto@semantum.fi>
Wed, 21 Jun 2017 12:19:19 +0000 (15:19 +0300)
committerHannu Niemistö <hannu.niemisto@semantum.fi>
Wed, 21 Jun 2017 12:19:19 +0000 (15:19 +0300)
Change-Id: Ifecf88cd5239301b25a19846fec8fa39f6821857

bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/resourceFiles/FilterCRWriter.java

index 2e966754d977cf9c1ce6c54d0eb6669a527df8d0..2d533f163947f203dcdab6636360eb318c51db83 100644 (file)
@@ -22,12 +22,12 @@ public class FilterCRWriter extends FilterWriter {
         for(int i=0;i<len;++i) {
             if(cbuf[off+i] == '\r') {
                 if(i > begin)
-                    write(cbuf, off+begin, i-begin);
+                    out.write(cbuf, off+begin, i-begin);
                 begin = i+1;
             }
         }
         if(len > begin)
-            write(cbuf, off+begin, len-begin);
+            out.write(cbuf, off+begin, len-begin);
     }
     
     @Override
@@ -36,12 +36,12 @@ public class FilterCRWriter extends FilterWriter {
         for(int i=0;i<len;++i) {
             if(str.charAt(off+i) == '\r') {
                 if(i > begin)
-                    write(str, off+begin, i-begin);
+                    out.write(str, off+begin, i-begin);
                 begin = i+1;
             }
         }
         if(len > begin)
-            write(str, off+begin, len-begin);
+            out.write(str, off+begin, len-begin);
     }
 
 }