public static int METHOD_1 ( final TYPE_1 result ) { if ( result . equals ( VAR_1 ) ) { return INT_1 ; } else if ( result . equals ( VAR_2 ) ) { return INT_2 ; } else if ( result . equals ( VAR_3 ) ) { return INT_3 ; } else if ( result . equals ( VAR_4 ) ) { return 1 ; } return 0 ; }

public static int METHOD_1 ( final TYPE_1 result ) { if ( result == null ) { return - 1 ; } else if ( result . equals ( VAR_1 ) ) { return INT_1 ; } else if ( result . equals ( VAR_2 ) ) { return INT_2 ; } else if ( result . equals ( VAR_3 ) ) { return INT_3 ; } else if ( result . equals ( VAR_4 ) ) { return 1 ; } return 0 ; }
