Removed getNode usage

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4431 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Jiger Patel
2006-06-21 07:24:48 +00:00
parent 4d3a041215
commit 73d638b45d
2 changed files with 4 additions and 4 deletions

View File

@@ -5,11 +5,11 @@
<property name="src" value="src/"/>
<property name="lib" value="lib"/>
<property name="build" value="build"/>
<property name="pmdjar" value="pmd-3.5.jar"/>
<property name="pmdjar" value="pmd-3.7.jar"/>
<property name="pluginversion" value="2.6"/>
<property name="jedit.install.dir" value="../.."/>
<property name="jedit.jars.dir" value="${jedit.install.dir}\jars"/>
<property name="install.dir" value=".."/>
<property name="install.dir" value="${jedit.jars.dir}"/>
<path id="project.class.path">
<pathelement location="${jedit.install.dir}/jedit.jar"/>

View File

@@ -239,7 +239,7 @@ public class PMDJEditPlugin extends EBPlugin
for (Iterator i = ctx.getReport().iterator(); i.hasNext();)
{
RuleViolation rv = (RuleViolation)i.next();
errorSource.addError(new DefaultErrorSource.DefaultError(errorSource, ErrorSource.WARNING, path, rv.getNode().getBeginLine()-1,0,0,rv.getDescription()));
errorSource.addError(new DefaultErrorSource.DefaultError(errorSource, ErrorSource.WARNING, path, rv.getBeginLine()-1,0,0,rv.getDescription()));
}
registerErrorSource();
@@ -331,7 +331,7 @@ public class PMDJEditPlugin extends EBPlugin
{
foundProblems = true;
RuleViolation rv = (RuleViolation)j.next();
errorSource.addError(new DefaultErrorSource.DefaultError(errorSource, ErrorSource.ERROR, file.getAbsolutePath(), rv.getNode().getBeginLine()-1,0,0,rv.getDescription()));
errorSource.addError(new DefaultErrorSource.DefaultError(errorSource, ErrorSource.ERROR, file.getAbsolutePath(), rv.getBeginLine()-1,0,0,rv.getDescription()));
}
if(!ctx.getReport().isEmpty())//That means Report contains some violations, so only cache such reports.
{