Browse Source

Remove null values for rows.

tags/v1.0^2
Benjamin Attal 10 years ago
parent
commit
335027bf45
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      parsers/java/src/main/java/com/bitshift/parsing/parsers/JavaParser.java

+ 4
- 4
parsers/java/src/main/java/com/bitshift/parsing/parsers/JavaParser.java View File

@@ -80,7 +80,7 @@ public class JavaParser extends Parser {


int sl = this.root.getLineNumber(node.getStartPosition()); int sl = this.root.getLineNumber(node.getStartPosition());
int sc = this.root.getColumnNumber(node.getStartPosition()); int sc = this.root.getColumnNumber(node.getStartPosition());
Integer el = -1;
Integer el = sl;
Integer ec = -1; Integer ec = -1;


if (statements.size() > 0) { if (statements.size() > 0) {
@@ -110,7 +110,7 @@ public class JavaParser extends Parser {
int sl = this.root.getLineNumber(node.getStartPosition()); int sl = this.root.getLineNumber(node.getStartPosition());
int sc = this.root.getColumnNumber(node.getStartPosition()); int sc = this.root.getColumnNumber(node.getStartPosition());


data.put("coord", Symbols.createCoord(sl, sc, -1, -1));
data.put("coord", Symbols.createCoord(sl, sc, sl, -1));
data.put("name", name); data.put("name", name);
this._cache.push(data); this._cache.push(data);
return true; return true;
@@ -140,7 +140,7 @@ public class JavaParser extends Parser {
int sl = this.root.getLineNumber(node.getStartPosition()); int sl = this.root.getLineNumber(node.getStartPosition());
int sc = this.root.getColumnNumber(node.getStartPosition()); int sc = this.root.getColumnNumber(node.getStartPosition());


data.put("coord", Symbols.createCoord(sl, sc, -1, -1));
data.put("coord", Symbols.createCoord(sl, sc, sl, -1));
this._cache.push(data); this._cache.push(data);
return true; return true;
} }
@@ -161,7 +161,7 @@ public class JavaParser extends Parser {
int sl = this.root.getLineNumber(node.getStartPosition()); int sl = this.root.getLineNumber(node.getStartPosition());
int sc = this.root.getColumnNumber(node.getStartPosition()); int sc = this.root.getColumnNumber(node.getStartPosition());


data.put("coord", Symbols.createCoord(sl, sc, -1, -1));
data.put("coord", Symbols.createCoord(sl, sc, sl, -1));
this._cache.push(data); this._cache.push(data);
return true; return true;
} }


Loading…
Cancel
Save