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
PackageEntry curr= (PackageEntry) fPackageEntries.get(i);
			String currName= curr.getName();
			int currMatchLen= getMatchLen(currName, newName);
			
			if (currMatchLen > bestMatchLen) {
				isBetterMatch= true;
			} else if (currMatchLen == bestMatchLen) {		
				if (currMatchLen == newName.length() && currMatchLen == currName.length() && currMatchLen == bestName.length()) {
					
					isBetterMatch= curr.getNumberOfImports() > bestMatch.getNumberOfImports();
				} else {
					isBetterMatch= sameMatchLenTest(newName, bestName, currName, currMatchLen);
				}
			} else {
				isBetterMatch= false;
			}
			
			if (isBetterMatch) {
				bestMatchLen= currMatchLen;
				bestMatch= curr;
				bestName= currName;
			}
		}
		return bestMatch;
	}
	/**
	 * Adds a new import declaration that is sorted in the structure using
	 * the best match algorithm. If an import already exists, the import is
	 * not added.