Converted switch to if else automatically via eclipse