Bug 125455 [clean up] Compile error, opening bracket after //NON-NLS
Version: 3.2.0 Build id: I20060125-0800 Take JUnit source and apply all clean ups on it (5.0 level). You get compile errors. Reasons are looking like the following: if (displayString.startsWith("AllTests")) //$NON-NLS-1$ { setIcon(this.fSuiteIcon); } else { setIcon(this.fLeafIcon); } Can't tell why yet. 'Add NON NLS tag' should allways be executed after 'Add block to single statement'. May be a problem with the clean up, may also be a problem with the ast rewrite.
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/CleanUpTest.java
buf= new StringBuffer();
		buf.append("package test1;\n");
		buf.append("import java.io.Serializable;\n");
		buf.append("public class E1 implements Serializable {\n");
		buf.append("    " + FIELD_COMMENT + "\n");
		buf.append("    private static final long serialVersionUID = 1L;\n");
		buf.append("    public class B1 implements Serializable {\n");
		buf.append("\n");
		buf.append("        " + FIELD_COMMENT + "\n");
		buf.append("        private static final long serialVersionUID = 1L;\n");
		buf.append("    }\n");
		buf.append("    public class B2 extends B1 {\n");
		buf.append("\n");
		buf.append("        " + FIELD_COMMENT + "\n");
		buf.append("        private static final long serialVersionUID = 1L;\n");
		buf.append("    }\n");
		buf.append("}\n");
		String expected1= buf.toString();
		
		assertRefactoringResultAsExpected(refactoring, new String[] {expected1});
	}
	
	public void testSerialVersion03() throws Exception {
		
		IPackageFragment pack1= fSourceFolder.createPackageFragment("test1", false, null);
		StringBuffer buf= new StringBuffer();
		buf.append("package test1;\n");
		buf.append("import java.io.Serializable;\n");
		buf.append("public class E1 implements Serializable {\n");
		buf.append("}\n");