input
stringlengths
96
415
output
stringlengths
18
303
The following code may contain bugs. Write a refined code without bugs. public static java.lang.Class METHOD_1 ( java.lang.String className ) { try { return java.lang.Class . METHOD_2 ( className , false , VAR_1 ) ; } catch ( java.lang.Throwable VAR_2 ) { TYPE_1 . METHOD_3 ( VAR_2 . METHOD_4 ( ) ) ; } return null ; }
private static java.lang.Class METHOD_1 ( java.lang.String className ) { try { return java.lang.Class . METHOD_2 ( className , false , VAR_1 ) ; } catch ( java.lang.Throwable VAR_2 ) { TYPE_1 . METHOD_3 ( VAR_2 . METHOD_4 ( ) ) ; } return null ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( ) { this . VAR_1 = new TYPE_1 ( this . VAR_2 , this . VAR_3 , INT_1 , INT_2 ) ; this . VAR_1 . METHOD_2 ( ) ; }
public void METHOD_1 ( ) { this . VAR_1 = new TYPE_1 ( this . VAR_2 , this . VAR_3 , INT_1 , 0 ) ; this . VAR_1 . METHOD_2 ( ) ; }
The following code may contain bugs. Write a refined code without bugs. public synchronized long METHOD_1 ( ) { if ( ( ++ ( offset ) ) == ( VAR_1 ) ) { offset = 0 ; METHOD_2 ( ) ; return value ; } return ++ ( value ) ; }
public synchronized long METHOD_1 ( ) { if ( ( offset ) == 0 ) { METHOD_2 ( ) ; } if ( ( ++ ( offset ) ) == ( VAR_1 ) ) { offset = 0 ; } return ++ ( value ) ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( TYPE_1 VAR_1 ) { final TYPE_2 VAR_2 = new TYPE_2 ( VAR_3 ) ; VAR_4 . METHOD_2 ( VAR_2 , STRING_1 ) ; VAR_5 . add ( new TYPE_3 ( null , VAR_2 ) ) ; }
public void METHOD_1 ( TYPE_1 VAR_1 ) { final TYPE_2 VAR_2 = new TYPE_2 ( VAR_3 ) ; VAR_4 . METHOD_2 ( VAR_2 , null , STRING_1 ) ; }
The following code may contain bugs. Write a refined code without bugs. public static void METHOD_1 ( TYPE_1 VAR_1 ) { TYPE_2 . METHOD_2 ( ) . METHOD_1 ( TYPE_3 . METHOD_3 ( ) , TYPE_3 . METHOD_4 ( ) , VAR_1 ) ; }
public static void METHOD_1 ( TYPE_1 VAR_1 ) { TYPE_2 . METHOD_2 ( ) . METHOD_1 ( VAR_1 ) ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( ) { METHOD_2 ( VAR_1 ) ; METHOD_3 ( VAR_2 ) ; VAR_3 . METHOD_4 ( 1 ) ; METHOD_5 ( ) ; TYPE_1 . assertTrue ( VAR_3 . METHOD_6 ( ) ) ; METHOD_7 ( VAR_1 ) ; TYPE_2 . METHOD_8 ( ) ; }
public void METHOD_1 ( ) { METHOD_2 ( VAR_1 ) ; METHOD_3 ( VAR_2 ) ; VAR_3 . METHOD_4 ( 1 ) ; METHOD_5 ( ) ; TYPE_1 . assertTrue ( VAR_3 . METHOD_6 ( ) ) ; METHOD_7 ( VAR_1 ) ; }
The following code may contain bugs. Write a refined code without bugs. public java.lang.Object METHOD_1 ( java.lang.String VAR_1 ) throws java.io.IOException , java.lang.ClassNotFoundException { java.io.FileInputStream VAR_2 = new java.io.FileInputStream ( VAR_1 ) ; TYPE_1 VAR_3 = new TYPE_1 ( VAR_2 ) ; java.lang.System.out.println ( STRING_1 ) ; return ( ( java.lang.Object ) ( VAR_3 . METHOD_2 ( ) ) ) ; }
public java.lang.Object METHOD_1 ( java.lang.String VAR_1 ) throws java.io.IOException , java.lang.ClassNotFoundException { java.io.FileInputStream VAR_2 = new java.io.FileInputStream ( VAR_1 ) ; TYPE_1 VAR_3 = new TYPE_1 ( VAR_2 ) ; return ( ( java.lang.Object ) ( VAR_3 . METHOD_2 ( ) ) ) ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( ) { for ( TYPE_1 VAR_1 : this . VAR_2 ) { VAR_1 . setEnabled ( false ) ; } this . VAR_2 = new java.util.ArrayList < TYPE_1 > ( ) ; this . VAR_3 = VAR_4 ; }
public void METHOD_1 ( ) { for ( TYPE_1 VAR_1 : this . VAR_2 ) { VAR_1 . setEnabled ( false ) ; } this . VAR_2 = new java.util.ArrayList < TYPE_1 > ( ) ; }
The following code may contain bugs. Write a refined code without bugs. public java.lang.String METHOD_1 ( ) { java.lang.System.out.println ( STRING_1 ) ; if ( ( TYPE_1 . METHOD_2 ( id , VAR_1 ) ) == null ) { java.lang.System.out.println ( STRING_2 ) ; return STRING_3 ; } else { java.lang.System.out.println ( STRING_4 ) ; return null ; } }
public java.lang.String METHOD_1 ( ) { java.lang.System.out.println ( STRING_1 ) ; if ( ( VAR_1 ) == null ) { java.lang.System.out.println ( STRING_2 ) ; return STRING_3 ; } else { java.lang.System.out.println ( STRING_4 ) ; return null ; } }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( TYPE_1 VAR_1 ) { VAR_2 . METHOD_2 ( false ) ; VAR_3 . METHOD_3 ( VAR_4 ) ; METHOD_4 ( VAR_5 . METHOD_5 ( ) ) ; }
public void METHOD_1 ( TYPE_1 VAR_1 ) { METHOD_4 ( VAR_5 . METHOD_5 ( ) , true ) ; }
The following code may contain bugs. Write a refined code without bugs. protected void METHOD_1 ( java.lang.String VAR_1 ) { VAR_2 . METHOD_2 ( ) ; if ( VAR_1 != null ) { TYPE_1 . METHOD_3 ( this , VAR_1 , VAR_3 ) . show ( ) ; } }
protected void METHOD_1 ( java.lang.String VAR_1 ) { if ( VAR_1 != null ) { TYPE_1 . METHOD_3 ( this , VAR_1 , VAR_3 ) . show ( ) ; } }
The following code may contain bugs. Write a refined code without bugs. protected void METHOD_1 ( ) { METHOD_2 ( new TYPE_1 ( this ) ) ; }
protected void METHOD_1 ( ) { }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( ) { VAR_1 . METHOD_2 ( ) ; VAR_2 . setText ( STRING_1 ) ; VAR_3 . METHOD_3 ( ( VAR_4 + STRING_2 ) ) ; METHOD_4 ( ) ; }
public void METHOD_1 ( ) { VAR_1 . METHOD_2 ( ) ; VAR_2 . setText ( STRING_1 ) ; VAR_3 . METHOD_3 ( ( VAR_4 + STRING_2 ) ) ; }
The following code may contain bugs. Write a refined code without bugs. public boolean METHOD_1 ( int VAR_1 , TYPE_1 event ) { if ( ( VAR_1 == ( VAR_2 ) ) && ( METHOD_2 ( ) ) ) { METHOD_3 ( ) ; return true ; } return super . METHOD_1 ( VAR_1 , event ) ; }
public boolean METHOD_1 ( int VAR_1 , TYPE_1 event ) { if ( ( VAR_1 == ( VAR_2 ) ) && ( METHOD_2 ( ) ) ) { return false ; } return super . METHOD_1 ( VAR_1 , event ) ; }
The following code may contain bugs. Write a refined code without bugs. public static void METHOD_1 ( java.util.List < java.lang.String > VAR_1 ) { if ( ( VAR_2 ) != null ) VAR_1 . METHOD_2 ( ) ; VAR_2 = VAR_1 ; VAR_3 = TYPE_1 . METHOD_3 ( VAR_1 ) ; }
public static void METHOD_1 ( java.util.List < java.lang.String > VAR_1 ) { VAR_2 = VAR_1 ; VAR_3 = TYPE_1 . METHOD_3 ( VAR_1 ) ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( final TYPE_1 VAR_1 ) { VAR_2 . METHOD_2 ( ) . end ( ) ; VAR_2 . METHOD_1 ( VAR_1 ) ; METHOD_3 ( VAR_1 ) ; }
public void METHOD_1 ( final TYPE_1 VAR_1 ) { VAR_2 . METHOD_1 ( VAR_1 ) ; METHOD_3 ( VAR_1 ) ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( java.lang.String VAR_1 ) { TYPE_1 . assertTrue ( VAR_2 . METHOD_2 ( ) ) ; TYPE_2 . METHOD_3 ( time ) . getTime ( ) . equals ( VAR_1 ) ; }
public void METHOD_1 ( java.lang.String VAR_1 ) { TYPE_1 . assertTrue ( VAR_2 . METHOD_2 ( ) ) ; }
The following code may contain bugs. Write a refined code without bugs. public int METHOD_1 ( ) { int VAR_1 = INT_1 ; VAR_1 = ( INT_2 * INT_1 ) + ( getId ( ) . METHOD_1 ( ) ) ; return VAR_1 ; }
public int METHOD_1 ( ) { int VAR_1 = INT_1 ; VAR_1 = ( INT_2 * INT_1 ) + ( ( id ) == null ? 0 : id . METHOD_1 ( ) ) ; return VAR_1 ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( TYPE_1 VAR_1 ) { for ( TYPE_2 c : VAR_2 ) { c . METHOD_2 ( VAR_3 ) ; } VAR_4 . METHOD_3 ( ) ; }
public void METHOD_1 ( TYPE_1 VAR_1 ) { if ( ( VAR_3 ) != null ) { for ( TYPE_2 c : VAR_2 ) { c . METHOD_2 ( VAR_3 ) ; } VAR_4 . METHOD_3 ( ) ; } }
The following code may contain bugs. Write a refined code without bugs. public static void i ( java.lang.String message , java.lang.Throwable t ) { for ( int i = 0 ; i < ( TYPE_1 . size ( ) ) ; i ++ ) { TYPE_1 . get ( 0 ) . i ( message , t ) ; } }
public static void i ( java.lang.String message , java.lang.Throwable t ) { for ( int i = 0 ; i < ( TYPE_1 . size ( ) ) ; i ++ ) { TYPE_1 . get ( i ) . i ( message , t ) ; } }
The following code may contain bugs. Write a refined code without bugs. public static TYPE_1 < TYPE_2 > METHOD_1 ( TYPE_3 path ) { }
public static TYPE_1 < TYPE_2 > METHOD_1 ( TYPE_3 path ) { return null ; }
The following code may contain bugs. Write a refined code without bugs. public java.util.List < TYPE_1 > METHOD_1 ( ) { return params . METHOD_2 ( ) . METHOD_3 ( ) ; }
public java.util.List < TYPE_1 > METHOD_1 ( ) { return params . METHOD_1 ( ) ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( ) { if ( METHOD_2 ( ) . METHOD_3 ( ) ) { VAR_1 = true ; } }
public void METHOD_1 ( ) { if ( METHOD_2 ( ) . METHOD_3 ( true ) ) { VAR_1 = true ; } }
The following code may contain bugs. Write a refined code without bugs. public TYPE_1 METHOD_1 ( java.lang.Long VAR_1 ) { this . VAR_1 = VAR_1 ; return this ; }
public long METHOD_1 ( java.lang.Long VAR_1 ) { this . VAR_1 = VAR_1 ; return 1L ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( TYPE_1 VAR_1 ) throws java.lang.Exception { VAR_2 . METHOD_2 ( STRING_1 ) ; }
public void METHOD_1 ( TYPE_1 VAR_1 ) throws java.lang.Exception { java.lang.System.out.println ( STRING_1 ) ; }
The following code may contain bugs. Write a refined code without bugs. private void METHOD_1 ( java.lang.String VAR_1 ) { TYPE_1 VAR_2 = METHOD_2 ( VAR_1 ) ; try { TYPE_2 n = VAR_2 . METHOD_3 ( ) ; } catch ( TYPE_3 VAR_3 ) { VAR_3 . METHOD_4 ( ) ; } }
private void METHOD_1 ( java.lang.String VAR_1 ) { TYPE_1 VAR_2 = METHOD_2 ( VAR_1 ) ; try { TYPE_2 result = VAR_2 . METHOD_3 ( ) ; } catch ( TYPE_3 VAR_3 ) { VAR_3 . METHOD_4 ( ) ; } }
The following code may contain bugs. Write a refined code without bugs. public TYPE_1 METHOD_1 ( final int VAR_1 ) { return VAR_2 . get ( VAR_1 ) . METHOD_2 ( ) ; }
public TYPE_1 METHOD_1 ( final int VAR_1 ) { if ( VAR_2 . get ( VAR_1 ) . isEmpty ( ) ) return null ; return VAR_2 . get ( VAR_1 ) . METHOD_2 ( ) ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( ) { if ( ( VAR_1 . METHOD_2 ( ) ) && ( ! ( VAR_2 . METHOD_3 ( ) ) ) ) { VAR_2 . METHOD_4 ( ) ; } VAR_3 = false ; }
public void METHOD_1 ( ) { if ( ( VAR_1 . METHOD_2 ( ) ) && ( ! ( VAR_2 . METHOD_3 ( ) ) ) ) { METHOD_4 ( ) ; } VAR_3 = false ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( TYPE_1 VAR_1 , java.util.Random VAR_2 , TYPE_2 VAR_3 , TYPE_3 state ) { this . METHOD_1 ( VAR_1 , VAR_3 , state ) ; }
public void METHOD_1 ( TYPE_1 VAR_1 , java.util.Random VAR_2 , TYPE_2 VAR_3 , TYPE_3 state ) { METHOD_1 ( VAR_1 , VAR_3 , state ) ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( TYPE_1 VAR_1 ) { VAR_2 = VAR_1 ; VAR_3 = TYPE_2 . METHOD_2 ( TYPE_2 . METHOD_3 ( VAR_4 ) , TYPE_2 . METHOD_4 ( VAR_2 ) ) ; VAR_3 = TYPE_2 . METHOD_2 ( VAR_3 , VAR_5 ) ; }
public void METHOD_1 ( TYPE_1 VAR_1 ) { VAR_2 = VAR_1 ; VAR_3 = TYPE_2 . METHOD_2 ( TYPE_2 . METHOD_4 ( VAR_2 ) , TYPE_2 . METHOD_3 ( VAR_4 ) ) ; VAR_3 = TYPE_2 . METHOD_2 ( VAR_3 , VAR_5 ) ; }
The following code may contain bugs. Write a refined code without bugs. private void METHOD_1 ( ) throws java.io.IOException , TYPE_1 { TYPE_2 VAR_1 = TYPE_2 . METHOD_2 ( ) ; java.lang.String VAR_2 = VAR_1 . METHOD_3 ( ) ; TYPE_3 . METHOD_4 ( STRING_1 ) ; TYPE_3 . METHOD_5 ( ) ; }
private void METHOD_1 ( ) throws java.io.IOException , TYPE_1 { TYPE_2 VAR_1 = TYPE_2 . METHOD_2 ( ) ; java.lang.String VAR_2 = VAR_1 . METHOD_3 ( ) ; TYPE_3 . METHOD_4 ( VAR_2 ) ; TYPE_3 . METHOD_5 ( ) ; }
The following code may contain bugs. Write a refined code without bugs. public TYPE_1 METHOD_1 ( java.lang.String ... VAR_1 ) { TYPE_1 results = null ; if ( ( VAR_1 [ 0 ] ) == null ) { } else { } return results ; }
public TYPE_1 METHOD_1 ( java.lang.String ... VAR_1 ) { TYPE_1 results = null ; return results ; }
The following code may contain bugs. Write a refined code without bugs. public static void METHOD_1 ( java.util.List < java.lang.String > VAR_1 ) { VAR_2 = VAR_1 ; }
public void METHOD_1 ( java.util.List < java.lang.String > VAR_1 ) { VAR_1 = VAR_1 ; }
The following code may contain bugs. Write a refined code without bugs. public void start ( ) throws java.io.IOException { if ( ! ( VAR_1 ) ) { this . METHOD_1 ( VAR_2 ) ; } }
public void start ( ) throws java.io.IOException { if ( ! ( VAR_1 ) ) { this . METHOD_1 ( VAR_2 ) ; VAR_1 = true ; } }
The following code may contain bugs. Write a refined code without bugs. TYPE_1 < java.lang.Void > METHOD_1 ( ) ;
METHOD_1 ( ) { }
The following code may contain bugs. Write a refined code without bugs. public static synchronized void METHOD_1 ( android.content.Context context ) { if ( ( VAR_1 ) != null ) { throw new TYPE_1 ( STRING_1 ) ; } VAR_1 = new TYPE_2 ( context ) ; VAR_1 . METHOD_2 ( ) ; VAR_1 . METHOD_3 ( ) ; }
public static synchronized void METHOD_1 ( android.content.Context context ) { if ( ( VAR_1 ) != null ) { return ; } VAR_1 = new TYPE_2 ( context ) ; VAR_1 . METHOD_2 ( ) ; VAR_1 . METHOD_3 ( ) ; }
The following code may contain bugs. Write a refined code without bugs. protected TYPE_1 getValue ( java.lang.Object VAR_1 ) throws TYPE_2 { return TYPE_3 . METHOD_1 ( METHOD_2 ( ) , VAR_2 ) ; }
protected TYPE_1 getValue ( java.lang.Object VAR_1 ) throws TYPE_2 { return TYPE_3 . METHOD_1 ( METHOD_2 ( ) , VAR_2 , null , null ) ; }
The following code may contain bugs. Write a refined code without bugs. public long METHOD_1 ( ) { long VAR_1 = this . METHOD_2 ( ) ; return this . METHOD_3 ( VAR_1 ) . METHOD_4 ( ) ; }
public long METHOD_1 ( ) { long VAR_1 = this . METHOD_2 ( ) ; if ( VAR_1 == 0 ) { return 0 ; } return this . METHOD_3 ( VAR_1 ) . METHOD_4 ( ) ; }
The following code may contain bugs. Write a refined code without bugs. public void add ( int position , TYPE_1 VAR_1 ) { VAR_2 . add ( position , VAR_1 ) ; METHOD_1 ( ) ; int VAR_3 = VAR_2 . METHOD_2 ( VAR_1 ) ; METHOD_3 ( VAR_3 ) ; }
public void add ( int position , TYPE_1 VAR_1 ) { VAR_2 . add ( position , VAR_1 ) ; METHOD_1 ( ) ; int VAR_3 = VAR_2 . METHOD_2 ( VAR_1 ) ; if ( VAR_3 >= 0 ) { METHOD_3 ( VAR_3 ) ; } }
The following code may contain bugs. Write a refined code without bugs. public static java.lang.String METHOD_1 ( java.lang.String VAR_1 ) { java.io.File file = new java.io.File ( VAR_1 ) ; if ( ! ( file . METHOD_2 ( ) ) ) { file . METHOD_3 ( ) ; } return VAR_1 ; }
private static java.io.File METHOD_1 ( java.io.File file ) { if ( ! ( file . METHOD_2 ( ) ) ) { file . METHOD_3 ( ) ; } return file ; }
The following code may contain bugs. Write a refined code without bugs. public java.util.List < TYPE_1 > METHOD_1 ( TYPE_2 VAR_1 ) { java.util.List < TYPE_1 > VAR_2 = VAR_3 . METHOD_2 ( VAR_1 ) ; java.lang.System.out.println ( ( STRING_1 + ( VAR_2 . size ( ) ) ) ) ; return VAR_2 ; }
public java.util.List < TYPE_1 > METHOD_1 ( TYPE_2 VAR_1 ) { java.util.List < TYPE_1 > VAR_2 = VAR_3 . METHOD_2 ( VAR_1 ) ; return VAR_2 ; }
The following code may contain bugs. Write a refined code without bugs. public void update ( ) { VAR_1 += ( VAR_2 ) * ( VAR_3 ) ; VAR_4 += ( VAR_5 ) * ( VAR_3 ) ; }
public void update ( ) { this . VAR_1 += ( VAR_2 ) * ( VAR_3 ) ; this . VAR_4 += ( VAR_5 ) * ( VAR_3 ) ; }
The following code may contain bugs. Write a refined code without bugs. public java.lang.String toString ( boolean VAR_1 , boolean VAR_2 ) { return toString ( 0 , VAR_1 , VAR_2 ) ; }
public java.lang.String toString ( boolean VAR_1 ) { return toString ( 0 , VAR_1 , false , false ) ; }
The following code may contain bugs. Write a refined code without bugs. java.lang.String METHOD_1 ( java.lang.String VAR_1 , java.lang.String VAR_2 ) { return ( ( ( ( ( VAR_3 ) + ( VAR_4 . get ( VAR_2 ) ) ) + STRING_1 ) + VAR_1 ) + STRING_1 ) + VAR_2 ; }
java.lang.String METHOD_1 ( java.lang.String VAR_1 , java.lang.String VAR_2 ) { return ( ( ( ( ( ( VAR_3 ) + ( VAR_4 . get ( VAR_2 ) ) ) + STRING_1 ) + VAR_1 ) + STRING_1 ) + VAR_2 ) + STRING_1 ; }
The following code may contain bugs. Write a refined code without bugs. public int METHOD_1 ( ) { return ( ( ( VAR_1 . METHOD_1 ( ) ) + ( VAR_2 . METHOD_1 ( ) ) ) + ( VAR_3 . size ( ) ) ) + ( VAR_4 . size ( ) ) ; }
public int METHOD_1 ( ) { return ( ( ( VAR_1 . METHOD_1 ( ) ) + ( VAR_2 . METHOD_1 ( ) ) ) + ( VAR_3 . METHOD_1 ( ) ) ) + ( VAR_4 . METHOD_1 ( ) ) ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( TYPE_1 VAR_1 ) { this . VAR_2 = this . VAR_3 ; this . VAR_3 = VAR_1 ; }
public void METHOD_1 ( TYPE_1 VAR_1 ) { if ( ( VAR_1 == null ) || ( VAR_1 == ( this . VAR_3 ) ) ) { return ; } this . VAR_2 = this . VAR_3 ; this . VAR_3 = VAR_1 ; }
The following code may contain bugs. Write a refined code without bugs. public java.lang.String getName ( ) { return METHOD_1 ( ) . METHOD_2 ( ) ; }
public java.lang.String getName ( ) { return METHOD_1 ( ) . getName ( ) ; }
The following code may contain bugs. Write a refined code without bugs. private boolean METHOD_1 ( TYPE_1 < ? > VAR_1 , TYPE_2 VAR_2 ) { return ( VAR_1 == ( VAR_3 ) ) || ( VAR_1 == ( VAR_4 ) ) ; }
private boolean METHOD_1 ( TYPE_1 < ? > VAR_1 , TYPE_2 VAR_2 ) { return VAR_1 == ( VAR_3 ) ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( TYPE_1 VAR_1 ) { VAR_2 = VAR_3 ; METHOD_2 ( ) ; }
public void METHOD_1 ( TYPE_1 VAR_1 ) { METHOD_2 ( ) ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( ) { if ( VAR_1 ) { java.lang.System.out.println ( ( ( STRING_1 + ( VAR_2 ) ) + STRING_2 ) ) ; VAR_3 . METHOD_2 ( ) ; } }
public void METHOD_1 ( ) { ( VAR_2 ) ++ ; }
The following code may contain bugs. Write a refined code without bugs. protected void METHOD_1 ( android.view.View view , TYPE_1 VAR_1 , int position ) { TYPE_2 VAR_2 = ( ( TYPE_2 ) ( view . METHOD_2 ( VAR_3 ) ) ) ; VAR_2 . setText ( STRING_1 ) ; VAR_2 . setText ( VAR_1 . METHOD_3 ( ) ) ; }
protected void METHOD_1 ( android.view.View view , TYPE_1 VAR_1 , int position ) { TYPE_2 VAR_2 = ( ( TYPE_2 ) ( view . METHOD_2 ( VAR_3 ) ) ) ; VAR_2 . setText ( VAR_1 . METHOD_3 ( ) ) ; }
The following code may contain bugs. Write a refined code without bugs. public int METHOD_1 ( ) { return this . VAR_1 . METHOD_2 ( ) ; }
public int METHOD_1 ( ) { return this . b ; }
The following code may contain bugs. Write a refined code without bugs. protected java.lang.String METHOD_1 ( int VAR_1 ) { byte [ ] result = METHOD_2 ( VAR_1 ) ; if ( result == null ) { return null ; } return new java.lang.String ( result , VAR_2 ) ; }
protected java.lang.String METHOD_1 ( int VAR_1 ) { byte [ ] result = METHOD_2 ( VAR_1 ) ; return new java.lang.String ( result , VAR_2 ) ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( final TYPE_1 VAR_1 ) { super . METHOD_1 ( VAR_1 ) ; VAR_2 . METHOD_1 ( VAR_1 ) ; }
public void METHOD_1 ( final TYPE_1 VAR_1 ) { VAR_2 . METHOD_1 ( VAR_1 ) ; super . METHOD_1 ( VAR_1 ) ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( int VAR_1 ) { android.content.Intent intent = new android.content.Intent ( context , VAR_2 ) ; intent . METHOD_2 ( STRING_1 , VAR_3 . METHOD_3 ( VAR_1 ) ) ; VAR_3 . METHOD_4 ( ) ; VAR_4 . METHOD_5 ( intent ) ; }
public void METHOD_1 ( int VAR_1 ) { android.content.Intent intent = new android.content.Intent ( context , VAR_2 ) ; intent . METHOD_2 ( STRING_1 , VAR_3 . METHOD_3 ( VAR_1 ) ) ; VAR_4 . METHOD_5 ( intent ) ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( ) { if ( ! ( METHOD_2 ( ) ) ) { VAR_1 . METHOD_3 ( VAR_2 ) ; METHOD_4 ( ) ; } else { VAR_3 . METHOD_5 ( ) ; } }
public void METHOD_1 ( ) { if ( ! ( METHOD_2 ( ) ) ) { VAR_1 . METHOD_3 ( VAR_2 ) ; METHOD_4 ( ) ; } else { VAR_3 . METHOD_5 ( false ) ; } }
The following code may contain bugs. Write a refined code without bugs. public TYPE_1 METHOD_1 ( ) { java.lang.String VAR_1 = VAR_2 . METHOD_2 ( STRING_1 , STRING_2 ) ; VAR_1 = ( STRING_3 + VAR_1 ) + STRING_4 ; java.lang.System.out.println ( VAR_1 ) ; TYPE_1 result = VAR_3 . METHOD_3 ( VAR_1 , VAR_4 class ) ; return result ; }
public TYPE_1 METHOD_1 ( ) { java.lang.String VAR_1 = VAR_2 . METHOD_2 ( STRING_1 , STRING_2 ) ; VAR_1 = ( STRING_3 + VAR_1 ) + STRING_4 ; TYPE_1 result = VAR_3 . METHOD_3 ( VAR_1 , VAR_4 class ) ; return result ; }
The following code may contain bugs. Write a refined code without bugs. protected abstract TYPE_1 < TYPE_2 > iterator ( ) ;
public abstract TYPE_1 < TYPE_2 > iterator ( ) ;
The following code may contain bugs. Write a refined code without bugs. protected void METHOD_1 ( TYPE_1 VAR_1 ) { super . METHOD_1 ( VAR_1 ) ; METHOD_2 ( VAR_2 ) ; METHOD_3 ( ) ; VAR_3 = ( ( TYPE_2 ) ( getIntent ( ) . METHOD_4 ( STRING_1 ) ) ) ; METHOD_5 ( ) ; }
protected void METHOD_1 ( TYPE_1 VAR_1 ) { super . METHOD_1 ( VAR_1 ) ; METHOD_2 ( VAR_2 ) ; VAR_3 = ( ( TYPE_2 ) ( getIntent ( ) . METHOD_4 ( STRING_1 ) ) ) ; METHOD_3 ( ) ; METHOD_5 ( ) ; }
The following code may contain bugs. Write a refined code without bugs. public static TYPE_1 METHOD_1 ( ) { if ( ( VAR_1 . METHOD_2 ( ) ) == false ) { VAR_1 . METHOD_3 ( VAR_2 ) ; return VAR_2 ; } else { return null ; } }
public static TYPE_1 METHOD_1 ( ) { if ( ( VAR_1 . METHOD_2 ( ) ) == true ) { VAR_1 . METHOD_3 ( VAR_2 ) ; return VAR_2 ; } else { return null ; } }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( ) { VAR_1 . METHOD_2 ( VAR_2 , VAR_3 . METHOD_3 ( ) ) ; }
public void METHOD_1 ( ) { VAR_1 . METHOD_2 ( VAR_2 , array ) ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( java.lang.String query ) { TYPE_1 . METHOD_2 ( query , this , VAR_1 ) ; }
public void METHOD_1 ( java.lang.String query ) { TYPE_1 . METHOD_2 ( query , this , VAR_1 , ( - 1 ) ) ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( final TYPE_1 node , final TYPE_2 VAR_1 , final TYPE_3 VAR_2 ) { METHOD_1 ( node , VAR_1 ) ; METHOD_2 ( VAR_2 ) ; }
public void METHOD_1 ( final TYPE_1 node , final TYPE_2 VAR_1 , final TYPE_3 VAR_2 ) { METHOD_1 ( node , VAR_1 , false ) ; METHOD_2 ( VAR_2 ) ; }
The following code may contain bugs. Write a refined code without bugs. public static TYPE_1 getColor ( TYPE_2 type ) { TYPE_1 c = TYPE_3 . get ( TYPE_4 . METHOD_1 ( type ) ) ; return c == null ? VAR_1 : c ; }
public static TYPE_1 getColor ( TYPE_2 type ) { final TYPE_1 c = ( type == null ) ? null : TYPE_3 . get ( type ) ; return c == null ? VAR_1 : c ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( ) { VAR_1 . setText ( str ) ; }
public void METHOD_1 ( ) { VAR_1 . setText ( text ) ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( TYPE_1 VAR_1 ) { super . METHOD_2 ( VAR_1 ) ; METHOD_3 ( VAR_2 ) ; }
public void METHOD_2 ( TYPE_1 VAR_1 ) { super . METHOD_2 ( VAR_1 ) ; METHOD_3 ( VAR_2 ) ; }
The following code may contain bugs. Write a refined code without bugs. public static java.util.Map < ? , ? > METHOD_1 ( java.lang.String VAR_1 ) { return ( ( java.util.Map < ? , ? > ) ( TYPE_1 . METHOD_2 ( VAR_1 , TYPE_2 . METHOD_3 ( VAR_2 , true ) ) ) ) ; }
public static java.util.Map < ? , ? > METHOD_1 ( java.lang.CharSequence VAR_1 ) { return ( ( java.util.Map < ? , ? > ) ( TYPE_1 . METHOD_2 ( VAR_1 . toString ( ) , TYPE_2 . METHOD_3 ( VAR_2 , true ) ) ) ) ; }
The following code may contain bugs. Write a refined code without bugs. public boolean METHOD_1 ( android.view.View view , java.lang.Object VAR_1 ) { return ( view instanceof TYPE_1 ) && ( ( ( TYPE_2 ) ( ( ( TYPE_1 ) ( view ) ) . METHOD_2 ( ) ) ) . VAR_2 . equals ( VAR_1 ) ) ; }
public boolean METHOD_1 ( android.view.View view , java.lang.Object VAR_1 ) { return VAR_1 == view ; }
The following code may contain bugs. Write a refined code without bugs. public TYPE_1 METHOD_1 ( ) { TYPE_2 . METHOD_2 ( ) ; try { return VAR_1 ; } finally { TYPE_2 . METHOD_3 ( ) ; } }
public TYPE_1 METHOD_1 ( ) { METHOD_2 ( ) ; try { return VAR_1 ; } finally { METHOD_3 ( ) ; } }
The following code may contain bugs. Write a refined code without bugs. public java.lang.Object METHOD_1 ( ) { TYPE_1 VAR_1 = METHOD_2 ( ) ; if ( VAR_1 . isEmpty ( ) ) { return null ; } return VAR_1 . METHOD_3 ( ) . iterator ( ) . METHOD_4 ( ) ; }
public java.lang.Object METHOD_1 ( ) { TYPE_1 VAR_1 = METHOD_2 ( ) ; if ( ( VAR_1 == null ) || ( VAR_1 . isEmpty ( ) ) ) { return null ; } return VAR_1 . METHOD_3 ( ) . iterator ( ) . METHOD_4 ( ) ; }
The following code may contain bugs. Write a refined code without bugs. protected void execute ( ) { if ( ( ! ( VAR_1 ) ) && ( ( VAR_2 . get ( ) ) >= ( VAR_3 ) ) ) { VAR_4 . METHOD_1 ( VAR_5 ) ; VAR_2 . METHOD_2 ( ) ; VAR_1 = true ; } }
protected void execute ( ) { if ( ( ! ( VAR_1 ) ) && ( ( VAR_2 . get ( ) ) >= ( VAR_3 ) ) ) { VAR_4 . set ( VAR_5 ) ; VAR_2 . METHOD_2 ( ) ; VAR_1 = true ; } }
The following code may contain bugs. Write a refined code without bugs. public void put ( java.lang.String name , TYPE_1 VAR_1 ) { VAR_2 . put ( name , VAR_1 ) ; }
public void put ( java.lang.String name , TYPE_1 VAR_1 ) { VAR_2 . put ( name . toLowerCase ( ) , VAR_1 ) ; }
The following code may contain bugs. Write a refined code without bugs. protected java.lang.Object METHOD_1 ( ) throws TYPE_1 { TYPE_2 c = new TYPE_2 ( VAR_1 ) ; c . METHOD_2 ( VAR_2 ) ; c . METHOD_3 ( ( ( TYPE_3 ) ( date . METHOD_1 ( ) ) ) ) ; return c ; }
protected java.lang.Object METHOD_1 ( ) throws TYPE_1 { TYPE_2 c = new TYPE_2 ( ( ( TYPE_3 ) ( date . METHOD_1 ( ) ) ) , VAR_1 , VAR_2 ) ; return c ; }
The following code may contain bugs. Write a refined code without bugs. public int compareTo ( TYPE_1 VAR_1 ) { return this . METHOD_1 ( ) . compareTo ( VAR_1 . METHOD_1 ( ) ) ; }
public int compareTo ( TYPE_1 VAR_1 ) { return - ( this . METHOD_1 ( ) . compareTo ( VAR_1 . METHOD_1 ( ) ) ) ; }
The following code may contain bugs. Write a refined code without bugs. private void METHOD_1 ( ) { int VAR_1 = VAR_2 . length ; int VAR_3 = VAR_1 * INT_1 ; double [ ] VAR_4 = new double [ VAR_3 ] ; VAR_4 = TYPE_1 . METHOD_2 ( VAR_2 , VAR_3 ) ; VAR_2 = VAR_4 ; }
private void METHOD_1 ( ) { int VAR_1 = VAR_2 . length ; int VAR_3 = VAR_1 * INT_1 ; double [ ] VAR_4 = TYPE_1 . METHOD_2 ( VAR_2 , VAR_3 ) ; VAR_2 = VAR_4 ; }
The following code may contain bugs. Write a refined code without bugs. public void update ( ) { VAR_1 . METHOD_1 ( ) ; java.util.ArrayList < java.lang.String > VAR_1 = VAR_2 . METHOD_2 ( ) ; VAR_3 . METHOD_3 ( ) ; }
public void update ( ) { java.util.ArrayList < java.lang.String > VAR_1 = VAR_2 . METHOD_2 ( ) ; VAR_3 . METHOD_3 ( ) ; }
The following code may contain bugs. Write a refined code without bugs. public static boolean METHOD_1 ( final java.lang.String VAR_1 ) { java.lang.String value = TYPE_1 . METHOD_2 ( VAR_1 ) ; if ( value == null ) { return false ; } return "true" . equals ( TYPE_2 . toLowerCase ( value ) ) ; }
public static boolean METHOD_1 ( final java.lang.String VAR_1 ) { return false ; }
The following code may contain bugs. Write a refined code without bugs. public abstract void METHOD_1 ( int VAR_1 , int VAR_2 , boolean VAR_3 ) ;
public abstract void METHOD_1 ( boolean VAR_3 ) ;
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( ) { TYPE_1 VAR_1 = new TYPE_1 ( 0 ) ; }
public void METHOD_1 ( ) { new TYPE_1 ( 0 ) ; }
The following code may contain bugs. Write a refined code without bugs. protected void METHOD_1 ( ) { VAR_1 . METHOD_2 ( VAR_2 ) ; VAR_3 . METHOD_2 ( VAR_2 ) ; VAR_4 . METHOD_2 ( VAR_2 ) ; VAR_5 . METHOD_2 ( VAR_2 ) ; VAR_6 . METHOD_2 ( VAR_2 ) ; }
protected void METHOD_1 ( ) { VAR_1 . METHOD_2 ( VAR_2 ) ; VAR_3 . METHOD_2 ( VAR_2 ) ; VAR_4 . METHOD_2 ( VAR_2 ) ; VAR_5 . METHOD_2 ( VAR_2 ) ; }
The following code may contain bugs. Write a refined code without bugs. public void start ( ) { if ( ! ( VAR_1 ) ) { return ; } if ( ( VAR_2 . size ( ) ) == 0 ) { return ; } VAR_1 = false ; }
public void start ( ) { if ( ! ( this . VAR_1 ) ) { return ; } if ( ( VAR_2 . size ( ) ) == 0 ) { return ; } this . VAR_1 = false ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( TYPE_1 VAR_1 ) { synchronized ( VAR_1 ) { position . METHOD_1 ( VAR_1 . position ) ; VAR_2 = VAR_3 ; VAR_4 = VAR_5 ; VAR_6 = VAR_7 ; VAR_8 = VAR_9 ; VAR_10 = VAR_11 ; } }
public synchronized void METHOD_1 ( TYPE_1 VAR_1 ) { synchronized ( VAR_1 ) { position . METHOD_1 ( VAR_1 . position ) ; VAR_2 = VAR_3 ; VAR_4 = VAR_5 ; VAR_6 = VAR_7 ; VAR_8 = VAR_9 ; VAR_10 = VAR_11 ; } }
The following code may contain bugs. Write a refined code without bugs. public static int sum ( int a , int b ) { return a * b ; }
public static int sum ( int a , int b ) { return a + b ; }
The following code may contain bugs. Write a refined code without bugs. public static void METHOD_1 ( java.lang.String name , java.lang.String VAR_1 ) { VAR_2 . name = name ; VAR_3 = VAR_1 ; }
public void METHOD_1 ( java.lang.String name , java.lang.String VAR_1 ) { this . name = name ; this . VAR_1 = VAR_1 ; }
The following code may contain bugs. Write a refined code without bugs. public double METHOD_1 ( TYPE_1 VAR_1 , TYPE_2 VAR_2 ) { for ( TYPE_3 VAR_3 : VAR_4 ) if ( VAR_3 . getId ( ) . equals ( VAR_1 ) ) return VAR_3 . METHOD_1 ( VAR_2 ) ; return 0 ; }
public double METHOD_1 ( TYPE_1 VAR_1 , TYPE_2 VAR_2 ) { for ( TYPE_3 VAR_3 : VAR_4 ) if ( VAR_3 . getId ( ) . equals ( VAR_1 . toString ( ) ) ) return VAR_3 . METHOD_1 ( VAR_2 ) ; return 0 ; }
The following code may contain bugs. Write a refined code without bugs. public TYPE_1 METHOD_1 ( java.lang.String name , java.lang.String string ) { return null ; }
public TYPE_1 METHOD_1 ( java.lang.String name , java.lang.String string ) { return new TYPE_1 ( ) ; }
The following code may contain bugs. Write a refined code without bugs. private void METHOD_1 ( java.awt.Color VAR_1 ) { TYPE_1 VAR_2 ; if ( ( VAR_2 = METHOD_2 ( ) ) instanceof TYPE_2 ) { ( ( TYPE_2 ) ( VAR_2 ) ) . METHOD_3 ( VAR_1 ) ; } }
private void METHOD_1 ( java.awt.Color VAR_1 ) { TYPE_1 VAR_2 = METHOD_2 ( ) ; if ( VAR_2 instanceof TYPE_2 ) { ( ( TYPE_2 ) ( VAR_2 ) ) . METHOD_3 ( VAR_1 ) ; } }
The following code may contain bugs. Write a refined code without bugs. public final void METHOD_1 ( TYPE_1 VAR_1 ) { this . VAR_1 = VAR_1 ; METHOD_2 ( true ) ; }
public final void METHOD_1 ( TYPE_1 VAR_1 ) { this . VAR_1 = VAR_1 ; METHOD_2 ( ) ; }
The following code may contain bugs. Write a refined code without bugs. public TYPE_1 METHOD_1 ( TYPE_2 VAR_1 , int VAR_2 ) { android.view.View VAR_3 = VAR_4 . METHOD_2 ( VAR_5 , VAR_1 , false ) ; TYPE_1 VAR_6 = new TYPE_1 ( ( ( TYPE_3 ) ( VAR_3 ) ) ) ; return VAR_6 ; }
public TYPE_1 METHOD_1 ( TYPE_2 VAR_1 , int VAR_2 ) { android.view.View VAR_3 = VAR_4 . METHOD_2 ( VAR_5 , VAR_1 , false ) ; TYPE_1 VAR_6 = new TYPE_1 ( VAR_3 ) ; return VAR_6 ; }
The following code may contain bugs. Write a refined code without bugs. public boolean equals ( java.lang.Object obj ) { return ( obj instanceof TYPE_1 ) && ( this . METHOD_1 ( ) . equals ( ( ( TYPE_2 ) ( obj ) ) . METHOD_1 ( ) ) ) ; }
public boolean equals ( java.lang.Object obj ) { return ( obj instanceof TYPE_2 ) && ( this . METHOD_1 ( ) . equals ( ( ( TYPE_2 ) ( obj ) ) . METHOD_1 ( ) ) ) ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( ) { TYPE_1 f = new TYPE_1 ( null , VAR_1 ) ; java.lang.System.out.println ( ( STRING_1 + ( f . METHOD_2 ( VAR_2 ) ) ) ) ; }
public void METHOD_1 ( ) { TYPE_1 f = new TYPE_1 ( null , VAR_1 , null ) ; java.lang.System.out.println ( ( STRING_1 + ( f . METHOD_2 ( VAR_2 ) ) ) ) ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( TYPE_1 VAR_1 ) { METHOD_2 ( ) ; TYPE_2 VAR_2 = TYPE_2 . METHOD_3 ( STRING_1 ) ; TYPE_3 VAR_3 = TYPE_3 . METHOD_4 ( VAR_2 , VAR_1 . toString ( ) ) ; VAR_4 . METHOD_5 ( VAR_3 ) ; }
public void METHOD_1 ( TYPE_1 VAR_1 ) { TYPE_2 VAR_2 = TYPE_2 . METHOD_3 ( STRING_1 ) ; VAR_3 = TYPE_3 . METHOD_4 ( VAR_2 , VAR_1 . toString ( ) ) ; }
The following code may contain bugs. Write a refined code without bugs. protected void METHOD_1 ( TYPE_1 VAR_1 ) { super . METHOD_1 ( VAR_1 ) ; if ( VAR_1 == null ) { if ( ! ( VAR_2 . METHOD_2 ( getIntent ( ) ) ) ) { VAR_2 . METHOD_3 ( ) ; } } }
protected void METHOD_1 ( TYPE_1 VAR_1 ) { super . METHOD_1 ( VAR_1 ) ; if ( VAR_1 == null ) { VAR_2 . METHOD_2 ( getIntent ( ) ) ; VAR_2 . METHOD_3 ( ) ; } }
The following code may contain bugs. Write a refined code without bugs. public static TYPE_1 METHOD_1 ( final TYPE_2 VAR_1 , final TYPE_3 < java.io.IOException > VAR_2 ) { return TYPE_4 . METHOD_2 ( new TYPE_5 ( VAR_1 , VAR_2 ) ) ; }
public static TYPE_1 METHOD_1 ( final TYPE_2 VAR_1 , final TYPE_3 < java.io.IOException > VAR_2 ) { return TYPE_4 . METHOD_1 ( new TYPE_5 ( VAR_1 , VAR_2 ) ) ; }
The following code may contain bugs. Write a refined code without bugs. public TYPE_1 get ( TYPE_2 id ) { TYPE_1 obj = VAR_1 . METHOD_1 ( type , id ) ; if ( obj != null ) VAR_1 . METHOD_2 ( obj ) ; return obj ; }
public TYPE_1 get ( TYPE_2 id ) { return VAR_1 . METHOD_1 ( type , id ) ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( ) { android.content.Intent VAR_1 = new android.content.Intent ( ) . METHOD_2 ( this , VAR_2 class ) ; METHOD_3 ( VAR_1 ) ; METHOD_4 ( ) ; }
public void METHOD_1 ( ) { android.content.Intent VAR_1 = new android.content.Intent ( this , VAR_2 class ) ; METHOD_3 ( VAR_1 ) ; this . METHOD_4 ( ) ; }
The following code may contain bugs. Write a refined code without bugs. protected TYPE_1 METHOD_1 ( java.util.List < java.lang.String > VAR_1 ) { VAR_2 = VAR_1 ; return this ; }
public TYPE_1 METHOD_1 ( java.util.List < java.lang.String > VAR_1 ) { VAR_2 = VAR_1 ; return this ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( java.lang.String VAR_1 ) { java.lang.String url = VAR_2 . METHOD_2 ( STRING_1 ) ; java.lang.System.out.println ( ( STRING_2 + url ) ) ; VAR_3 . METHOD_3 ( url ) ; VAR_4 . METHOD_4 ( VAR_4 ) ; VAR_3 . METHOD_5 ( STRING_3 ) ; }
public void METHOD_1 ( java.lang.String VAR_1 ) { java.lang.String url = VAR_2 . METHOD_2 ( STRING_1 ) ; java.lang.System.out.println ( ( STRING_2 + url ) ) ; VAR_3 . METHOD_3 ( url ) ; VAR_4 . METHOD_4 ( VAR_4 ) ; VAR_3 . METHOD_5 ( VAR_1 ) ; }
The following code may contain bugs. Write a refined code without bugs. public TYPE_1 METHOD_1 ( double VAR_1 , double VAR_2 ) { return new TYPE_1 ( ( ( x ) + VAR_1 ) , ( ( y ) + VAR_2 ) ) ; }
public TYPE_1 METHOD_1 ( double VAR_1 , double VAR_2 ) { return new TYPE_1 ( ( x += VAR_1 ) , ( y += VAR_2 ) ) ; }
The following code may contain bugs. Write a refined code without bugs. public boolean METHOD_1 ( TYPE_1 item ) { switch ( item . METHOD_2 ( ) ) { case VAR_1 : METHOD_3 ( ) ; return true ; case VAR_2 : METHOD_4 ( ) ; return true ; } return super . METHOD_1 ( item ) ; }
public boolean METHOD_1 ( TYPE_1 item ) { switch ( item . METHOD_2 ( ) ) { case VAR_1 : this . METHOD_3 ( ) ; return true ; case VAR_2 : METHOD_4 ( ) ; return true ; } return super . METHOD_1 ( item ) ; }