auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private final java.lang.String lineNumberString ( ) { switch ( mLineNumber ) { case com.android.tools.perflib.heap.StackFrame.NO_LINE_NUMBER : return "No line number" ; case com.android.tools.perflib.heap.StackFrame.UNKNOWN_LOCATION : return "Unknown line number" ; case com.android.tools.perflib.heap.StackFrame.COMPILED_METHOD : return "Compiled method" ; case com.android.tools.perflib.heap.StackFrame.NATIVE_METHOD : return "Native method" ; default : return java.lang.String.valueOf ( mLineNumber ) ; } }

Target:
private java.lang.String lineNumberString ( ) { switch ( mLineNumber ) { case com.android.tools.perflib.heap.StackFrame.NO_LINE_NUMBER : return "No line number" ; case com.android.tools.perflib.heap.StackFrame.UNKNOWN_LOCATION : return "Unknown line number" ; case com.android.tools.perflib.heap.StackFrame.COMPILED_METHOD : return "Compiled method" ; case com.android.tools.perflib.heap.StackFrame.NATIVE_METHOD : return "Native method" ; default : return java.lang.String.valueOf ( mLineNumber ) ; } }
Source:
public void testConstructor_EmptyAliases ( ) { try { new tests.api.java.nio.charset.CharsetTest.MockCharset ( "mockChar" , new java.lang.String [ ] { "" } ) ; } catch ( java.nio.charset.IllegalCharsetNameException e ) { } }

Target:
public void testConstructor_EmptyAliases ( ) { try { new tests.api.java.nio.charset.CharsetTest.MockCharset ( "mockChar" , new java.lang.String [ ] { "" } ) ; fail ( ) ; } catch ( java.nio.charset.IllegalCharsetNameException expected ) { } }
Source:
public void test_skip_LString ( ) { s = new java.util.Scanner ( "test" ) ; try { s.skip ( ( ( java.lang.String ) ( null ) ) ) ; fail ( "Should throw NullPointerException" ) ; } catch ( java.lang.NullPointerException e ) { } }

