Fixed some errors in line counting

This commit is contained in:
Stiver
2014-10-07 07:31:22 +02:00
parent bef17b44fc
commit 9f9da912f6
12 changed files with 77 additions and 52 deletions

View File

@@ -268,7 +268,7 @@ public class ClassesProcessor {
int index = cl.qualifiedName.lastIndexOf("/");
if (index >= 0) {
total_offset_lines++;
total_offset_lines+=2;
String packageName = cl.qualifiedName.substring(0, index).replace('/', '.');
buffer.append("package ");
@@ -283,6 +283,7 @@ public class ClassesProcessor {
buffer.append(lineSeparator);
total_offset_lines += import_lines_written + 1;
}
//buffer.append(lineSeparator);
buffer.append(classBuffer);