Bug 106073 [quick fix] Remove invalid modifiers does not work for constructors
Hi, When I write the bad statement "static private SomeConstructor() {", Eclipse gives me a hint to remove the invalid modifier "static", but it does not work! In other words clicking on the hint will do nothing (just moves the cursor on the middle of the static keyword!)
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/ModifierCorrectionSubProcessor.java
}
		return true;
	}
	
	
	private static Expression findValue(List keyValues) {
		for (int i= 0, len= keyValues.size(); i < len; i++) {
			MemberValuePair curr= (MemberValuePair) keyValues.get(i);
			if ("value".equals(curr.getName().getIdentifier())) { 
				return curr.getValue();
			}
		}
		return null;
	}
	
	private static Annotation findExistingAnnotation(List modifiers) {
		for (int i= 0, len= modifiers.size(); i < len; i++) {
			Object curr= modifiers.get(i);
			if (curr instanceof NormalAnnotation || curr instanceof SingleMemberAnnotation) {
				Annotation annotation= (Annotation) curr;
				String fullyQualifiedName= annotation.getTypeName().getFullyQualifiedName();
				if ("SuppressWarnings".equals(fullyQualifiedName) || "java.lang.SuppressWarnings".equals(fullyQualifiedName)) { 
					return annotation;
				}
			}
		}
		return null;
	}
}