Target:
public void test_skip_LString ( ) { s = new java.util.Scanner ( "test" ) ; try { s.skip ( ( ( java.lang.String ) ( null ) ) ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } }
Source:
private static boolean shouldSkip ( java.io.File file ) { if ( file.getPath ( ) . endsWith ( "android-support-v4.jar" ) ) { return true ; } return false ; }

Target:
private static boolean shouldSkip ( java.io.File file ) { return file.getPath ( ) . endsWith ( "android-support-v4.jar" ) ; }
Source:
public static void computeAsinh ( android.renderscript.cts.TestAsinh.ArgumentsFloatFloat args , android.renderscript.cts.Target t ) { t.setPrecision ( 4 , 128 , false ) ; args.out = android.renderscript.cts.CoreMathVerifier.asinh ( args.in , t ) ; }

Target:
public static void computeAsinh ( android.renderscript.cts.TestAsinh.ArgumentsFloatFloat args , android.renderscript.cts.Target t ) { t.setPrecision ( 4 , 128 , false ) ; args.out = android.renderscript.cts.CoreMathVerifier.asinh ( args.inV , t ) ; }
Source:
public void writeUnknownDebugEnd ( ) throws java.io.IOException { writeLineIfDifferentFromCurrent ( com.android.jill.frontend.java.SourceInfoWriter.NO_LINE , false ) ; }

Target:
public void writeUnknownDebugEnd ( ) throws java.io.IOException { writeLineIfDifferentFromCurrent ( com.android.jill.frontend.java.SourceInfoWriter.NO_LINE ) ; }
Source:
public com.android.jack.ir.ast.JMethod getEnclosingMethod ( ) { return enclosingMethod ; }

Target:
public com.android.jack.ir.ast.JMethod getEnclosingMethod ( ) { assert ( enclosingMethod ) != null ; return enclosingMethod ; }
Source:
public void invokeConstructor ( final org.objectweb.asm.Type type , final org.objectweb.asm.commons.Method method ) { invokeInsn ( Opcodes.INVOKESPECIAL , type , method ) ; }

Target:
public void invokeConstructor ( final org.objectweb.asm.Type type , final org.objectweb.asm.commons.Method method ) { invokeInsn ( Opcodes.INVOKESPECIAL , type , method , false ) ; }
Source:
public static int getNumberOfDevices ( android.content.Context context ) { return new com.android.tv.tuner.DvbDeviceAccessor ( context ) . getNumOfDvbDevices ( ) ; }

Target:
public static int getNumberOfDevices ( android.content.Context context ) { try { return new com.android.tv.tuner.DvbDeviceAccessor ( context ) . getNumOfDvbDevices ( ) ; } catch ( java.lang.Exception e ) { return 0 ; } }
Source:
synchronized long nScriptGetVarJ ( int id , int slot ) { validate ( ) ; return rsnScriptGetVarJ ( mContext , id , slot ) ; }

Target:
synchronized long nScriptGetVarJ ( long id , int slot ) { validate ( ) ; return rsnScriptGetVarJ ( mContext , id , slot ) ; }
Source:
private static void add ( java.lang.String standard , java.lang.String openssl ) { org.conscrypt.NativeCrypto.OPENSSL_TO_STANDARD_CIPHER_SUITES.put ( openssl , standard ) ; org.conscrypt.NativeCrypto.STANDARD_TO_OPENSSL_CIPHER_SUITES.put ( standard , openssl ) ; }

Target:
private static void add ( java.lang.String openssl , java.lang.String standard ) { org.conscrypt.NativeCrypto.OPENSSL_TO_STANDARD_CIPHER_SUITES.put ( openssl , standard ) ; org.conscrypt.NativeCrypto.STANDARD_TO_OPENSSL_CIPHER_SUITES.put ( standard , openssl ) ; }
Source:
protected void visitPrimitive ( int argAndType , int type , int arg , int size ) { constantValue = com.android.jack.tools.merger.MergerTools.createConstant ( in , type , arg ) ; }

Target:
protected void visitPrimitive ( int type , int arg , int size ) { constantValue = com.android.jack.tools.merger.MergerTools.createConstant ( in , type , arg ) ; }
Source:
public boolean startScan ( ) { try { final android.os.WorkSource workSource = null ; mService.startScan ( workSource ) ; return true ; } catch ( android.os.RemoteException e ) { return false ; } }

Target:
public boolean startScan ( android.os.WorkSource workSource ) { try { mService.startScan ( null , workSource ) ; return true ; } catch ( android.os.RemoteException e ) { return false ; } }
Source:
public void testSetLengthTooLarge ( ) throws java.lang.Exception { java.io.RandomAccessFile raf = new java.io.RandomAccessFile ( file , "rw" ) ; try { raf.setLength ( java.lang.Long.MAX_VALUE ) ; fail ( ) ; } catch ( java.io.IOException expected ) { } }

Target:
public void testSetLengthTooLarge ( ) throws java.lang.Exception { try ( java.io.RandomAccessFile raf = new java.io.RandomAccessFile ( file , "rw" ) ) { try { raf.setLength ( java.lang.Long.MAX_VALUE ) ; fail ( ) ; } catch ( java.io.IOException expected ) { } } }
Source:
private static org.chromium.base.SystemMessageHandler create ( long messagePumpDelegateNative , long messagePumpNative ) { return new org.chromium.base.SystemMessageHandler ( messagePumpDelegateNative , messagePumpNative ) ; }

Target:
private static org.chromium.base.SystemMessageHandler create ( long messagePumpDelegateNative ) { return new org.chromium.base.SystemMessageHandler ( messagePumpDelegateNative ) ; }
Source:
protected boolean isRetained ( char c ) { return ( c == '$' ) || ( c == '%' ) ; }

Target:
protected boolean isRetained ( char c ) { return c == '$' ; }
Source:
public static com.android.build.gradle.ndk.internal.File getStlBaseDirectory ( com.android.build.gradle.internal.NdkHandler ndkHandler ) { return new com.android.build.gradle.ndk.internal.File ( ndkHandler.getNdkDirectory ( ) , "sources/cxx-stl/" ) ; }

Target:
public static java.io.File getStlBaseDirectory ( com.android.build.gradle.internal.NdkHandler ndkHandler ) { return new java.io.File ( ndkHandler.getNdkDirectory ( ) , "sources/cxx-stl/" ) ; }
Source:
public static com.android.jack.Options buildCommandLineArgs ( @ javax.annotation.Nonnull java.io.File fileOrSourcelist , @ javax.annotation.CheckForNull java.io.File jarjarRules ) throws java.io.IOException { com.android.jack.Options options = com.android.jack.TestTools.buildCommandLineArgs ( null , null , new java.io.File [ ] { fileOrSourcelist } ) ; options.jarjarRulesFile = jarjarRules ; return options ; }

Target:
public static com.android.jack.Options buildCommandLineArgs ( @ javax.annotation.Nonnull java.io.File fileOrSourcelist , @ javax.annotation.CheckForNull java.io.File jarjarRules ) throws java.io.IOException { com.android.jack.Options options = com.android.jack.TestTools.buildCommandLineArgs ( null , new java.io.File [ ] { fileOrSourcelist } ) ; options.jarjarRulesFile = jarjarRules ; return options ; }
Source:
public final com.android.server.am.ContentProviderHolder getContentProvider ( android.app.IApplicationThread caller , java.lang.String name ) { if ( caller == null ) { java.lang.String msg = "null IApplicationThread when getting content provider " + name ; android.util.Log.w ( com.android.server.am.ActivityManagerService.TAG , msg ) ; throw new java.lang.SecurityException ( msg ) ; } return getContentProviderImpl ( caller , name ) ; }

Target:
public final com.android.server.am.ContentProviderHolder getContentProvider ( android.app.IApplicationThread caller , java.lang.String name ) { if ( caller == null ) { java.lang.String msg = "null IApplicationThread when getting content provider " + name ; android.util.Slog.w ( com.android.server.am.ActivityManagerService.TAG , msg ) ; throw new java.lang.SecurityException ( msg ) ; } return getContentProviderImpl ( caller , name ) ; }
Source:
protected com.android.sched.vfs.VPath clone ( ) { @ java.lang.SuppressWarnings ( value = "unchecked" ) java.util.ArrayList < com.android.sched.vfs.VPath.VPathFragment > clonedList = ( ( java.util.ArrayList < com.android.sched.vfs.VPath.VPathFragment > ) ( pathFragments.clone ( ) ) ) ; return new com.android.sched.vfs.VPath ( clonedList ) ; }

Target:
public com.android.sched.vfs.VPath clone ( ) { @ java.lang.SuppressWarnings ( value = "unchecked" ) java.util.ArrayList < com.android.sched.vfs.VPath.VPathFragment > clonedList = ( ( java.util.ArrayList < com.android.sched.vfs.VPath.VPathFragment > ) ( pathFragments.clone ( ) ) ) ; return new com.android.sched.vfs.VPath ( clonedList ) ; }
Source:
public void testAdd2 ( ) { java.util.concurrent.CopyOnWriteArraySet full = jsr166.CopyOnWriteArraySetTest.populatedSet ( 3 ) ; full.add ( one ) ; assertEquals ( 3 , full.size ( ) ) ; }

Target:
public void testAdd2 ( ) { java.util.Set full = jsr166.CopyOnWriteArraySetTest.populatedSet ( 3 ) ; full.add ( one ) ; assertEquals ( 3 , full.size ( ) ) ; }
Source:
public synchronized void ensureCapacity ( int minimumCapacity ) { if ( minimumCapacity > ( value.length ) ) { expandCapacity ( minimumCapacity ) ; } }

Target:
public synchronized void ensureCapacity ( int minimumCapacity ) { super . ensureCapacity ( minimumCapacity ) ; }
Source:
public java.lang.String getLine1AlphaTag ( ) { com.android.internal.telephony.uicc.IccRecords r = mIccRecords.get ( ) ; return r != null ? r.getMsisdnAlphaTag ( ) : "" ; }

Target:
public java.lang.String getLine1AlphaTag ( ) { com.android.internal.telephony.uicc.IccRecords r = mIccRecords.get ( ) ; return r != null ? r.getMsisdnAlphaTag ( ) : null ; }
Source:
public boolean onError ( android.media.MediaPlayer mp , int newWhat , int extra ) { what = newWhat ; lock.lock ( ) ; condition.signal ( ) ; lock.unlock ( ) ; return false ; }

Target:
public boolean onError ( android.media.MediaPlayer mp , int newWhat , int extra ) { what = newWhat ; lock.lock ( ) ; condition.signal ( ) ; lock.unlock ( ) ; return true ; }
Source:
public org.bouncycastle.math.ec.ECFieldElement invert ( ) { return new org.bouncycastle.math.ec.ECFieldElement.Fp ( q , r , x.modInverse ( q ) ) ; }

Target:
public org.bouncycastle.math.ec.ECFieldElement invert ( ) { return new org.bouncycastle.math.ec.ECFieldElement.Fp ( q , r , modInverse ( x ) ) ; }
Source:
private android.bluetooth.BluetoothGattService getService ( ) { if ( ( mBluetoothGatt ) == null ) return null ; android.bluetooth.BluetoothGattService service = mBluetoothGatt.getService ( com.android.cts.verifier.bluetooth.BleClientService.SERVICE_UUID ) ; if ( service == null ) { showMessage ( "Service not found" ) ; return null ; } return service ; }

Target:
private android.bluetooth.BluetoothGattService getService ( ) { android.bluetooth.BluetoothGattService service = null ; if ( ( mBluetoothGatt ) != null ) { service = mBluetoothGatt.getService ( com.android.cts.verifier.bluetooth.BleClientService.SERVICE_UUID ) ; if ( service == null ) { showMessage ( "Service not found" ) ; } } return service ; }
Source:
public void run ( ) { assert ( mRunLoopID ) != 0 : "The run loop cannot run once closed" ; nativeRun ( ) ; }

Target:
public void run ( ) { assert ( mRunLoopID ) != 0 : "The run loop cannot run once closed" ; nativeRun ( mRunLoopID ) ; }
Source:
void putLittleEndianInts ( int [ ] a , boolean neg ) { this . makeValid ( ) ; java.math.BigInt.Check ( java.math.NativeBN.litEndInts2bn ( a , a.length , neg , this . bignum ) ) ; }

Target:
void putLittleEndianInts ( int [ ] a , boolean neg ) { this . makeValid ( ) ; java.math.NativeBN.litEndInts2bn ( a , a.length , neg , this . bignum ) ; }
Source:
com.android.server.wifi.WifiConnectivityManager createConnectivityManager ( ) { return new com.android.server.wifi.WifiConnectivityManager ( mContext , mWifiStateMachine , mWifiScanner , mWifiConfigManager , mWifiInfo , mWifiNS , mWifiLastResortWatchdog , mWifiMetrics , mLooper.getLooper ( ) , mClock , true , mFrameworkFacade , null , null , null ) ; }

Target:
com.android.server.wifi.WifiConnectivityManager createConnectivityManager ( ) { return new com.android.server.wifi.WifiConnectivityManager ( mContext , mWifiStateMachine , mWifiScanner , mWifiConfigManager , mWifiInfo , mWifiNS , mWifiLastResortWatchdog , mWifiMetrics , mLooper.getLooper ( ) , mClock , true , mFrameworkFacade , null , null ) ; }
Source:
public void visitElement ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.XmlContext context , @ com.android.annotations.NonNull org.w3c.dom.Element element ) { if ( ( mLookup ) == null ) { return ; } visit ( context , element ) ; }

