Bug 15407 quick fix: removes too many temps (multi declaration case)
20020502+ package p; class Test{ int i(){ int i= 0, jjj= 1; return i; } } jjj is not used to qf offers to remove it. i say 'fine' but it leaves me in a state with compiler errors: class Test{ int i(){ return i; } }
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/JavaCorrectionProcessor.java
}
					}
				}
			}
		}
		
		if (proposals.isEmpty()) {
			proposals.add(new NoCorrectionProposal(null));
		}
		ICompletionProposal[] res= (ICompletionProposal[]) proposals.toArray(new ICompletionProposal[proposals.size()]);
		Arrays.sort(res, new CorrectionsComparator());
		return res;
	}
	
	private void collectCorrections(ProblemPosition problemPos, ArrayList proposals) {
		try {
			int id= problemPos.getId();
			switch (id) {
				case IProblem.UnterminatedString:
					String quoteLabel= CorrectionMessages.getString("JavaCorrectionProcessor.addquote.description"); 
					int pos= InsertCorrectionProposal.moveBack(problemPos.getOffset() + problemPos.getLength(), problemPos.getOffset(), "\n\r", problemPos.getCompilationUnit()); 
					proposals.add(new InsertCorrectionProposal(quoteLabel, problemPos.getCompilationUnit(), pos, "\"", 0));  
					break;
				case IProblem.UnterminatedComment:
					String commentLabel= CorrectionMessages.getString("JavaCorrectionProcessor.addcomment.description"); 
					proposals.add(new InsertCorrectionProposal(commentLabel, problemPos.getCompilationUnit(), problemPos.getOffset() + problemPos.getLength(), "*/", 0)); 
					break;
				case IProblem.UndefinedMethod:
					UnresolvedElementsSubProcessor.getMethodProposals(problemPos, false, proposals);
					break;