Bug 123625 [cleanup] Generated Serial Version UIDs clean up
Add a fix to the cleanup refactoring which generates missing generated serial version IDs. The code of the existing serial version quickfix has been extracted and is now available in class SerialVersionComputationHelper. For details on how to use this class please refer to the existing quickfix.
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/SerialVersionQuickFixTest.java
SerialVersionHashProposal proposal= (SerialVersionHashProposal) current;
				String preview= getPreviewContent(proposal);
				buffer= new StringBuffer();
				buffer.append("package test1;\n"); 
				buffer.append("import java.io.Serializable;\n"); 
				buffer.append("public class Test1 implements Serializable {\n"); 
				buffer.append("    " + FIELD_COMMENT + "\n");
				buffer.append("    private static final long serialVersionUID = 0L;\n"); 
				buffer.append("    protected int var1;\n"); 
				buffer.append("    protected int var2;\n"); 
				buffer.append("}\n"); 
				assertEqualPreview(preview, buffer.toString());
			} else if (current instanceof SerialVersionDefaultProposal) {
				SerialVersionDefaultProposal proposal= (SerialVersionDefaultProposal) current;
				String preview= getPreviewContent(proposal);
				buffer= new StringBuffer();
				buffer.append("package test1;\n"); 
				buffer.append("import java.io.Serializable;\n"); 
				buffer.append("public class Test1 implements Serializable {\n"); 
				buffer.append("    " + FIELD_COMMENT + "\n");
				buffer.append("    private static final long serialVersionUID = 1L;\n"); 
				buffer.append("    protected int var1;\n"); 
				buffer.append("    protected int var2;\n"); 
				buffer.append("}\n"); 
				assertEqualString(preview, buffer.toString());
			}
		}
	}
}