Target:
public void visitElement ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.XmlContext context , @ com.android.annotations.NonNull org.w3c.dom.Element element ) { if ( ( mLookup ) == null ) { return ; } visit ( context , element , element ) ; }
Source:
boolean isSynthetic ( ) { return ( ( accessFlags ) & ( java.lang.reflect.Modifier.SYNTHETIC ) ) != 0 ; }

Target:
public boolean isSynthetic ( ) { return ( ( accessFlags ) & ( java.lang.reflect.Modifier.SYNTHETIC ) ) != 0 ; }
Source:
static void native_setFillType ( int nPath , int ft ) { android.graphics.Path_Delegate pathDelegate = android.graphics.Path_Delegate.sManager.getDelegate ( nPath ) ; if ( pathDelegate == null ) { return ; } pathDelegate.mFillType = Path.sFillTypeArray [ ft ] ; }

Target:
static void native_setFillType ( long nPath , int ft ) { android.graphics.Path_Delegate pathDelegate = android.graphics.Path_Delegate.sManager.getDelegate ( nPath ) ; if ( pathDelegate == null ) { return ; } pathDelegate.mFillType = Path.sFillTypeArray [ ft ] ; }
Source:
public boolean removeP2pNetwork ( int netId ) { if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.removeNetwork ( netId ) ; } else { return doBooleanCommand ( ( "REMOVE_NETWORK " + netId ) ) ; } }

Target:
public boolean removeP2pNetwork ( int netId ) { return mSupplicantP2pIfaceHal.removeNetwork ( netId ) ; }
Source:
protected void engineInitSign ( java.security.PrivateKey privateKey ) throws java.security.InvalidKeyException { initInternal ( org.conscrypt.OpenSSLKey.fromPrivateKey ( privateKey ) ) ; enableDSASignatureNonceHardeningIfApplicable ( ) ; signing = true ; }

Target:
protected void engineInitSign ( java.security.PrivateKey privateKey ) throws java.security.InvalidKeyException { initInternal ( org.conscrypt.OpenSSLKey.fromPrivateKey ( privateKey ) , true ) ; }
Source:
public abstract com.google.common.collect.ImmutableSet < com.google.common.collect.Table.Cell < R , C , V > > cellSet ( ) ;

Target:
public com.google.common.collect.ImmutableSet < com.google.common.collect.Table.Cell < R , C , V > > cellSet ( ) { return ( ( com.google.common.collect.ImmutableSet < com.google.common.collect.Table.Cell < R , C , V > > ) ( super . cellSet ( ) ) ) ; }
Source:
protected void execute ( org.eclipse.core.runtime.IProgressMonitor monitor ) throws java.lang.reflect.InvocationTargetException { createProjectAsync ( monitor , null , null , projectData ) ; }

Target:
protected void execute ( org.eclipse.core.runtime.IProgressMonitor monitor ) throws java.lang.reflect.InvocationTargetException { createProjectAsync ( monitor , null , null , projectData , true ) ; }
Source:
public void onSessionConfigFailed ( @ android.net.wifi.nan.WifiNanDiscoverySessionCallback.SessionReasonCodes int reason ) { }

Target:
public void onSessionConfigFailed ( ) { }
Source:
public boolean onSearchRequested ( ) { mSearchItem.expandActionView ( ) ; return true ; }

Target:
public boolean onSearchRequested ( ) { if ( ( mSearchItem ) != null ) { mSearchItem.expandActionView ( ) ; } return true ; }
Source:
public void testUpdate_emptyScanList ( ) { mRecommendedNetworkEvaluator.update ( new java.util.ArrayList < com.android.server.wifi.ScanDetail > ( ) ) ; org.mockito.Mockito.verifyZeroInteractions ( mNetworkScoreManager ) ; org.mockito.Mockito.verify ( mWifiConfigManager ) . updateNetworkNotRecommended ( mTrustedWifiConfiguration.networkId , false ) ; }

Target:
public void testUpdate_emptyScanList ( ) { mRecommendedNetworkEvaluator.update ( new java.util.ArrayList < com.android.server.wifi.ScanDetail > ( ) ) ; verifyZeroInteractions ( mNetworkScoreManager ) ; verify ( mWifiConfigManager ) . updateNetworkNotRecommended ( mTrustedWifiConfiguration.networkId , false ) ; }
Source:
public static void main ( java.lang.String [ ] args ) { art.Main.bindAgentJNIForClass ( Main.class ) ; Main.doTest ( new RemoveAnnotationsTest ( ) ) ; Main.doTest ( new AddAnnotationsTest ( ) ) ; Main.doTest ( new ChangeAnnotationValues ( ) ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { Main.doTest ( new RemoveAnnotationsTest ( ) ) ; Main.doTest ( new AddAnnotationsTest ( ) ) ; Main.doTest ( new ChangeAnnotationValues ( ) ) ; }
Source:
void addPositiveInt ( int w ) { java.math.BigInt.Check ( java.math.NativeBN.BN_add_word ( this . bignum , w ) ) ; }

Target:
void addPositiveInt ( int w ) { java.math.NativeBN.BN_add_word ( this . bignum , w ) ; }
Source:
public java.lang.String getMetaZoneDisplayName ( java.lang.String mzID , com.ibm.icu.impl.NameType type ) { if ( ( mzID == null ) || ( ( mzID.length ( ) ) == 0 ) ) { return null ; } return loadMetaZoneNames ( mzID ) . getName ( type ) ; }

Target:
public java.lang.String getMetaZoneDisplayName ( java.lang.String mzID , com.ibm.icu.impl.NameType type ) { if ( ( mzID == null ) || ( ( mzID.length ( ) ) == 0 ) ) { return null ; } return loadMetaZoneNames ( null , mzID ) . getName ( type ) ; }
Source:
private synchronized void onSetProtocol ( byte protocol ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) android.util.Log.v ( com.android.bluetooth.hid.HidDevService.TAG , ( "onSetProtocol(): protocol=" + protocol ) ) ; android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.hid.HidDevService.MESSAGE_SET_PROTOCOL ) ; msg.arg1 = protocol ; mHandler.sendMessage ( msg ) ; }

