Bug 8140 Code assist for anonymous inner types adds empty line
button.addActionListener(new ActionListener() { /* * @see ActionListener#actionPerformed(ActionEvent) */ public void actionPerformed(ActionEvent e) { } <--- here ---> }
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/AnonymousTypeCompletionProposal.java
if (fCompilationUnit == null) {
				fImportStructure= null;
			} else {
				String[] prefOrder= ImportOrganizePreferencePage.getImportOrderPreference();
				int threshold= ImportOrganizePreferencePage.getImportNumberThreshold();					
				fImportStructure= new ImportsStructure(fCompilationUnit, prefOrder, threshold, true);
			}
			
			String replacementString= getReplacementString();
			
			
			StringBuffer buf= new StringBuffer();
			buf.append(replacementString);
			if (!replacementString.endsWith(")")) {
				buf.append(')');
			}	
			buf.append(" {\n");
			if (!createStubs(buf, fImportStructure)) {
				return;
			}
			buf.append("}");
			
			
			String lineDelim= StubUtility.getLineDelimiterFor(document);
			int tabWidth= CodeFormatterPreferencePage.getTabSize();
			IRegion region= document.getLineInformationOfOffset(getReplacementOffset());
			int indent= TextUtil.getIndent(document.get(region.getOffset(), region.getLength()), tabWidth);
			
			String replacement= StubUtility.codeFormat(buf.toString(), indent, lineDelim);
			replacement= TextUtil.removeLeadingWhiteSpaces(replacement);