forked from phoedos/pmd
Upgrading to PMD v1.7
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2666 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
<plugin
|
||||
id="net.sourceforge.pmd.eclipse"
|
||||
name="%plugin.name"
|
||||
version="2.0.3.v3"
|
||||
version="2.0.4.v3"
|
||||
provider-name="%plugin.provider"
|
||||
class="net.sourceforge.pmd.eclipse.PMDPlugin">
|
||||
|
||||
|
@ -7,6 +7,7 @@ import java.lang.reflect.InvocationTargetException;
|
||||
import java.util.Iterator;
|
||||
|
||||
import net.sourceforge.pmd.ast.ASTCompilationUnit;
|
||||
import net.sourceforge.pmd.ast.JavaCharStream;
|
||||
import net.sourceforge.pmd.ast.JavaParser;
|
||||
import net.sourceforge.pmd.ast.ParseException;
|
||||
import net.sourceforge.pmd.eclipse.ASTWriter;
|
||||
@ -42,6 +43,9 @@ import org.eclipse.ui.PlatformUI;
|
||||
* @version $Revision$
|
||||
*
|
||||
* $Log$
|
||||
* Revision 1.9 2004/04/29 21:15:08 phherlin
|
||||
* Upgrading to PMD v1.7
|
||||
*
|
||||
* Revision 1.8 2003/12/18 23:58:37 phherlin
|
||||
* Fixing malformed UTF-8 characters in generated xml files
|
||||
*
|
||||
@ -114,7 +118,7 @@ public class PMDGenerateASTAction implements IObjectActionDelegate, IRunnableWit
|
||||
private void generateAST(IFile file) {
|
||||
log.info("Genrating AST for file " + file.getName());
|
||||
try {
|
||||
JavaParser parser = new JavaParser(file.getContents());
|
||||
JavaParser parser = new JavaParser(new JavaCharStream(file.getContents()));
|
||||
ASTCompilationUnit compilationUnit = parser.CompilationUnit();
|
||||
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
|
||||
ASTWriter astWriter = WriterAbstractFactory.getFactory().getASTWriter();
|
||||
|
Reference in New Issue
Block a user