Target:
private synchronized void onSetProtocol ( byte protocol ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDevService.TAG , ( "onSetProtocol(): protocol=" + protocol ) ) ; } android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.hid.HidDevService.MESSAGE_SET_PROTOCOL ) ; msg.arg1 = protocol ; mHandler.sendMessage ( msg ) ; }
Source:
public boolean equals ( java.lang.Object o ) { if ( ( o instanceof com.android.internal.telephony.dataconnection.DataProfile ) == false ) return false ; return toString ( ) . equals ( o.toString ( ) ) ; }

Target:
public boolean equals ( java.lang.Object o ) { if ( ( o instanceof com.android.internal.telephony.dataconnection.DataProfile ) == false ) return false ; return ( o == ( this ) ) || ( toString ( ) . equals ( o.toString ( ) ) ) ; }
Source:
public java.lang.String getTimeZoneDisplayName ( java.lang.String tzID , android.icu.impl.NameType type ) { if ( ( tzID == null ) || ( ( tzID.length ( ) ) == 0 ) ) { return null ; } return loadTimeZoneNames ( null , tzID ) . getName ( type ) ; }

Target:
public java.lang.String getTimeZoneDisplayName ( java.lang.String tzID , android.icu.impl.NameType type ) { if ( ( tzID == null ) || ( ( tzID.length ( ) ) == 0 ) ) { return null ; } return loadTimeZoneNames ( tzID ) . getName ( type ) ; }
Source:
private native void gattClientSetPreferredPhyNative ( int clientIf , int conn_id , int tx_phy , int rx_phy , int phy_options ) ;

Target:
private native void gattClientSetPreferredPhyNative ( int clientIf , java.lang.String address , int tx_phy , int rx_phy , int phy_options ) ;
Source:
private boolean isSettingAvailable ( ) { if ( ! ( mInitialized ) ) { throw new java.lang.IllegalStateException ( "Object must be initialized first by invoking #captureInitialState." ) ; } return mSettingAvailable ; }

Target:
protected boolean isSettingAvailable ( ) { if ( ! ( mInitialized ) ) { throw new java.lang.IllegalStateException ( "Object must be initialized first by invoking #captureInitialState." ) ; } return mSettingAvailable ; }
Source:
private void errorLog ( java.lang.String msg ) { android.util.Log.e ( com.android.bluetooth.btservice.PhonePolicy.TAG , msg ) ; }

Target:
private static void errorLog ( java.lang.String msg ) { android.util.Log.e ( com.android.bluetooth.btservice.PhonePolicy.TAG , msg ) ; }
Source:
private void finishDisconnectedCall ( com.android.incallui.call.DialerCall call ) { if ( pendingDisconnectCalls.contains ( call ) ) { pendingDisconnectCalls.remove ( call ) ; } call.setState ( DialerCall.State.IDLE ) ; updateCallInMap ( call ) ; notifyGenericListeners ( ) ; call.onDestroy ( ) ; }

Target:
private void finishDisconnectedCall ( com.android.incallui.call.DialerCall call ) { if ( pendingDisconnectCalls.contains ( call ) ) { pendingDisconnectCalls.remove ( call ) ; } call.setState ( DialerCall.State.IDLE ) ; updateCallInMap ( call ) ; notifyGenericListeners ( ) ; }
Source:
public boolean cancelWps ( ) { if ( com.android.server.wifi.WifiNative.HIDL_SUP_ENABLE ) { return mSupplicantStaIfaceHal.cancelWps ( ) ; } else { return doBooleanCommand ( "WPS_CANCEL" ) ; } }

Target:
public boolean cancelWps ( ) { return mSupplicantStaIfaceHal.cancelWps ( ) ; }
Source:
public void onAppStatusChanged ( android.bluetooth.BluetoothDevice pluggedDevice , android.bluetooth.BluetoothHidDeviceAppConfiguration config , boolean registered ) { android.util.Log.d ( android.bluetooth.BluetoothHidDeviceCallback.TAG , ( ( ( "onAppStatusChanged: pluggedDevice=" + ( pluggedDevice == null ? null : pluggedDevice.toString ( ) ) ) + " registered=" ) + registered ) ) ; }

Target:
public void onAppStatusChanged ( android.bluetooth.BluetoothDevice pluggedDevice , android.bluetooth.BluetoothHidDeviceAppConfiguration config , boolean registered ) { android.util.Log.d ( android.bluetooth.BluetoothHidDeviceCallback.TAG , ( ( ( "onAppStatusChanged: pluggedDevice=" + pluggedDevice ) + " registered=" ) + registered ) ) ; }
Source:
public void unregisterContentObservers ( android.content.Context appContext ) { }

Target:
public void unregisterContentObservers ( ) { }
Source:
void expectCapabilitiesWith ( int capability , com.android.server.ConnectivityServiceTest.MockNetworkAgent agent ) { com.android.server.ConnectivityServiceTest.CallbackInfo cbi = expectCallback ( com.android.server.ConnectivityServiceTest.CallbackState.NETWORK_CAPABILITIES , agent ) ; android.net.NetworkCapabilities nc = ( ( android.net.NetworkCapabilities ) ( cbi.arg ) ) ; org.junit.Assert.assertTrue ( nc.hasCapability ( capability ) ) ; }

Target:
android.net.NetworkCapabilities expectCapabilitiesWith ( int capability , com.android.server.ConnectivityServiceTest.MockNetworkAgent agent ) { com.android.server.ConnectivityServiceTest.CallbackInfo cbi = expectCallback ( com.android.server.ConnectivityServiceTest.CallbackState.NETWORK_CAPABILITIES , agent ) ; android.net.NetworkCapabilities nc = ( ( android.net.NetworkCapabilities ) ( cbi.arg ) ) ; org.junit.Assert.assertTrue ( nc.hasCapability ( capability ) ) ; return nc ; }
Source:
public boolean verify ( int [ ] bitmap , int offset , int stride , int width , int height ) { }

Target:
public boolean verify ( int [ ] bitmap , int offset , int stride , int width , int height ) { return true ; }
Source:
public void realRun ( ) throws java.lang.InterruptedException { q.transfer ( four ) ; assertFalse ( q.contains ( four ) ) ; assertSame ( three , q.poll ( ) ) ; }

