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

(-)a/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/CodeStyleFix.java (-1 / +10 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2011 IBM Corporation and others.
2
 * Copyright (c) 2000, 2013 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 12-17 Link Here
12
12
13
import java.util.ArrayList;
13
import java.util.ArrayList;
14
import java.util.HashMap;
14
import java.util.HashMap;
15
import java.util.Iterator;
15
import java.util.List;
16
import java.util.List;
16
17
17
import org.eclipse.core.runtime.CoreException;
18
import org.eclipse.core.runtime.CoreException;
Lines 655-660 Link Here
655
656
656
					Expression qualifier= op.fQualifier;
657
					Expression qualifier= op.fQualifier;
657
					if (!(qualifier instanceof MethodInvocation) || !isMethodArgument(qualifier)) {
658
					if (!(qualifier instanceof MethodInvocation) || !isMethodArgument(qualifier)) {
659
						for (Iterator<CompilationUnitRewriteOperation> it= result.iterator(); it.hasNext();) { // see bug: 346230
660
							CompilationUnitRewriteOperation oper= it.next();
661
							if (oper instanceof CodeStyleFix.AddThisQualifierOperation
662
									&& ((CodeStyleFix.AddThisQualifierOperation) oper).fName.equals(qualifier)) {
663
								result.remove(oper);
664
								break;
665
							}
666
						}
658
						result.add(op);
667
						result.add(op);
659
					}
668
					}
660
				}
669
				}

Return to bug 346230