1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-04 06:45:43 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2012-01-04 17:54:50 -08:00
parent 7eb5d01ded
commit 1610de526e
3 changed files with 3 additions and 3 deletions

View file

@ -27,7 +27,7 @@ public class ChangeTreeSet {
private static final class ChangePositionComparator implements Comparator<CTextFileChange> { private static final class ChangePositionComparator implements Comparator<CTextFileChange> {
@Override @Override
public int compare(CTextFileChange o1, CTextFileChange o2) { public int compare(CTextFileChange o1, CTextFileChange o2) {
if(o1.getFile().equals(o2.getFile())){ if (o1.getFile().equals(o2.getFile())) {
return o2.getEdit().getOffset() - o1.getEdit().getOffset(); return o2.getEdit().getOffset() - o1.getEdit().getOffset();
} }
return o2.getFile().hashCode() - o1.getFile().hashCode(); return o2.getFile().hashCode() - o1.getFile().hashCode();

View file

@ -7,7 +7,7 @@
* http://www.eclipse.org/legal/epl-v10.html * http://www.eclipse.org/legal/epl-v10.html
* *
* Contributors: * Contributors:
* Institute for Software - initial API and implementation * Institute for Software - initial API and implementation
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.internal.ui.refactoring; package org.eclipse.cdt.internal.ui.refactoring;

View file

@ -226,7 +226,7 @@ public class GenerateGettersAndSettersRefactoring extends CRefactoring2 {
} }
@Override @Override
protected void collectModifications(IProgressMonitor pm,ModificationCollector collector) protected void collectModifications(IProgressMonitor pm, ModificationCollector collector)
throws CoreException, OperationCanceledException { throws CoreException, OperationCanceledException {
List<IASTNode> getterAndSetters = new ArrayList<IASTNode>(); List<IASTNode> getterAndSetters = new ArrayList<IASTNode>();
List<IASTFunctionDefinition> definitions = new ArrayList<IASTFunctionDefinition>(); List<IASTFunctionDefinition> definitions = new ArrayList<IASTFunctionDefinition>();