Target:
public void realRun ( ) throws java.lang.InterruptedException { q.transfer ( four ) ; assertTrue ( ( ! ( q.contains ( four ) ) ) ) ; assertEquals ( 1 , q.size ( ) ) ; }
Source:
public int hashCode ( ) { return ( name ) != null ? name.hashCode ( ) : 0 ; }

Target:
public int hashCode ( ) { return id ; }
Source:
public static int NegatedCondition ( boolean x ) { if ( x != false ) { return 42 ; } else { return 43 ; } }

Target:
public static int NegatedCondition ( boolean x ) { return x != false ? 42 : 43 ; }
Source:
public void terminate ( ) { if ( ( image ) != null ) { image.dispose ( ) ; } crosshairColor.dispose ( ) ; borderColor.dispose ( ) ; paddingColor.dispose ( ) ; }

Target:
public void dispose ( ) { super . dispose ( ) ; if ( ( image ) != null ) { image.dispose ( ) ; } crosshairColor.dispose ( ) ; borderColor.dispose ( ) ; paddingColor.dispose ( ) ; }
Source:
private void onGetImageSuccess ( java.lang.String cacheKey , android.graphics.Bitmap response ) { mCache.putBitmap ( cacheKey , response ) ; com.android.volley.toolbox.ImageLoader.BatchedImageRequest request = mInFlightRequests.remove ( cacheKey ) ; if ( request != null ) { request.mResponseBitmap = response ; batchResponse ( cacheKey , request ) ; } }

Target:
protected void onGetImageSuccess ( java.lang.String cacheKey , android.graphics.Bitmap response ) { mCache.putBitmap ( cacheKey , response ) ; com.android.volley.toolbox.ImageLoader.BatchedImageRequest request = mInFlightRequests.remove ( cacheKey ) ; if ( request != null ) { request.mResponseBitmap = response ; batchResponse ( cacheKey , request ) ; } }
Source:
public void visitRuntimeInvisibleAnnotationsAttribute ( proguard.classfile.attribute.visitor.Clazz clazz , proguard.classfile.attribute.visitor.RuntimeInvisibleAnnotationsAttribute runtimeInvisibleAnnotationsAttribute ) { if ( ( runtimeInvisibleAnnotationsAttribute.u2annotationsCount ) > 0 ) { runtimeInvisibleAnnotationsAttribute.accept ( clazz , attributeVisitor ) ; } }

Target:
public void visitRuntimeInvisibleAnnotationsAttribute ( proguard.classfile.attribute.visitor.Clazz clazz , proguard.classfile.attribute.visitor.RuntimeInvisibleAnnotationsAttribute runtimeInvisibleAnnotationsAttribute ) { if ( ( runtimeInvisibleAnnotationsAttribute.u2annotationsCount ) > 0 ) { attributeVisitor.visitRuntimeInvisibleAnnotationsAttribute ( clazz , runtimeInvisibleAnnotationsAttribute ) ; } }
Source:
public void testNanoSingle ( ) throws java.lang.Exception { com.google.protobuf.nano.UnittestSingleNano.SingleMessageNano msg = new com.google.protobuf.nano.UnittestSingleNano.SingleMessageNano ( ) ; }

Target:
public void testNanoSingle ( ) throws java.lang.Exception { com.google.protobuf.nano.UnittestSingleNano.SingleMessageNano msg = new com.google.protobuf.nano.UnittestSingleNano.SingleMessageNano ( ) ; assertNotNull ( msg ) ; }
Source:
public void testConformance ( ) throws java.io.FileNotFoundException { org.chromium.mojo.bindings.ValidationTest.runTest ( "conformance_" , ConformanceTestInterface.MANAGER.buildStub ( org.chromium.mojo.system.impl.CoreImpl.getInstance ( ) , ConformanceTestInterface.MANAGER.buildProxy ( org.chromium.mojo.system.impl.CoreImpl.getInstance ( ) , new org.chromium.mojo.bindings.ValidationTest.SinkMessageReceiver ( ) ) ) ) ; }

Target:
public void testConformance ( ) throws java.io.FileNotFoundException { org.chromium.mojo.bindings.ValidationTest.runTest ( "conformance_" , ConformanceTestInterface.MANAGER.buildStub ( null , ConformanceTestInterface.MANAGER.buildProxy ( null , new org.chromium.mojo.bindings.ValidationTest.SinkMessageReceiver ( ) ) ) ) ; }
Source:
double getDoubleUnchecked ( int i ) { return getDouble ( ix ( i ) ) ; }

Target:
final double getDoubleUnchecked ( int i ) { return getDouble ( ix ( i ) ) ; }
Source:
public void libToLib ( @ javax.annotation.Nonnull java.io.File [ ] in , @ javax.annotation.Nonnull java.io.File out , boolean zipFiles ) throws java.lang.Exception { libToCommon ( in ) ; setOutputJack ( out ) ; apiV01Config.getTask ( ) . run ( ) ; }

Target:
public void libToLib ( @ javax.annotation.Nonnull java.io.File [ ] in , @ javax.annotation.Nonnull java.io.File out , boolean zipFiles ) throws java.lang.Exception { libToCommon ( in ) ; setOutputJack ( out ) ; run ( ) ; }
Source:
void libToLib ( @ javax.annotation.Nonnull java.io.File [ ] in , @ javax.annotation.Nonnull java.io.File out , boolean zipFiles ) throws java.lang.Exception ;

Target:
void libToLib ( @ javax.annotation.Nonnull java.io.File in , @ javax.annotation.Nonnull java.io.File out , boolean zipFiles ) throws java.lang.Exception ;
Source:
public java.lang.String toGenericString ( ) { return java.lang.reflect.Constructor.sharedToGenericString ( java.lang.reflect.Modifier.constructorModifiers ( ) , false ) ; }

Target:
public java.lang.String toGenericString ( ) { return sharedToGenericString ( java.lang.reflect.Modifier.constructorModifiers ( ) , false ) ; }
Source:
public void createTabs ( org.eclipse.debug.ui.ILaunchConfigurationDialog dialog , java.lang.String mode ) { org.eclipse.debug.ui.ILaunchConfigurationTab [ ] tabs = new org.eclipse.debug.ui.ILaunchConfigurationTab [ ] { new com.android.ide.eclipse.adt.internal.launch.junit.AndroidJUnitLaunchConfigurationTab ( ) , new com.android.ide.eclipse.adt.internal.launch.EmulatorConfigTab ( ) , new org.eclipse.debug.ui.CommonTab ( ) } ; setTabs ( tabs ) ; }

Target:
public void createTabs ( org.eclipse.debug.ui.ILaunchConfigurationDialog dialog , java.lang.String mode ) { org.eclipse.debug.ui.ILaunchConfigurationTab [ ] tabs = new org.eclipse.debug.ui.ILaunchConfigurationTab [ ] { new com.android.ide.eclipse.adt.internal.launch.junit.AndroidJUnitLaunchConfigurationTab ( ) , new com.android.ide.eclipse.adt.internal.launch.EmulatorConfigTab ( false ) , new org.eclipse.debug.ui.CommonTab ( ) } ; setTabs ( tabs ) ; }
Source:
public void free ( ) { if ( ( address ) != 0 ) { try { Libcore.os.munmap ( address , size ) ; } catch ( android.system.ErrnoException errnoException ) { throw new java.lang.AssertionError ( errnoException ) ; } address = 0 ; } }

