Bug 3811 Setter / Getter generates setter for final fields (1GEUMGT)
- private final String fName; - generate Setter and Getter - you get public void setName(String name) { fName= name; } which produces a compile error. NOTES: EG (6/5/2001 3:41:01 AM) not critical, can be documented. MA (02.08.2001 16:49:08) fixed in 200
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/codemanipulation/ImportsStructure.java
char newChar= getCharAt(newName, matchLen);
		char currChar= getCharAt(currName, matchLen);		
		char bestChar= getCharAt(bestName, matchLen);
		
		if (newChar < currChar) {
			if (bestChar < newChar) {								
				return (currChar - newChar) < (newChar - bestChar);	
			} else {												
				return currName.compareTo(bestName) < 0;			
			}
		} else {
			if (bestChar > newChar) {								
				return (newChar - currChar) < (bestChar - newChar);	
			} else {												
				return bestName.compareTo(currName) < 0;			
			}
		}
	}
	
	private PackageEntry findBestMatch(String newName) {
		int bestMatchLen= -1;
		PackageEntry bestMatch= null;
		String bestName= ""; 
		
		for (int i= 0; i < fPackageEntries.size(); i++) {
			boolean isBetterMatch;