public static TYPE_1 METHOD_1 ( int type ) { switch ( type ) { case INT_1 : return VAR_1 ; case INT_2 : return VAR_2 ; } return null ; } 

public static TYPE_1 METHOD_1 ( int type ) { TYPE_1 result = null ; if ( type == INT_1 ) { result = VAR_1 ; } else if ( type == INT_2 ) { result = VAR_2 ; } return result ; } 
