View | Details | Raw Unified | Return to bug 54242
Collapse All | Expand All

(-)ForEach.java (+4 lines)
Lines 155-160 Link Here
155
        ctxt.generateJavaSource("else if (" + itemsV + " instanceof Map)");
155
        ctxt.generateJavaSource("else if (" + itemsV + " instanceof Map)");
156
        ctxt.generateJavaSource(iterV + "=((Map)" + itemsV + ").entrySet().iterator();");
156
        ctxt.generateJavaSource(iterV + "=((Map)" + itemsV + ").entrySet().iterator();");
157
        
157
        
158
        // Not null
159
        ctxt.generateJavaSource("if (" + iterV + " != null) {");
160
158
        if (hasBegin) {
161
        if (hasBegin) {
159
            String tV = ctxt.getTemporaryVariableName();
162
            String tV = ctxt.getTemporaryVariableName();
160
            ctxt.generateJavaSource("for (int " + tV + "=" + beginV + ";" +
163
            ctxt.generateJavaSource("for (int " + tV + "=" + beginV + ";" +
Lines 196-201 Link Here
196
            ctxt.generateJavaSource("break;");
199
            ctxt.generateJavaSource("break;");
197
        }
200
        }
198
        ctxt.generateJavaSource("}"); // while
201
        ctxt.generateJavaSource("}"); // while
202
        ctxt.generateJavaSource("}"); // Not Null
199
    }
203
    }
200
    
204
    
201
    /**
205
    /**

Return to bug 54242