From 26c9d95cfa0d9f08412feb24fcfec413c4fec251 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Sun, 27 Mar 2016 17:37:48 +0200 Subject: [PATCH] Return a fixed linenumber/column until we figure out a reliable way to determine the position of the node in the source code --- .../sourceforge/pmd/lang/apex/ast/AbstractApexNode.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/ast/AbstractApexNode.java b/pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/ast/AbstractApexNode.java index ac69e56e69..e119d3bcfb 100644 --- a/pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/ast/AbstractApexNode.java +++ b/pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/ast/AbstractApexNode.java @@ -49,7 +49,9 @@ public abstract class AbstractApexNode extends AbstractNode i // some nodes are artificially generated by the compiler and are not // really existing in source code } - return super.getBeginLine(); + + // TODO: figure out the correct line + return 1; } @Override @@ -70,7 +72,8 @@ public abstract class AbstractApexNode extends AbstractNode i // really existing in source code } - return super.getBeginColumn(); + // TODO: figure out the correct column + return 1; } @Override