Explorar el Código

Remove null values for rows.

tags/v1.0^2
Benjamin Attal hace 10 años
padre
commit
335027bf45
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  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 Ver fichero

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

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

if (statements.size() > 0) {
@@ -110,7 +110,7 @@ public class JavaParser extends Parser {
int sl = this.root.getLineNumber(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);
this._cache.push(data);
return true;
@@ -140,7 +140,7 @@ public class JavaParser extends Parser {
int sl = this.root.getLineNumber(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);
return true;
}
@@ -161,7 +161,7 @@ public class JavaParser extends Parser {
int sl = this.root.getLineNumber(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);
return true;
}


Cargando…
Cancelar
Guardar