Bug 43850 QuickAssist with linked mode has wrong default selection [quick assist]
I20030925 QuickAssist with linked mode has a default selection which is NOT the inserted (and green underlined) proposal. This is annoying, since it prevents quick acceptance with <Enter>. class X { public void foo(int jott) { } } - cursor on 'jott', Ctrl+1 - choose 'Assign parameter to new field' -> 'jott' is inserted in the editor, but 'i' is selected and inserted on <Enter> It's most probably a typo in LinkedModeProposal, line 101: "// keep first entry at first position Arrays.sort(res, 0, ..." should be "Arrays.sort(res, 1, ..."
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/LinkedCorrectionProposal.java
/*******************************************************************************
 * Copyright (c) 2000, 2003 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials 
 * are made available under the terms of the Common Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/cpl-v10.html
 * 
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jdt.internal.ui.text.correction;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;