input
stringlengths
96
415
output
stringlengths
18
303
The following code may contain bugs. Write a refined code without bugs. private java.io.File METHOD_1 ( ) { java.io.File VAR_1 = new java.io.File ( VAR_2 ) ; METHOD_2 ( VAR_1 ) ; if ( ! ( VAR_1 . METHOD_3 ( ) ) ) { throw new TYPE_1 ( STRING_1 ) ; } return VAR_1 ; }
private java.io.File METHOD_1 ( ) { java.io.File VAR_1 = new java.io.File ( VAR_2 ) ; METHOD_2 ( VAR_1 ) ; VAR_1 . METHOD_3 ( ) ; return VAR_1 ; }
The following code may contain bugs. Write a refined code without bugs. public TYPE_1 METHOD_1 ( TYPE_2 VAR_1 ) throws TYPE_3 , TYPE_4 , TYPE_5 , TYPE_6 { TYPE_7 node = TYPE_8 . METHOD_2 ( VAR_2 . METHOD_3 ( ) , VAR_1 ) . METHOD_4 ( VAR_3 ) ; return METHOD_5 ( node ) ; }
public TYPE_1 METHOD_1 ( TYPE_2 VAR_1 ) throws TYPE_3 , TYPE_4 , TYPE_5 , TYPE_6 { TYPE_7 node = METHOD_4 ( VAR_1 , VAR_3 ) ; return METHOD_5 ( node ) ; }
The following code may contain bugs. Write a refined code without bugs. public static void main ( java.lang.String [ ] arg ) throws java.io.IOException { TYPE_1 VAR_1 = new TYPE_1 ( ) ; VAR_1 . METHOD_1 ( STRING_1 , STRING_2 , INT_1 ) ; }
public static void main ( java.lang.String [ ] arg ) throws java.io.IOException { }
The following code may contain bugs. Write a refined code without bugs. public java.lang.Object METHOD_1 ( TYPE_1 VAR_1 , java.lang.Object a ) { METHOD_2 ( METHOD_3 ( METHOD_4 ( STRING_1 ) , METHOD_5 ( ) , "0" ) ) ; { METHOD_6 ( VAR_1 , a ) ; } METHOD_7 ( ) ; return null ; }
public java.lang.Object METHOD_1 ( TYPE_1 VAR_1 , java.lang.Object a ) { METHOD_2 ( METHOD_4 ( STRING_1 ) ) ; { METHOD_6 ( VAR_1 . get ( 0 ) , a ) ; } METHOD_7 ( ) ; return null ; }
The following code may contain bugs. Write a refined code without bugs. private void METHOD_1 ( TYPE_1 VAR_1 , int VAR_2 ) { for ( int i = 0 ; i < VAR_2 ; i ++ ) { VAR_3 . METHOD_2 ( new TYPE_2 ( VAR_1 ) ) ; } }
private void METHOD_1 ( TYPE_1 VAR_1 , int VAR_2 ) { for ( int i = 0 ; i < VAR_2 ; i ++ ) { VAR_1 . METHOD_1 ( ) ; } }
The following code may contain bugs. Write a refined code without bugs. public static TYPE_1 METHOD_1 ( ) { TYPE_1 VAR_1 = new TYPE_1 ( ) ; VAR_2 = TYPE_2 . METHOD_2 ( ) ; return VAR_1 ; }
public static TYPE_1 METHOD_1 ( ) { return new TYPE_1 ( ) ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( ) { if ( VAR_1 ) { VAR_2 . getView ( ) . METHOD_2 ( VAR_3 ) ; } else { VAR_4 . METHOD_3 ( this , INT_1 ) ; } }
public void METHOD_1 ( ) { if ( VAR_1 ) { } else { VAR_4 . METHOD_3 ( this , INT_1 ) ; } }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( ) { TYPE_1 . assertEquals ( null , VAR_1 . METHOD_2 ( ) ) ; }
public void METHOD_1 ( ) { TYPE_1 . assertEquals ( 0 , VAR_1 . METHOD_2 ( ) . size ( ) ) ; }
The following code may contain bugs. Write a refined code without bugs. protected void METHOD_1 ( ) { METHOD_2 ( ( ( ( ( VAR_1 . METHOD_3 ( ) ) + 1 ) * INT_1 ) + ( VAR_2 ? 1 : 0 ) ) ) ; }
protected void METHOD_1 ( ) { METHOD_2 ( ( ( ( ( VAR_1 . METHOD_3 ( ) ) + 1L ) * INT_1 ) + ( VAR_2 ? 1 : 0 ) ) ) ; }
The following code may contain bugs. Write a refined code without bugs. public TYPE_1 METHOD_1 ( long id ) throws TYPE_2 { TYPE_1 VAR_1 = VAR_2 . METHOD_2 ( id ) ; if ( VAR_1 == null ) { return VAR_2 . METHOD_2 ( id ) ; } return VAR_1 ; }
public TYPE_1 METHOD_1 ( long id ) throws TYPE_2 { TYPE_1 VAR_1 = VAR_2 . METHOD_2 ( id ) ; if ( VAR_1 == null ) { throw new TYPE_2 ( ) ; } return VAR_1 ; }
The following code may contain bugs. Write a refined code without bugs. protected java.lang.Void METHOD_1 ( java.lang.Void ... params ) { try { java.lang.Integer [ ] VAR_1 = TYPE_1 . METHOD_2 ( VAR_2 , this ) ; METHOD_3 ( VAR_1 ) ; } catch ( TYPE_2 VAR_3 ) { VAR_3 . METHOD_4 ( ) ; } return null ; }
protected java.lang.Void METHOD_1 ( java.lang.Void ... params ) { try { result = TYPE_1 . METHOD_2 ( VAR_2 , this ) ; } catch ( TYPE_2 VAR_3 ) { VAR_3 . METHOD_4 ( ) ; } return null ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( ) { METHOD_2 ( ( ! ( VAR_1 . METHOD_3 ( ) ) ) ) ; }
public void METHOD_1 ( ) { VAR_1 . METHOD_1 ( ) ; }
The following code may contain bugs. Write a refined code without bugs. protected int METHOD_1 ( TYPE_1 [ ] VAR_1 , TYPE_2 VAR_2 ) throws TYPE_3 { TYPE_4 VAR_3 = ( ( TYPE_4 ) ( METHOD_2 ( ) ) ) ; return new TYPE_5 ( ) . METHOD_1 ( VAR_1 , VAR_3 , VAR_2 ) ; }
protected int METHOD_1 ( TYPE_1 VAR_1 , TYPE_2 VAR_2 ) throws TYPE_3 { TYPE_4 VAR_3 = ( ( TYPE_4 ) ( METHOD_2 ( ) ) ) ; return new TYPE_5 ( ) . METHOD_1 ( VAR_1 , VAR_3 , VAR_2 ) ; }
The following code may contain bugs. Write a refined code without bugs. public int METHOD_1 ( ) { return ; }
public int METHOD_1 ( ) { return 0 ; }
The following code may contain bugs. Write a refined code without bugs. public boolean METHOD_1 ( int VAR_1 ) { boolean VAR_2 = false ; switch ( VAR_1 ) { case VAR_3 : VAR_2 = VAR_4 . METHOD_2 ( ) ; } return VAR_2 ? true : super . METHOD_1 ( VAR_1 ) ; }
public boolean METHOD_1 ( int VAR_1 ) { boolean VAR_2 = false ; switch ( VAR_1 ) { case VAR_3 : VAR_2 = VAR_4 . METHOD_2 ( ) ; } return VAR_2 || ( super . METHOD_1 ( VAR_1 ) ) ; }
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 ( ) . METHOD_3 ( VAR_2 , VAR_2 ) ; METHOD_4 ( VAR_3 ) ; }
protected void METHOD_1 ( TYPE_1 VAR_1 ) { super . METHOD_1 ( VAR_1 ) ; METHOD_4 ( VAR_3 ) ; }
The following code may contain bugs. Write a refined code without bugs. protected synchronized void METHOD_1 ( boolean VAR_1 , int VAR_2 , int VAR_3 , int VAR_4 , int VAR_5 ) { if ( VAR_1 ) { VAR_6 = new TYPE_1 ( 0 , 0 , METHOD_2 ( ) , METHOD_3 ( ) ) ; } }
protected synchronized void METHOD_1 ( boolean VAR_1 , int VAR_2 , int VAR_3 , int VAR_4 , int VAR_5 ) { if ( VAR_1 ) { this . VAR_6 . set ( 0 , 0 , METHOD_2 ( ) , METHOD_3 ( ) ) ; } }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( java.lang.Boolean value ) { VAR_1 . METHOD_2 ( ) ; if ( value == null ) { VAR_2 . METHOD_3 ( VAR_3 ) ; return ; } VAR_2 . METHOD_4 ( VAR_3 , ( ( boolean ) ( value ) ) ) ; }
public void METHOD_1 ( java.lang.Boolean value ) { VAR_1 . METHOD_2 ( ) ; if ( value == null ) { VAR_2 . METHOD_3 ( VAR_3 ) ; return ; } VAR_2 . METHOD_4 ( VAR_3 , value ) ; }
The following code may contain bugs. Write a refined code without bugs. public void update ( ) { update ( false , null ) ; }
public void update ( ) { update ( true , null ) ; }
The following code may contain bugs. Write a refined code without bugs. private void METHOD_1 ( ) { java.lang.System.out.println ( STRING_1 ) ; VAR_1 = new TYPE_1 ( TYPE_2 . METHOD_1 ( VAR_2 , INT_1 , INT_2 ) ) ; METHOD_2 ( VAR_1 ) ; }
private void METHOD_1 ( ) { VAR_1 = new TYPE_1 ( TYPE_2 . METHOD_1 ( VAR_2 , INT_1 , INT_2 ) ) ; METHOD_2 ( VAR_1 ) ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( boolean VAR_1 ) { for ( int i = 0 ; i ; ) ; }
public void METHOD_1 ( boolean VAR_1 ) { }
The following code may contain bugs. Write a refined code without bugs. public static TYPE_1 METHOD_1 ( android.content.Context context , int VAR_1 ) { TYPE_1 VAR_2 = new TYPE_1 ( context ) ; VAR_3 = VAR_1 ; return VAR_2 ; }
public static TYPE_1 METHOD_1 ( android.content.Context context ) { TYPE_1 VAR_2 = new TYPE_1 ( context ) ; return VAR_2 ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( TYPE_1 c ) { c . METHOD_2 ( ) ; listener . METHOD_3 ( c ) ; c . METHOD_4 ( ) ; }
public void METHOD_1 ( TYPE_1 c ) { if ( c == null ) return ; c . METHOD_2 ( ) ; listener . METHOD_3 ( c ) ; c . METHOD_4 ( ) ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( TYPE_1 b ) { METHOD_2 ( VAR_1 ) ; VAR_2 = b ; new java.lang.Thread ( VAR_2 ) . start ( ) ; }
public void METHOD_1 ( TYPE_1 b ) { METHOD_2 ( VAR_1 ) ; VAR_2 = b ; t = new java.lang.Thread ( VAR_2 ) ; t . start ( ) ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( ) { VAR_1 . METHOD_2 ( ) ; METHOD_3 ( 0 ) ; }
public void METHOD_1 ( ) { VAR_1 . METHOD_2 ( ) ; }
The following code may contain bugs. Write a refined code without bugs. private void METHOD_1 ( ) { METHOD_2 ( ) ; METHOD_3 ( ) ; METHOD_4 ( ) ; METHOD_5 ( ) ; METHOD_6 ( ) ; METHOD_7 ( ) ; }
public void METHOD_1 ( ) { METHOD_2 ( ) ; METHOD_3 ( ) ; METHOD_4 ( ) ; METHOD_5 ( ) ; METHOD_6 ( ) ; METHOD_7 ( ) ; }
The following code may contain bugs. Write a refined code without bugs. public static TYPE_1 METHOD_1 ( java.lang.String VAR_1 , java.lang.String VAR_2 , java.lang.Boolean VAR_3 ) { TYPE_1 VAR_4 = new TYPE_1 ( ) ; VAR_5 = VAR_1 ; VAR_6 = VAR_2 ; VAR_7 = VAR_3 ; return new TYPE_1 ( ) ; }
public static TYPE_1 METHOD_1 ( java.lang.String VAR_1 , java.lang.String VAR_2 , java.lang.Boolean VAR_3 ) { TYPE_1 VAR_4 = new TYPE_1 ( ) ; VAR_5 = VAR_1 ; VAR_6 = VAR_2 ; VAR_7 = VAR_3 ; return VAR_4 ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( ) { VAR_1 . setText ( ( ( java.lang.Double . toString ( TYPE_1 . METHOD_2 ( ) . METHOD_3 ( ) . METHOD_4 ( ) ) ) + STRING_1 ) ) ; }
public void METHOD_1 ( ) { VAR_1 . setText ( ( ( java.lang.Double . toString ( METHOD_4 ( ) ) ) + STRING_1 ) ) ; }
The following code may contain bugs. Write a refined code without bugs. protected boolean METHOD_1 ( TYPE_1 k ) { return ( k instanceof TYPE_2 ) && ( VAR_1 . METHOD_1 ( VAR_2 . METHOD_2 ( ( ( TYPE_2 ) ( k ) ) . METHOD_3 ( ) ) ) ) ; }
private boolean METHOD_1 ( TYPE_1 k ) { return ( k instanceof TYPE_2 ) && ( VAR_1 . METHOD_1 ( VAR_2 . METHOD_2 ( ( ( TYPE_2 ) ( k ) ) . METHOD_3 ( ) ) ) ) ; }
The following code may contain bugs. Write a refined code without bugs. public static boolean METHOD_1 ( android.content.Context context ) { if ( TYPE_1 . METHOD_2 ( context ) ) { return true ; } TYPE_2 . METHOD_3 ( context , VAR_1 ) ; return false ; }
public static boolean METHOD_1 ( android.content.Context context ) { if ( context == null ) { return false ; } if ( TYPE_1 . METHOD_2 ( context ) ) { return true ; } TYPE_2 . METHOD_3 ( context , VAR_1 ) ; return false ; }
The following code may contain bugs. Write a refined code without bugs. private int METHOD_1 ( java.lang.String key , int VAR_1 ) { return ( key . METHOD_2 ( ) ) % VAR_1 ; }
private int METHOD_1 ( java.lang.String key , int VAR_1 ) { return ( java.lang.Math.abs ( key . METHOD_2 ( ) ) ) % VAR_1 ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( ) { super . METHOD_1 ( ) ; VAR_1 = TYPE_1 . METHOD_2 ( getActivity ( ) ) ; if ( METHOD_3 ( ) ) { new TYPE_2 ( ) . METHOD_4 ( VAR_2 , true ) ; } METHOD_5 ( ) ; }
public void METHOD_1 ( ) { super . METHOD_1 ( ) ; VAR_1 = TYPE_1 . METHOD_2 ( getActivity ( ) ) ; METHOD_5 ( ) ; }
The following code may contain bugs. Write a refined code without bugs. public boolean METHOD_1 ( ) { METHOD_2 ( ) ; VAR_1 = list . METHOD_3 ( STRING_1 , listener ) ; TYPE_1 . METHOD_4 ( VAR_2 , STRING_2 ) ; return false ; }
public boolean METHOD_1 ( ) { METHOD_2 ( ) ; VAR_1 = list . METHOD_3 ( null , listener ) ; TYPE_1 . METHOD_4 ( VAR_2 , STRING_2 ) ; return false ; }
The following code may contain bugs. Write a refined code without bugs. public int METHOD_1 ( java.lang.String key , int VAR_1 ) { if ( key == null ) { return ( VAR_2 . METHOD_2 ( ) ) % VAR_1 ; } else { return ( key . METHOD_3 ( ) ) % VAR_1 ; } }
public int METHOD_1 ( java.lang.String key , int VAR_1 ) { if ( key == null ) { return ( VAR_2 . METHOD_2 ( ) ) % VAR_1 ; } else { return ( java.lang.Math.abs ( key . METHOD_3 ( ) ) ) % VAR_1 ; } }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( ) { METHOD_2 ( VAR_1 ) ; VAR_2 = ( VAR_3 ) / ( VAR_4 . METHOD_3 ( ) ) ; VAR_5 = ( VAR_5 ) + ( VAR_2 ) ; }
public void METHOD_1 ( ) { METHOD_2 ( VAR_1 ) ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( android.view.View view ) { if ( ! ( VAR_1 ) ) { VAR_1 = true ; METHOD_2 ( ) ; METHOD_3 ( ) ; } VAR_2 . METHOD_4 ( ) ; }
public void METHOD_1 ( android.view.View view ) { VAR_2 . METHOD_4 ( ) ; }
The following code may contain bugs. Write a refined code without bugs. public java.lang.Object METHOD_1 ( ) { return new TYPE_1 ( VAR_1 . METHOD_2 ( ) . METHOD_3 ( ) ) . METHOD_4 ( VAR_2 , VAR_1 ) ; }
public java.lang.Object METHOD_1 ( ) { if ( ( this . VAR_2 ) == null ) return null ; return new TYPE_1 ( VAR_1 . METHOD_2 ( ) . METHOD_3 ( ) ) . METHOD_4 ( VAR_2 , VAR_1 ) ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( ) { if ( TYPE_1 . METHOD_2 ( ) . METHOD_3 ( ) ) VAR_1 . METHOD_4 ( this , VAR_2 ) ; else METHOD_5 ( METHOD_6 ( ) ) ; }
public void METHOD_1 ( ) { if ( ( TYPE_1 . METHOD_2 ( ) . METHOD_3 ( ) ) == false ) { VAR_1 . METHOD_4 ( this , VAR_2 ) ; } else { METHOD_5 ( METHOD_6 ( ) ) ; } }
The following code may contain bugs. Write a refined code without bugs. private void METHOD_1 ( java.lang.String VAR_1 ) { VAR_2 = VAR_1 ; TYPE_1 VAR_3 = new TYPE_1 ( ( ( STRING_1 + ( VAR_2 ) ) + STRING_2 ) ) ; VAR_4 = VAR_3 . METHOD_2 ( ) ; VAR_5 = 1 ; VAR_6 = 1 ; }
private void METHOD_1 ( java.lang.String VAR_1 ) { VAR_2 = VAR_1 ; VAR_4 = new TYPE_1 ( ( ( STRING_1 + ( VAR_2 ) ) + STRING_2 ) ) . METHOD_2 ( ) ; VAR_5 = 1 ; VAR_6 = 1 ; }
The following code may contain bugs. Write a refined code without bugs. private void METHOD_1 ( TYPE_1 VAR_1 , TYPE_2 name ) { if ( VAR_2 . equals ( TYPE_3 ) ) { METHOD_2 ( VAR_1 ) ; } }
private void METHOD_1 ( TYPE_1 VAR_1 , TYPE_2 name ) { if ( VAR_2 . equals ( TYPE_3 . toString ( ) ) ) { METHOD_2 ( VAR_1 ) ; } }
The following code may contain bugs. Write a refined code without bugs. public int METHOD_1 ( android.content.Intent intent , int VAR_1 , int VAR_2 ) { METHOD_2 ( ) ; VAR_3 = true ; new TYPE_1 ( METHOD_3 ( ) ) . execute ( STRING_1 ) ; return VAR_4 ; }
public int METHOD_1 ( android.content.Intent intent , int VAR_1 , int VAR_2 ) { METHOD_2 ( ) ; return VAR_4 ; }
The following code may contain bugs. Write a refined code without bugs. public static TYPE_1 METHOD_1 ( int VAR_1 , boolean VAR_2 , TYPE_2 status ) { TYPE_1 VAR_3 = TYPE_3 . METHOD_2 ( VAR_4 , VAR_1 , status , 1 ) ; TYPE_3 . METHOD_3 ( VAR_4 , VAR_2 , 0 , VAR_3 ) ; return VAR_3 ; }
public static TYPE_1 METHOD_1 ( int VAR_1 , boolean VAR_2 , TYPE_2 status ) { TYPE_1 VAR_3 = TYPE_3 . METHOD_2 ( VAR_4 , VAR_1 , status , 0 ) ; TYPE_3 . METHOD_3 ( VAR_4 , VAR_2 , 0 , VAR_3 ) ; return VAR_3 ; }
The following code may contain bugs. Write a refined code without bugs. private void METHOD_1 ( TYPE_1 VAR_1 , boolean VAR_2 ) { METHOD_2 ( VAR_1 , VAR_3 . METHOD_3 ( ) , VAR_3 . METHOD_4 ( ) , VAR_2 ) ; TYPE_2 . METHOD_5 ( this , VAR_1 , VAR_2 ) ; }
private void METHOD_1 ( TYPE_1 VAR_1 , boolean VAR_2 ) { METHOD_2 ( VAR_1 , VAR_3 . METHOD_3 ( ) , VAR_3 . METHOD_4 ( ) , VAR_2 ) ; TYPE_2 . METHOD_5 ( this , VAR_1 , ( ! VAR_2 ) ) ; }
The following code may contain bugs. Write a refined code without bugs. public static byte [ ] METHOD_1 ( ) { return TYPE_1 . METHOD_2 ( ) . METHOD_3 ( ) . METHOD_4 ( ) ; }
public static byte [ ] METHOD_1 ( ) { return TYPE_1 . METHOD_2 ( ) . METHOD_1 ( ) . METHOD_4 ( ) ; }
The following code may contain bugs. Write a refined code without bugs. public synchronized void METHOD_1 ( final TYPE_1 < ? > source ) { VAR_1 . add ( TYPE_2 . METHOD_2 ( source ) ) ; }
public synchronized void METHOD_1 ( final TYPE_1 < ? > source ) { VAR_1 . add ( TYPE_2 . METHOD_2 ( source , this ) ) ; }
The following code may contain bugs. Write a refined code without bugs. public static java.lang.String METHOD_1 ( TYPE_1 VAR_1 ) { switch ( VAR_1 ) { case VAR_2 : return STRING_1 ; case VAR_3 : return STRING_2 ; } return STRING_3 ; }
public static java.lang.String METHOD_1 ( TYPE_1 VAR_1 ) { if ( VAR_1 == null ) { return STRING_3 ; } switch ( VAR_1 ) { case VAR_2 : return STRING_1 ; case VAR_3 : return STRING_2 ; } return STRING_3 ; }
The following code may contain bugs. Write a refined code without bugs. private boolean METHOD_1 ( ) { TYPE_1 VAR_1 = ( ( TYPE_1 ) ( METHOD_2 ( VAR_2 ) ) ) ; TYPE_2 VAR_3 = VAR_1 . METHOD_3 ( ) ; return ( VAR_3 != null ) && ( VAR_3 . METHOD_4 ( ) ) ; }
protected boolean METHOD_1 ( ) { TYPE_1 VAR_1 = ( ( TYPE_1 ) ( METHOD_2 ( VAR_2 ) ) ) ; TYPE_2 VAR_3 = VAR_1 . METHOD_3 ( ) ; return ( VAR_3 != null ) && ( VAR_3 . METHOD_4 ( ) ) ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( ) { java.lang.String VAR_1 = STRING_1 ; TYPE_1 VAR_2 = new TYPE_1 ( STRING_2 ) ; assertEquals ( TYPE_2 . METHOD_2 ( VAR_1 ) , VAR_2 ) ; }
public void METHOD_1 ( ) { java.lang.String VAR_1 = STRING_1 ; TYPE_1 VAR_2 = new TYPE_1 ( STRING_2 ) ; assertEquals ( TYPE_2 . METHOD_2 ( VAR_1 , true ) , VAR_2 ) ; }
The following code may contain bugs. Write a refined code without bugs. private TYPE_1 METHOD_1 ( int offset , int VAR_1 ) throws TYPE_2 , java.io.IOException { return METHOD_1 ( offset , VAR_1 , false ) ; }
private TYPE_1 METHOD_1 ( int offset ) throws TYPE_2 , java.io.IOException { return METHOD_1 ( offset , false ) ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( int x , int VAR_1 ) { if ( ( x * VAR_1 ) < ( this . VAR_2 ) ) { this . VAR_3 += x ; this . VAR_3 -= x * VAR_1 ; } }
public void METHOD_1 ( int x , int VAR_1 ) { if ( ( x * VAR_1 ) < ( this . VAR_2 ) ) { this . VAR_3 += x ; this . VAR_2 -= x * VAR_1 ; } }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( java.lang.String VAR_1 ) { VAR_2 = VAR_3 . METHOD_2 ( VAR_1 ) ; }
public void METHOD_1 ( java.lang.String VAR_1 ) { if ( VAR_1 != null ) { VAR_2 = VAR_3 . METHOD_2 ( VAR_1 ) ; } }
The following code may contain bugs. Write a refined code without bugs. public boolean METHOD_1 ( ) { return VAR_1 . isEmpty ( ) ; }
public boolean METHOD_1 ( ) { return ! ( VAR_1 . isEmpty ( ) ) ; }
The following code may contain bugs. Write a refined code without bugs. public TYPE_1 METHOD_1 ( java.lang.String VAR_1 ) { java.lang.String VAR_2 = TYPE_2 . toLowerCase ( VAR_1 , VAR_3 ) ; TYPE_3 VAR_4 = VAR_5 . METHOD_2 ( VAR_2 ) ; if ( VAR_4 == null ) { VAR_4 = METHOD_3 ( VAR_2 ) ; } return VAR_6 ; }
public TYPE_1 METHOD_1 ( java.lang.String VAR_1 ) { java.lang.String VAR_2 = VAR_1 . toLowerCase ( VAR_3 ) ; TYPE_3 VAR_4 = VAR_5 . METHOD_2 ( VAR_2 ) ; if ( VAR_4 == null ) { VAR_4 = METHOD_3 ( VAR_2 ) ; } return VAR_6 ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( ) { new TYPE_1 ( STRING_1 , TYPE_2 . METHOD_2 ( ( - 1L ) ) , TYPE_2 . METHOD_2 ( 1L ) , INT_1 ) ; }
public void METHOD_1 ( ) { new TYPE_1 ( TYPE_2 . METHOD_2 ( ( - 1L ) ) , TYPE_2 . METHOD_2 ( 1L ) , INT_1 ) ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( TYPE_1 VAR_1 ) { this . VAR_2 = java.lang.Integer . METHOD_2 ( VAR_3 ) ; TYPE_1 VAR_4 = new TYPE_1 ( ) ; VAR_5 = VAR_6 ; METHOD_3 ( VAR_1 ) ; }
public void METHOD_1 ( TYPE_1 VAR_1 ) { this . VAR_2 = java.lang.Integer . METHOD_2 ( VAR_3 ) ; TYPE_1 VAR_4 = new TYPE_1 ( ) ; VAR_5 = VAR_6 ; METHOD_3 ( VAR_4 ) ; }
The following code may contain bugs. Write a refined code without bugs. protected void METHOD_1 ( ) { this . METHOD_2 ( VAR_1 . METHOD_3 ( ) ) ; this . METHOD_4 ( VAR_1 . METHOD_3 ( ) ) ; this . VAR_2 = VAR_1 . METHOD_3 ( ) ; }
protected void METHOD_1 ( ) { this . METHOD_2 ( VAR_1 . METHOD_3 ( ) ) ; this . METHOD_4 ( VAR_1 . METHOD_3 ( ) ) ; this . VAR_2 = null ; }
The following code may contain bugs. Write a refined code without bugs. static java.lang.String METHOD_1 ( java.lang.String path , TYPE_1 VAR_1 ) throws java.io.IOException { byte [ ] VAR_2 = TYPE_2 . METHOD_2 ( TYPE_3 . get ( path ) ) ; return new java.lang.String ( VAR_2 , VAR_1 ) ; }
private static java.lang.String METHOD_1 ( java.lang.String path , TYPE_1 VAR_1 ) throws java.io.IOException { byte [ ] VAR_2 = TYPE_2 . METHOD_2 ( TYPE_3 . get ( path ) ) ; return new java.lang.String ( VAR_2 , VAR_1 ) ; }
The following code may contain bugs. Write a refined code without bugs. public final void METHOD_1 ( ) { synchronized ( this ) { VAR_1 = VAR_2 ; VAR_3 . info ( ( STRING_1 + ( VAR_4 ) ) ) ; METHOD_2 ( ) ; } }
public final void METHOD_1 ( ) { synchronized ( this ) { VAR_1 = VAR_2 ; VAR_3 . info ( ( STRING_1 + ( VAR_4 ) ) ) ; this . METHOD_2 ( ) ; } }
The following code may contain bugs. Write a refined code without bugs. protected void METHOD_1 ( ) { super . METHOD_1 ( ) ; if ( ( ( VAR_1 ) != null ) && ( VAR_1 . METHOD_2 ( ) ) ) { VAR_1 . start ( ) ; VAR_2 . METHOD_3 ( VAR_3 , INT_1 ) ; } }
protected void METHOD_1 ( ) { super . METHOD_1 ( ) ; if ( ( ( VAR_1 ) != null ) && ( VAR_1 . METHOD_2 ( ) ) ) { VAR_1 . start ( ) ; } }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( ) { try { java.lang.Thread . METHOD_2 ( INT_1 ) ; VAR_1 . METHOD_3 ( VAR_2 ) ; } catch ( java.lang.Exception VAR_3 ) { throw new TYPE_1 ( VAR_3 ) ; } }
public void METHOD_1 ( ) { try { java.lang.Thread . METHOD_2 ( 1 ) ; VAR_1 . METHOD_3 ( VAR_2 ) ; } catch ( java.lang.Exception VAR_3 ) { throw new TYPE_1 ( VAR_3 ) ; } }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( double VAR_1 , double VAR_2 , double VAR_3 , double VAR_4 , java.lang.Object VAR_5 ) { VAR_6 . METHOD_1 ( VAR_5 . toString ( ) , new TYPE_1 ( VAR_1 , VAR_2 ) , new TYPE_1 ( VAR_3 , VAR_4 ) ) ; }
public void METHOD_1 ( double VAR_1 , double VAR_2 , double VAR_3 , double VAR_4 , java.lang.Object VAR_5 ) { VAR_6 . METHOD_1 ( VAR_5 , new TYPE_1 ( VAR_1 , VAR_2 ) , new TYPE_1 ( VAR_3 , VAR_4 ) ) ; }
The following code may contain bugs. Write a refined code without bugs. public boolean METHOD_1 ( TYPE_1 list , TYPE_2 VAR_1 ) { for ( TYPE_2 VAR_2 : list . METHOD_2 ( ) ) { if ( ( VAR_2 . METHOD_3 ( ) ) == ( VAR_1 . METHOD_3 ( ) ) ) return true ; } return false ; }
public boolean METHOD_1 ( TYPE_1 list , TYPE_2 VAR_1 ) { for ( TYPE_2 VAR_2 : list . METHOD_2 ( ) ) { if ( VAR_2 . METHOD_3 ( ) . equals ( VAR_1 . METHOD_3 ( ) ) ) return true ; } return false ; }
The following code may contain bugs. Write a refined code without bugs. protected long METHOD_1 ( ) { try { VAR_1 |= false ; return METHOD_2 ( ) . count ( ) ; } catch ( java.lang.Exception VAR_2 ) { TYPE_1 . error ( STRING_1 , VAR_2 ) ; VAR_1 |= true ; return 0 ; } }
protected long METHOD_1 ( ) { try { return METHOD_2 ( ) . count ( ) ; } catch ( java.lang.Exception VAR_2 ) { TYPE_1 . error ( STRING_1 , VAR_2 ) ; VAR_1 |= true ; return 0 ; } }
The following code may contain bugs. Write a refined code without bugs. public boolean METHOD_1 ( ) { TYPE_1 VAR_1 = this . VAR_2 . METHOD_2 ( ) ; VAR_1 . METHOD_3 ( ) ; try { return this . VAR_3 ; } finally { VAR_1 . METHOD_4 ( ) ; } }
public boolean METHOD_1 ( ) { synchronized ( this ) { return this . VAR_3 ; } }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( ) { super . METHOD_1 ( ) ; if ( VAR_1 . METHOD_2 ( ) ) { VAR_1 . METHOD_3 ( ) ; } VAR_2 = null ; VAR_1 = null ; }
public void METHOD_1 ( ) { super . METHOD_1 ( ) ; if ( ( ( VAR_1 ) != null ) && ( VAR_1 . METHOD_2 ( ) ) ) { VAR_1 . METHOD_3 ( ) ; } VAR_2 = null ; VAR_1 = null ; }
The following code may contain bugs. Write a refined code without bugs. public boolean contains ( TYPE_1 p ) { return get ( VAR_1 , p ) ; }
public boolean contains ( TYPE_1 p ) { return get ( VAR_1 , p , 0 ) ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( ) { VAR_1 . METHOD_2 ( ) ; VAR_2 = null ; TYPE_1 . METHOD_3 ( ) . METHOD_4 ( VAR_3 . getName ( ) ) ; }
public void METHOD_1 ( ) { VAR_1 . METHOD_2 ( ) ; TYPE_1 . METHOD_3 ( ) . METHOD_4 ( VAR_3 . getName ( ) ) ; }
The following code may contain bugs. Write a refined code without bugs. public static void main ( java.lang.String [ ] args ) throws java.io.IOException , TYPE_1 { TYPE_2 VAR_1 = new TYPE_2 ( ) ; VAR_1 . METHOD_1 ( ) ; }
public static void main ( java.lang.String [ ] args ) throws java.io.IOException , TYPE_1 { TYPE_2 VAR_1 = new TYPE_2 ( ) ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( android.content.Context context , android.content.Intent intent ) { VAR_1 . METHOD_2 ( ) ; getActivity ( ) . METHOD_3 ( ) ; }
public void METHOD_1 ( android.content.Context context , android.content.Intent intent ) { if ( ( VAR_1 ) != null ) VAR_1 . METHOD_2 ( ) ; getActivity ( ) . METHOD_3 ( ) ; }
The following code may contain bugs. Write a refined code without bugs. public long METHOD_1 ( int position ) { return 0 ; }
public long METHOD_1 ( int position ) { return position ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( byte value , int i , int j ) { VAR_1 [ ( i + 1 ) ] [ ( j + 1 ) ] = value ; }
public void METHOD_1 ( byte value , int i , int j ) { VAR_1 [ i ] [ j ] = value ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( TYPE_1 field , java.lang.Object value ) { switch ( field ) { case VAR_1 : if ( value == null ) { METHOD_2 ( ) ; } else { METHOD_3 ( ( ( java.lang.String ) ( value ) ) ) ; } break ; } }
public void METHOD_1 ( TYPE_1 field , java.lang.Object value ) { switch ( field ) { } }
The following code may contain bugs. Write a refined code without bugs. public final boolean remove ( final java.lang.Object VAR_1 ) { if ( contains ( VAR_1 ) ) { final int index = METHOD_1 ( VAR_1 ) ; remove ( index ) ; METHOD_2 ( VAR_1 , index ) ; return true ; } else { return false ; } }
public final boolean remove ( final java.lang.Object VAR_1 ) { if ( contains ( VAR_1 ) ) { final int index = METHOD_1 ( VAR_1 ) ; remove ( index ) ; return true ; } else { return false ; } }
The following code may contain bugs. Write a refined code without bugs. public TYPE_1 METHOD_1 ( double VAR_1 ) { double VAR_2 = this . METHOD_2 ( VAR_1 ) ; return new TYPE_1 ( VAR_2 , ( - VAR_2 ) , VAR_2 , ( - VAR_2 ) ) ; }
public TYPE_1 METHOD_1 ( double VAR_2 ) { return new TYPE_1 ( VAR_2 , ( - VAR_2 ) , VAR_2 , ( - VAR_2 ) ) ; }
The following code may contain bugs. Write a refined code without bugs. public static final void METHOD_1 ( int [ ] VAR_1 ) { TYPE_1 . METHOD_1 ( VAR_1 , 0 , VAR_1 . length ) ; }
public static final int [ ] METHOD_1 ( int [ ] VAR_1 ) { return TYPE_1 . METHOD_1 ( VAR_1 , 0 , VAR_1 . length ) ; }
The following code may contain bugs. Write a refined code without bugs. public TYPE_1 METHOD_1 ( TYPE_2 VAR_1 , java.lang.Exception VAR_2 ) { VAR_3 . error ( STRING_1 , VAR_1 . METHOD_2 ( ) ) ; VAR_3 . error ( STRING_2 , VAR_2 . toString ( ) ) ; return new TYPE_1 ( INT_1 , STRING_3 ) ; }
public TYPE_1 METHOD_1 ( TYPE_2 VAR_1 , java.lang.Exception VAR_2 ) { VAR_3 . error ( STRING_1 , VAR_1 . METHOD_2 ( ) ) ; VAR_3 . error ( STRING_2 , VAR_2 ) ; return new TYPE_1 ( INT_1 , STRING_3 ) ; }
The following code may contain bugs. Write a refined code without bugs. protected void METHOD_1 ( TYPE_1 c ) { b . METHOD_2 ( c , METHOD_3 ( ) , METHOD_4 ( ) ) ; if ( ( VAR_1 ) != null ) VAR_1 . METHOD_5 ( b ) ; }
protected void METHOD_1 ( TYPE_1 c ) { b . METHOD_2 ( c , METHOD_3 ( ) , METHOD_4 ( ) ) ; if ( ( VAR_1 ) != null ) VAR_1 . METHOD_5 ( b , true ) ; }
The following code may contain bugs. Write a refined code without bugs. public int METHOD_1 ( ) { if ( ( VAR_1 . size ( ) ) > 0 ) { return VAR_1 . get ( 0 ) . METHOD_2 ( VAR_2 , ( - 1 ) ) ; } return 0 ; }
public int METHOD_1 ( ) { if ( ( VAR_1 . size ( ) ) > 0 ) { return VAR_1 . get ( 0 ) . METHOD_2 ( VAR_2 , ( - 1 ) ) ; } return - 1 ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( ) { VAR_1 = true ; VAR_2 = VAR_3 . METHOD_2 ( STRING_1 , STRING_2 , STRING_2 , true , VAR_4 ) ; VAR_5 = VAR_3 . METHOD_3 ( STRING_1 , VAR_2 ) ; }
public void METHOD_1 ( ) { VAR_1 = true ; VAR_2 = VAR_3 . METHOD_2 ( STRING_1 , STRING_2 , STRING_2 , true , false ) ; VAR_5 = VAR_3 . METHOD_3 ( STRING_1 , VAR_2 ) ; }
The following code may contain bugs. Write a refined code without bugs. public TYPE_1 METHOD_1 ( TYPE_2 VAR_1 ) { VAR_1 . METHOD_2 ( ) ; this . VAR_1 = VAR_1 ; return VAR_2 ; }
public TYPE_1 METHOD_1 ( TYPE_2 VAR_1 ) { if ( ( this . VAR_1 ) != null ) this . VAR_1 . METHOD_2 ( ) ; this . VAR_1 = VAR_1 ; return VAR_2 ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( java.lang.String message , java.lang.Throwable VAR_1 ) { VAR_2 . METHOD_1 ( message , VAR_1 ) ; }
public void error ( java.lang.String message , java.lang.Throwable error ) { VAR_2 . error ( message , error ) ; }
The following code may contain bugs. Write a refined code without bugs. void METHOD_1 ( boolean VAR_1 ) { VAR_2 . setEnabled ( VAR_1 ) ; VAR_3 . setEnabled ( VAR_1 ) ; VAR_4 . setEnabled ( VAR_1 ) ; }
void METHOD_1 ( boolean VAR_1 ) { VAR_2 . setEnabled ( true ) ; VAR_3 . setEnabled ( VAR_1 ) ; VAR_4 . setEnabled ( VAR_1 ) ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( ) { try { VAR_1 . METHOD_2 ( VAR_2 . METHOD_3 ( ) ) ; } catch ( java.lang.Exception VAR_3 ) { java.lang.System.out.println ( STRING_1 ) ; } }
public void METHOD_1 ( int position ) { try { VAR_1 . METHOD_2 ( VAR_2 . METHOD_3 ( position ) ) ; } catch ( java.lang.Exception VAR_3 ) { java.lang.System.out.println ( STRING_1 ) ; } }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( ) { METHOD_2 ( 0 ) ; METHOD_3 ( ) ; }
public void METHOD_1 ( ) { }
The following code may contain bugs. Write a refined code without bugs. public boolean contains ( TYPE_1 VAR_1 ) { for ( TYPE_1 VAR_2 : this . VAR_2 ) if ( VAR_2 . equals ( VAR_1 ) ) return true ; return false ; }
public boolean contains ( TYPE_1 VAR_1 ) { for ( TYPE_1 item : this . VAR_2 ) if ( item . equals ( VAR_1 ) ) return true ; return false ; }
The following code may contain bugs. Write a refined code without bugs. public java.lang.String METHOD_1 ( int length ) throws java.io.IOException { byte [ ] string = new byte [ length ] ; this . VAR_1 . METHOD_2 ( string ) ; return new java.lang.String ( string , VAR_2 ) ; }
public java.lang.String METHOD_1 ( int length ) throws java.io.IOException { byte [ ] string = new byte [ length ] ; this . METHOD_2 ( string ) ; return new java.lang.String ( string , VAR_2 ) ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( int VAR_1 , android.view.View VAR_2 ) { if ( ( VAR_3 ) != null ) { VAR_3 . METHOD_2 ( VAR_1 ) ; VAR_3 . METHOD_3 ( VAR_2 ) ; } }
public void METHOD_1 ( int VAR_1 ) { if ( ( VAR_3 ) != null ) { VAR_3 . METHOD_2 ( VAR_1 ) ; } }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( java.lang.Boolean VAR_1 , java.lang.Exception error ) { if ( VAR_1 ) { list . remove ( position ) ; METHOD_2 ( ) ; } else { TYPE_1 . METHOD_3 ( STRING_1 , STRING_2 ) ; } }
public void METHOD_1 ( java.lang.Boolean VAR_1 , java.lang.Exception error ) { if ( VAR_1 != null ) { list . remove ( position ) ; METHOD_2 ( ) ; } else { TYPE_1 . METHOD_3 ( STRING_1 , STRING_2 ) ; } }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( TYPE_1 VAR_1 , TYPE_2 VAR_2 , TYPE_3 VAR_3 ) throws TYPE_4 { this . VAR_4 . METHOD_1 ( ) ; for ( TYPE_5 p : VAR_5 ) p . METHOD_1 ( VAR_3 ) ; this . VAR_6 . METHOD_1 ( VAR_3 ) ; }
public void METHOD_1 ( TYPE_1 VAR_1 , TYPE_2 VAR_2 , TYPE_3 VAR_3 ) throws TYPE_4 { this . VAR_4 . METHOD_1 ( VAR_3 ) ; for ( TYPE_5 p : VAR_5 ) p . METHOD_1 ( VAR_3 ) ; this . VAR_6 . METHOD_1 ( VAR_3 ) ; }
The following code may contain bugs. Write a refined code without bugs. public java.lang.String METHOD_1 ( TYPE_1 VAR_1 ) { final java.lang.String value = VAR_2 . METHOD_2 ( VAR_1 . METHOD_3 ( ) ) ; if ( null == value ) { return VAR_1 . METHOD_4 ( ) ; } return value ; }
public java.lang.String METHOD_1 ( TYPE_1 VAR_1 ) { final java.lang.String value = VAR_2 . METHOD_2 ( VAR_1 . METHOD_3 ( ) ) ; if ( null == value ) { return VAR_1 . METHOD_4 ( ) ; } return value . trim ( ) ; }
The following code may contain bugs. Write a refined code without bugs. void METHOD_1 ( ) { TYPE_1 VAR_1 = METHOD_2 ( ) ; VAR_1 . METHOD_3 ( true ) ; VAR_1 . METHOD_4 ( false ) ; VAR_1 . METHOD_5 ( VAR_2 ) ; }
void METHOD_1 ( ) { TYPE_1 VAR_1 = METHOD_2 ( ) ; if ( VAR_1 != null ) { VAR_1 . METHOD_3 ( true ) ; VAR_1 . METHOD_4 ( false ) ; VAR_1 . METHOD_5 ( VAR_2 ) ; } }
The following code may contain bugs. Write a refined code without bugs. private void METHOD_1 ( int VAR_1 , int VAR_2 , int VAR_3 ) { VAR_4 = VAR_1 ; VAR_5 = VAR_2 ; VAR_6 = VAR_3 ; }
private synchronized void METHOD_1 ( int x , int y , int VAR_3 ) { VAR_4 = x ; VAR_5 = y ; VAR_6 = VAR_3 ; }
The following code may contain bugs. Write a refined code without bugs. public void init ( ) { METHOD_1 ( ) ; METHOD_2 ( ) ; METHOD_3 ( ) ; }
public void init ( ) { METHOD_2 ( ) ; METHOD_1 ( ) ; METHOD_3 ( ) ; }
The following code may contain bugs. Write a refined code without bugs. private void METHOD_1 ( ) { try { VAR_1 = true ; VAR_2 . METHOD_2 ( ) ; METHOD_3 ( ) ; VAR_2 . start ( ) ; } catch ( TYPE_1 VAR_3 ) { VAR_3 . METHOD_4 ( ) ; } }
private void METHOD_1 ( ) { VAR_1 = true ; VAR_2 . METHOD_2 ( ) ; METHOD_3 ( ) ; try { VAR_2 . start ( ) ; } catch ( TYPE_1 VAR_3 ) { VAR_3 . METHOD_4 ( ) ; } }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( ) { METHOD_2 ( ) . METHOD_3 ( 0 ) ; }
public void METHOD_1 ( ) { }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( boolean VAR_1 ) { this . VAR_1 = VAR_1 ; this . METHOD_2 ( ) ; }
public void METHOD_1 ( boolean VAR_1 ) { this . VAR_1 = VAR_1 ; }
The following code may contain bugs. Write a refined code without bugs. protected abstract TYPE_1 < TYPE_2 > METHOD_1 ( ) ;
public abstract TYPE_1 < TYPE_2 > METHOD_1 ( ) ;
The following code may contain bugs. Write a refined code without bugs. public double METHOD_1 ( ) { TYPE_1 VAR_1 = ( ( TYPE_1 ) ( METHOD_2 ( VAR_2 ) ) ) ; if ( VAR_1 . METHOD_3 ( ) ) { VAR_3 += 1 ; } return VAR_3 ; }
public double METHOD_1 ( ) { TYPE_1 VAR_1 = ( ( TYPE_1 ) ( METHOD_2 ( VAR_2 ) ) ) ; if ( VAR_1 . METHOD_3 ( ) ) { VAR_3 = ( VAR_3 ) + 1 ; } return VAR_3 ; }
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( ) { METHOD_2 ( ) ; METHOD_3 ( ) ; METHOD_4 ( METHOD_5 ( ) . getString ( VAR_1 ) , METHOD_5 ( ) . getString ( VAR_2 ) ) ; }
public void METHOD_1 ( ) { METHOD_3 ( ) ; METHOD_4 ( METHOD_5 ( ) . getString ( VAR_1 ) , METHOD_5 ( ) . getString ( VAR_2 ) ) ; }
The following code may contain bugs. Write a refined code without bugs. public TYPE_1 [ ] METHOD_1 ( java.lang.String VAR_1 ) { TYPE_1 [ ] temp = VAR_2 ; VAR_2 = null ; if ( VAR_3 ) java.lang.System.out.println ( ( ( "\t" + VAR_1 ) + STRING_1 ) ) ; return temp ; }
public TYPE_1 [ ] METHOD_1 ( java.lang.String VAR_1 ) { TYPE_1 [ ] temp = VAR_2 ; VAR_2 = null ; java.lang.System.out.println ( ( ( "\t" + VAR_1 ) + STRING_1 ) ) ; return temp ; }