Target:
public void free ( ) { if ( ( address ) != 0 ) { try { Libcore.os.munmap ( address , size ) ; } catch ( android.system.ErrnoException errnoException ) { throw new java.lang.AssertionError ( errnoException ) ; } } super . free ( ) ; }
Source:
public void setDeviceOrientation ( int rotation ) { throw com.android.dialer.common.Assert.createUnsupportedOperationFailException ( ) ; }

Target:
public void setDeviceOrientation ( int rotation ) { }
Source:
public native int length ( ) ;

Target:
public int length ( ) { return count ; }
Source:
public final native java.lang.Object getVolatile ( java.lang.Object ... args ) ;

Target:
public final native void set ( java.lang.Object ... args ) ;
Source:
public static void loop2 ( boolean incoming ) { java.lang.System.out.println ( "Enter" ) ; while ( true ) { java.lang.System.out.println ( "foo" ) ; while ( incoming ) { } } }

Target:
public static void loop2 ( boolean incoming ) { while ( true ) { java.lang.System.out.println ( "foo" ) ; while ( incoming ) { } } }
Source:
public void conference ( ) throws com.android.internal.telephony.CallStateException { mCT.conference ( ) ; }

Target:
public void conference ( ) { mCT.conference ( ) ; }
Source:
public void tearDown ( ) throws java.lang.Exception { testThreadPool.shutdownNow ( ) ; super . tearDown ( ) ; }

Target:
public void tearDown ( ) throws java.lang.Exception { testThreadPool.shutdownNow ( ) ; }
Source:
public void put ( com.android.jack.dx.rop.annotation.NameValuePair pair ) { throwIfImmutable ( ) ; if ( pair == null ) { throw new java.lang.NullPointerException ( "pair == null" ) ; } elements.put ( pair.getName ( ) , pair ) ; }

Target:
public void put ( com.android.jack.dx.rop.annotation.NameValuePair pair ) { assert pair != null ; throwIfImmutable ( ) ; elements.put ( pair.getName ( ) , pair ) ; }
Source:
void putLongInt ( long val ) { this . makeValid ( ) ; java.math.BigInt.Check ( java.math.NativeBN.putLongInt ( this . bignum , val ) ) ; }

Target:
void putLongInt ( long val ) { this . makeValid ( ) ; java.math.NativeBN.putLongInt ( this . bignum , val ) ; }
Source:
public static void computeLog ( android.renderscript.cts.TestLog.ArgumentsFloatFloat args , android.renderscript.cts.Target t ) { t.setPrecision ( 3 , 16 , false ) ; args.out = android.renderscript.cts.CoreMathVerifier.log ( args.in , t ) ; }

Target:
public static void computeLog ( android.renderscript.cts.TestLog.ArgumentsFloatFloat args , android.renderscript.cts.Target t ) { t.setPrecision ( 3 , 16 , false ) ; args.out = android.renderscript.cts.CoreMathVerifier.log ( args.inV , t ) ; }
Source:
private boolean checkPuk ( ) { if ( ( mPasswordEntry.getText ( ) . length ( ) ) >= 8 ) { mPukText = mPasswordEntry.getText ( ) . toString ( ) ; return true ; } return false ; }

Target:
private boolean checkPuk ( ) { if ( ( mPasswordEntry.getText ( ) . length ( ) ) == 8 ) { mPukText = mPasswordEntry.getText ( ) . toString ( ) ; return true ; } return false ; }
Source:
public native boolean getBoolean ( java.lang.Object object ) throws java.lang.IllegalAccessException , java.lang.IllegalArgumentException ;

Target:
public native boolean getBoolean ( java.lang.Object obj ) throws java.lang.IllegalAccessException , java.lang.IllegalArgumentException ;
Source:
private boolean isValidNumber ( java.lang.String number ) { return ( number.length ( ) ) <= 20 ; }

Target:
private boolean isValidNumber ( java.lang.String number ) { return ( ( number.length ( ) ) <= 20 ) && ( ( number.length ( ) ) > 0 ) ; }
Source:
public void addActivationStateListener ( com.android.voicemail.stub.ActivationStateListener listener ) { throw com.android.dialer.common.Assert.createAssertionFailException ( "should never be called on stub." ) ; }

Target:
public void addActivationStateListener ( com.android.voicemail.stub.ActivationStateListener listener ) { }
Source:
public static android.renderscript.ScriptIntrinsicLUT create ( android.renderscript.RenderScript rs , android.renderscript.Element e ) { int id = rs.nScriptIntrinsicCreate ( 3 , e.getID ( rs ) ) ; return new android.renderscript.ScriptIntrinsicLUT ( id , rs ) ; }

Target:
public static android.renderscript.ScriptIntrinsicLUT create ( android.renderscript.RenderScript rs , android.renderscript.Element e ) { long id = rs.nScriptIntrinsicCreate ( 3 , e.getID ( rs ) ) ; return new android.renderscript.ScriptIntrinsicLUT ( id , rs ) ; }
Source:
public void traverse ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JVisitor visitor ) { if ( visitor.visit ( this ) ) { visitor.accept ( body ) ; } visitor.endVisit ( this ) ; }

Target:
public void traverse ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JVisitor visitor ) { visitor.visit ( this ) ; visitor.endVisit ( this ) ; }
Source:
void addPropertyChangeListener ( java.beans.PropertyChangeListener listener ) ;

Target:
default void addPropertyChangeListener ( java.beans.PropertyChangeListener listener ) { }
Source:
public void testExtractDecodeEditEncodeMux720p ( ) throws java.lang.Throwable { setSize ( 1280 , 720 ) ; setSource ( R.raw.video_480x360_mp4_h264_500kbps_30fps_aac_stereo_128kbps_44100hz ) ; setCopyVideo ( ) ; android.media.cts.ExtractDecodeEditEncodeMuxTest.TestWrapper.runTest ( this ) ; }

Target:
public void testExtractDecodeEditEncodeMux720p ( ) throws java.lang.Throwable { if ( ! ( setSize ( 1280 , 720 ) ) ) return ; setSource ( R.raw.video_480x360_mp4_h264_500kbps_30fps_aac_stereo_128kbps_44100hz ) ; setCopyVideo ( ) ; android.media.cts.ExtractDecodeEditEncodeMuxTest.TestWrapper.runTest ( this ) ; }
Source:
public synchronized com.google.android.gles_jni.EGLContext eglGetCurrentContext ( ) { int value = _eglGetCurrentContext ( ) ; if ( value == 0 ) { return EGL10.EGL_NO_CONTEXT ; } if ( ( mContext.mEGLContext ) != value ) mContext = new com.google.android.gles_jni.EGLContextImpl ( value ) ; return mContext ; }

