Code Cleanup in .NET and Java