|
23 | 23 | ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
24 | 24 | **
|
25 | 25 | **********************************************************************************************************************/
|
26 |
| -package javaImportTool; |
| 26 | +package envision.java.importtool; |
27 | 27 |
|
28 | 28 | import java.util.LinkedList;
|
29 | 29 | import java.util.List;
|
@@ -594,11 +594,12 @@ else if ( s instanceof VariableDeclarationStatement)
|
594 | 594 | {
|
595 | 595 | VariableDeclarationStatement vds = (VariableDeclarationStatement) s;
|
596 | 596 |
|
597 |
| - multipleNodes = new LinkedList<Node>(); |
598 |
| - for(Node varDecl: variableDeclarationExpressions(name, vds.getType(), vds.getModifiers(), |
599 |
| - (List<IExtendedModifier>)vds.modifiers(), vds.fragments())) |
| 597 | + multipleNodes = new LinkedList<>(); |
| 598 | + List<Node> varDecls = variableDeclarationExpressions(name, vds.getType(), vds.getModifiers(), |
| 599 | + (List<IExtendedModifier>)vds.modifiers(), vds.fragments()); |
| 600 | + for(Node varDecl : varDecls) |
600 | 601 | {
|
601 |
| - // It's ok to reuse the same name for all generated variables, since this will be fixed later. |
| 602 | + // It's ok to reuse the same name for all generated variables, since this will be fixed later. |
602 | 603 | Node exprStat = new Node(null,"ExpressionStatement",name);
|
603 | 604 | varDecl.setName("expression");
|
604 | 605 | exprStat.setChild("expression", varDecl);
|
|
0 commit comments