Target:
public synchronized com.google.android.gles_jni.EGLContext eglGetCurrentContext ( ) { long value = _eglGetCurrentContext ( ) ; if ( value == 0 ) { return EGL10.EGL_NO_CONTEXT ; } if ( ( mContext.mEGLContext ) != value ) mContext = new com.google.android.gles_jni.EGLContextImpl ( value ) ; return mContext ; }
Source:
public E peekFirst ( ) { return elements [ head ] ; }

Target:
public E peekFirst ( ) { @ java.lang.SuppressWarnings ( value = "unchecked" ) E result = ( ( E ) ( elements [ head ] ) ) ; return result ; }
Source:
public void run ( ) { getActivity ( ) . setVisible ( true ) ; }

Target:
public void run ( ) { getActivity ( ) . setVisible ( false ) ; }
Source:
void start ( java.lang.String outcomeName , java.lang.String runnerClass ) ;

Target:
void start ( java.lang.String outcomeName ) ;
Source:
protected void implConfigureBlocking ( boolean blocking ) throws java.io.IOException { synchronized ( blockingLock ( ) ) { libcore.io.IoUtils.setBlocking ( impl.getFD$ ( ) , blocking ) ; } }

Target:
protected void implConfigureBlocking ( boolean blocking ) throws java.io.IOException { libcore.io.IoUtils.setBlocking ( impl.getFD$ ( ) , blocking ) ; }
Source:
public int start ( ) { checkValid ( ) ; return data [ ( ( pos ) + 1 ) ] ; }

Target:
public int start ( ) { return data [ ( ( pos ) + 1 ) ] ; }
Source:
void putUnchecked ( int pos , double [ ] src , int srcOffset , int length ) { libcore.io.Memory.pokeDoubleArray ( ix ( pos ) , src , srcOffset , length , ( ! ( nativeByteOrder ) ) ) ; }

Target:
final void putUnchecked ( int pos , double [ ] src , int srcOffset , int length ) { libcore.io.Memory.pokeDoubleArray ( ix ( pos ) , src , srcOffset , length , ( ! ( nativeByteOrder ) ) ) ; }
Source:
private boolean isValidDevice ( android.bluetooth.BluetoothDevice device ) { if ( device == null ) { return false ; } if ( android.bluetooth.BluetoothAdapter.checkBluetoothAddress ( device.getAddress ( ) ) ) { return true ; } return false ; }

Target:
private static boolean isValidDevice ( android.bluetooth.BluetoothDevice device ) { return ( device != null ) && ( android.bluetooth.BluetoothAdapter.checkBluetoothAddress ( device.getAddress ( ) ) ) ; }
Source:
protected void finalize ( ) throws java.lang.Throwable { try { mFile.close ( ) ; } catch ( java.io.IOException e ) { } finally { super . finalize ( ) ; } }

Target:
protected void finalize ( ) throws java.lang.Throwable { try { close ( ) ; } finally { super . finalize ( ) ; } }
Source:
private int getUserRotation ( ) throws com.android.tradefed.device.DeviceNotAvailableException { final java.lang.String rotation = runCommandAndPrintOutput ( "settings get system user_rotation" ) . trim ( ) ; if ( "null" . equals ( rotation ) ) { return - 1 ; } return java.lang.Integer.parseInt ( rotation ) ; }

Target:
protected int getUserRotation ( ) throws com.android.tradefed.device.DeviceNotAvailableException { final java.lang.String rotation = runCommandAndPrintOutput ( "settings get system user_rotation" ) . trim ( ) ; if ( "null" . equals ( rotation ) ) { return - 1 ; } return java.lang.Integer.parseInt ( rotation ) ; }
Source:
public int dexopt ( java.lang.String apkPath , int uid , boolean isPublic , java.lang.String instructionSet ) { return dexopt ( apkPath , uid , isPublic , "*" , instructionSet , false ) ; }

Target:
public int dexopt ( java.lang.String apkPath , int uid , boolean isPublic , java.lang.String instructionSet ) { return dexopt ( apkPath , uid , isPublic , "*" , instructionSet , false , false ) ; }
Source:
public synchronized java.lang.String getCookie ( android.net.WebAddress uri ) { throw new android.webkit.MustOverrideException ( ) ; }

Target:
public synchronized java.lang.String getCookie ( android.net.WebAddress uri ) { return getCookie ( uri.toString ( ) ) ; }
Source:
public void openArtifactSettings ( @ org.jetbrains.annotations.Nullable com.intellij.packaging.artifacts.Artifact artifact ) { warnIfGradleProject ( ) ; com.intellij.openapi.roots.ui.configuration.ModulesConfigurator.showArtifactSettings ( myProject , artifact ) ; }

Target:
public void openArtifactSettings ( @ org.jetbrains.annotations.Nullable com.intellij.packaging.artifacts.Artifact artifact ) { com.intellij.openapi.roots.ui.configuration.ModulesConfigurator.showArtifactSettings ( myProject , artifact ) ; }
Source:
public java.lang.String getRead ( ) { if ( ( mReportRead ) == false ) { return "UNKNOWN" ; } return mRead ? "READ" : "UNREAD" ; }

Target:
public java.lang.String getRead ( ) { if ( ! ( mReportRead ) ) { return "UNKNOWN" ; } return mRead ? "READ" : "UNREAD" ; }
Source:
public void notifyDisconnectCause ( com.android.internal.telephony.Connection.DisconnectCause cause , int preciseCause ) { try { mRegistry.notifyDisconnectCause ( com.android.internal.telephony.DefaultPhoneNotifier.convertDisconnectCause ( cause ) , preciseCause ) ; } catch ( android.os.RemoteException ex ) { } }

Target:
public void notifyDisconnectCause ( int cause , int preciseCause ) { try { mRegistry.notifyDisconnectCause ( cause , preciseCause ) ; } catch ( android.os.RemoteException ex ) { } }
Source:
public void tearDown ( ) throws java.lang.Exception { testThread.quitLooper ( ) ; asyncPool.shutdown ( ) ; super . tearDown ( ) ; }

Target:
public void tearDown ( ) throws java.lang.Exception { testThread.quitLooper ( ) ; asyncPool.shutdown ( ) ; }
Source:
public void setUiTtyMode ( int uiTtyMode , android.os.Message onCompleteMessage ) throws android.os.RemoteException { synchronized ( mLock ) { this . setUiTtyMode ( uiTtyMode , onCompleteMessage ) ; } }

Target:
public void setUiTtyMode ( int uiTtyMode , android.os.Message onCompleteMessage ) throws android.os.RemoteException { synchronized ( mLock ) { try { this . setUiTtyMode ( uiTtyMode , onCompleteMessage ) ; } catch ( java.lang.Exception e ) { throw new android.os.RemoteException ( e.getMessage ( ) ) ; } } }
Source:
public void prependPath ( @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) { pathFragments.add ( 0 , new com.android.sched.vfs.VPath.VPathFragment ( java.lang.String.valueOf ( com.android.sched.vfs.VPath.INTERNAL_SEPARATOR ) , com.android.sched.vfs.VPath.INTERNAL_SEPARATOR ) ) ; pathFragments.addAll ( 0 , path.getPathFragments ( ) ) ; }

