diff --git a/pdex/src/processing/mode/experimental/ASTNodeWrapper.java b/pdex/src/processing/mode/experimental/ASTNodeWrapper.java index 62d84a3ca..e3d26c271 100644 --- a/pdex/src/processing/mode/experimental/ASTNodeWrapper.java +++ b/pdex/src/processing/mode/experimental/ASTNodeWrapper.java @@ -155,9 +155,10 @@ public class ASTNodeWrapper { //nodeOffset = ((VariableDeclarationFragment)(fd.fragments().get(0))).getName().getStartPosition(); } - if(jd == null){ + if (jd == null) { log("Visiting children of node " + getNodeAsString(thisNode)); - Iterator it = thisNode + Iterator it = + (Iterator) thisNode .structuralPropertiesForType().iterator(); boolean flag = true; while (it.hasNext()) { @@ -213,7 +214,7 @@ public class ASTNodeWrapper { * @return */ private int getJavadocOffset(FieldDeclaration fd){ - List list= fd.modifiers(); + List list= (List)fd.modifiers(); SimpleName sn = (SimpleName) getNode(); Type tp = fd.getType(); @@ -247,7 +248,7 @@ public class ASTNodeWrapper { * @return */ private int getJavadocOffset(MethodDeclaration md) { - List list = md.modifiers(); + List list = (List)md.modifiers(); SimpleName sn = (SimpleName) getNode(); int lineNum = getLineNumber(sn); log("SN " + sn + ", " + lineNum); @@ -282,8 +283,7 @@ public class ASTNodeWrapper { */ private int getJavadocOffset(TypeDeclaration td){ // TODO: This isn't perfect yet. Class \n \n \n className still breaks it.. :'( - List list= td.modifiers(); - list = td.modifiers(); + List list= (List)td.modifiers(); SimpleName sn = (SimpleName) getNode(); int lineNum = getLineNumber(sn);