Target:
public com.android.sched.vfs.VPath prependPath ( @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) { pathFragments.add ( 0 , new com.android.sched.vfs.VPath.VPathFragment ( java.lang.String.valueOf ( com.android.sched.vfs.VPath.INTERNAL_SEPARATOR ) , com.android.sched.vfs.VPath.INTERNAL_SEPARATOR ) ) ; pathFragments.addAll ( 0 , path.getPathFragments ( ) ) ; return this ; }
Source:
public void decreaseSlideSize ( int decreaseSize ) { if ( decreaseSize > 0 ) { mSlideSize -= decreaseSize ; } }

Target:
public void decreaseSlideSize ( int decreaseSize ) { if ( decreaseSize > 0 ) { mSlideSize -= decreaseSize ; if ( ( mSlideSize ) < 0 ) { mSlideSize = 0 ; } } }
Source:
private int getMask ( int length ) { int res = 0 ; for ( int i = 0 ; i < length ; i ++ ) { res = ( res << 1 ) + 1 ; } return res ; }

Target:
private static int getMask ( int length ) { return ( 1 << length ) - 1 ; }
Source:
private static void createDir ( java.io.File folder ) throws java.io.IOException { if ( ( ! ( folder.isDirectory ( ) ) ) && ( ! ( folder.mkdirs ( ) ) ) ) { throw new java.io.IOException ( ( "Failed to create directory: " + folder ) ) ; } }

Target:
private synchronized void createDir ( java.io.File folder ) throws java.io.IOException { if ( ( ! ( folder.isDirectory ( ) ) ) && ( ! ( folder.mkdirs ( ) ) ) ) { throw new java.io.IOException ( ( "Failed to create directory: " + folder ) ) ; } }
Source:
public static < T > org.hamcrest.Matcher < T > allOf ( org.hamcrest.Matcher < ? extends T > ... matchers ) { return org.hamcrest.core.AllOf.allOf ( java.util.Arrays.asList ( matchers ) ) ; }

Target:
public static < T > org.hamcrest.Matcher < T > allOf ( org.hamcrest.Matcher < ? super T > ... matchers ) { return org.hamcrest.core.AllOf.allOf ( java.util.Arrays.asList ( matchers ) ) ; }
Source:
private void handleRadioProxyExceptionForRR ( java.lang.String caller , java.lang.Exception e , com.android.internal.telephony.RILRequest rr ) { riljLoge ( caller , e ) ; rr.onError ( com.android.internal.telephony.RADIO_NOT_AVAILABLE , null ) ; decrementWakeLock ( rr ) ; rr.release ( ) ; resetProxyAndRequestList ( ) ; }

Target:
private void handleRadioProxyExceptionForRR ( com.android.internal.telephony.RILRequest rr , java.lang.String caller , java.lang.Exception e ) { riljLoge ( caller , e ) ; rr.onError ( com.android.internal.telephony.RADIO_NOT_AVAILABLE , null ) ; decrementWakeLock ( rr ) ; rr.release ( ) ; resetProxyAndRequestList ( ) ; }
Source:
protected void setResult ( com.android.jack.dx.rop.code.RegisterSpec result ) { if ( result == null ) { throw new java.lang.NullPointerException ( "result == null" ) ; } this . result = result ; }

Target:
protected void setResult ( com.android.jack.dx.rop.code.RegisterSpec result ) { assert result != null ; this . result = result ; }
Source:
void setDevice ( android.bluetooth.BluetoothDevice device ) { this . mDevice = device ; }

Target:
void setDevice ( android.bluetooth.BluetoothDevice device ) { mDevice = device ; }
Source:
private void stopAdvertise ( ) { if ( com.android.cts.verifier.bluetooth.BleServerService.DEBUG ) { android.util.Log.d ( com.android.cts.verifier.bluetooth.BleServerService.TAG , "stopAdvertise" ) ; } if ( ( mAdvertiser ) != null ) { mAdvertiser.stopAdvertising ( mAdvertiseCallback ) ; } }

Target:
private void stopAdvertise ( ) { if ( com.android.cts.verifier.bluetooth.BleServerService.DEBUG ) android.util.Log.d ( com.android.cts.verifier.bluetooth.BleServerService.TAG , "stopAdvertise" ) ; mAdvertiser.stopAdvertising ( mAdvertiseCallback ) ; }
Source:
public void testEnded ( com.android.ddmlib.testrunner.TestIdentifier test , java.util.Map < java.lang.String , java.lang.String > testMetrics ) { mRunResult.reportTestEnded ( test , testMetrics ) ; }

Target:
public void testEnded ( com.android.ddmlib.testrunner.TestIdentifier test , java.util.Map < java.lang.String , java.lang.String > testMetrics ) { mRunResult.testEnded ( test , testMetrics ) ; }
Source:
public void registerForNetworkLocked ( android.os.Handler h , int what , java.lang.Object obj ) ;

Target:
public void registerForNetworkLocked ( android.os.Handler h , int what , java.lang.Object obj ) { return ; }
Source:
protected void tearDown ( ) throws java.lang.Exception { resetDeviceToClean ( ) ; deleteTempDir ( ) ; super . tearDown ( ) ; }

Target:
public void tearDown ( ) throws java.lang.Exception { resetDeviceToClean ( ) ; deleteTempDir ( ) ; }
Source:
public void update ( byte [ ] in , int inOff , int len ) { md5.update ( in , inOff , len ) ; sha1.update ( in , inOff , len ) ; }

Target:
public void update ( byte [ ] input , int inOff , int len ) { md5.update ( input , inOff , len ) ; sha1.update ( input , inOff , len ) ; }
Source:
public void onConnectionUpdated ( android.bluetooth.BluetoothDevice gatt , int interval , int latency , int timeout , int status ) { }

Target:
public void onConnectionUpdated ( android.bluetooth.BluetoothDevice device , int interval , int latency , int timeout , int status ) { }
Source:
static void native_setValues ( int native_object , float [ ] values ) { android.graphics.Matrix_Delegate d = android.graphics.Matrix_Delegate.sManager.getDelegate ( native_object ) ; if ( d == null ) { return ; } java.lang.System.arraycopy ( values , 0 , d.mValues , 0 , android.graphics.Matrix_Delegate.MATRIX_SIZE ) ; }

Target:
static void native_setValues ( long native_object , float [ ] values ) { android.graphics.Matrix_Delegate d = android.graphics.Matrix_Delegate.sManager.getDelegate ( native_object ) ; if ( d == null ) { return ; } java.lang.System.arraycopy ( values , 0 , d.mValues , 0 , android.graphics.Matrix_Delegate.MATRIX_SIZE ) ; }
Source:
public E get ( int key ) { return get ( key , null ) ; }

Target:
public E get ( long key ) { return get ( key , null ) ; }