auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public final void run ( ) { try { realRun ( ) ; } catch ( java.lang.Throwable t ) { threadUnexpectedException ( t ) ; } }

Target:
public final void run ( ) { try { realRun ( ) ; } catch ( java.lang.Throwable fail ) { threadUnexpectedException ( fail ) ; } }
Source:
public static native long SSL_do_handshake_bio ( long sslNativePointer , long sourceBioRef , long sinkBioRef , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks shc , boolean client_mode , byte [ ] npnProtocols , byte [ ] alpnProtocols ) throws java.net.SocketTimeoutException , java.security.cert.CertificateException , javax.net.ssl.SSLException ;

Target:
public static native long SSL_do_handshake_bio ( long sslNativePointer , long sourceBioRef , long sinkBioRef , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks shc , boolean client_mode , byte [ ] alpnProtocols ) throws java.net.SocketTimeoutException , java.security.cert.CertificateException , javax.net.ssl.SSLException ;
Source:
private static native long nativeOpenJarFile ( java.lang.String fileName ) throws java.io.IOException ;

Target:
private static native long nativeOpenJarFile ( java.lang.String name , int fd ) throws java.io.IOException ;
Source:
protected void createPagesRoot ( org.eclipse.swt.widgets.Composite parent ) { mPagesRootComposite = new org.eclipse.swt.widgets.Composite ( parent , org.eclipse.swt.SWT.NONE ) ; mStackLayout = new org.eclipse.swt.custom.StackLayout ( ) ; mPagesRootComposite.setLayout ( mStackLayout ) ; }

Target:
private void createPagesRoot ( org.eclipse.swt.widgets.Composite parent ) { mPagesRootComposite = new org.eclipse.swt.widgets.Composite ( parent , org.eclipse.swt.SWT.NONE ) ; mStackLayout = new org.eclipse.swt.custom.StackLayout ( ) ; mPagesRootComposite.setLayout ( mStackLayout ) ; }
Source:
private void assertVerdict ( int expected , byte [ ] program , byte [ ] packet ) { android.net.apf.ApfTest.assertReturnCodesEqual ( expected , android.net.apf.ApfTest.apfSimulate ( program , packet , 0 ) ) ; }

Target:
private void assertVerdict ( int expected , byte [ ] program , byte [ ] packet ) { android.net.apf.ApfTest.assertReturnCodesEqual ( expected , android.net.apf.ApfTest.apfSimulate ( program , packet , null , 0 ) ) ; }
Source:
protected void internalTearDown ( ) { debuggeeWrapper.vmMirror.resume ( ) ; printTestLog ( "FINISHED" ) ; super . internalTearDown ( ) ; }

Target:
protected void internalTearDown ( ) { printTestLog ( "FINISHED" ) ; super . internalTearDown ( ) ; }
Source:
public void checkServerTrusted ( java.security.cert.X509Certificate [ ] chain , java.lang.String authType ) throws java.security.cert.CertificateException { checkTrusted ( chain , authType , null , null , false ) ; }

Target:
public void checkServerTrusted ( java.security.cert.X509Certificate [ ] chain , java.lang.String authType ) throws java.security.cert.CertificateException { checkTrusted ( chain , authType , null , false ) ; }
Source:
public void fileServicesUpdated ( java.util.List < android.telephony.mbms.FileServiceInfo > services ) { }

Target:
public void fileServicesUpdated ( java.util.List < android.telephony.mbms.FileServiceInfo > services ) throws android.os.RemoteException { }
Source:
public android.net.LocalSocket accept ( ) throws java.io.IOException { android.net.LocalSocketImpl acceptedImpl = new android.net.LocalSocketImpl ( ) ; impl.accept ( acceptedImpl ) ; return android.net.LocalSocket.createLocalSocketForAccept ( acceptedImpl , LocalSocket.SOCKET_UNKNOWN ) ; }

Target:
public android.net.LocalSocket accept ( ) throws java.io.IOException { android.net.LocalSocketImpl acceptedImpl = new android.net.LocalSocketImpl ( ) ; impl.accept ( acceptedImpl ) ; return android.net.LocalSocket.createLocalSocketForAccept ( acceptedImpl ) ; }
Source:
public void test_10100 ( ) throws java.lang.Exception { assertEquals ( "image/jpeg" , java.net.URLConnection.guessContentTypeFromName ( "someFile.jpg" ) ) ; assertEquals ( "application/pdf" , java.net.URLConnection.guessContentTypeFromName ( "stuff.pdf" ) ) ; }

Target:
public void test_10100 ( ) throws java.lang.Exception { org.junit.Assert.assertEquals ( "image/jpeg" , java.net.URLConnection.guessContentTypeFromName ( "someFile.jpg" ) ) ; org.junit.Assert.assertEquals ( "application/pdf" , java.net.URLConnection.guessContentTypeFromName ( "stuff.pdf" ) ) ; }
Source:
protected java.lang.String getWizardActionDescription ( ) { return com.google.gct.idea.util.GctBundle.message ( "sample.import.title" ) ; }

Target:
public java.lang.String getWizardActionDescription ( ) { return com.google.gct.idea.util.GctBundle.message ( "sample.import.title" ) ; }
Source:
public void testInitialize_zeroInterfacesFailure ( ) throws java.lang.Exception { executeAndValidateInitializationSequence ( false , true , false ) ; }

Target:
public void testInitialize_zeroInterfacesFailure ( ) throws java.lang.Exception { executeAndValidateInitializationSequence ( false , true , false , false ) ; }
Source:
public java.util.ArrayList < com.android.dialer.smartdial.SmartDialMatchPosition > getMatchPositions ( ) { return new java.util.ArrayList < com.android.dialer.smartdial.SmartDialMatchPosition > ( mMatchPositions ) ; }

Target:
public java.util.ArrayList < com.android.dialer.smartdial.SmartDialMatchPosition > getMatchPositions ( ) { return new java.util.ArrayList ( mMatchPositions ) ; }
Source:
public void onOffsetsChanged ( float xOffset , float yOffset , float xStep , float yStep , int xPixels , int yPixels ) { mRenderer.setOffset ( xOffset , yOffset , xPixels , yPixels ) ; }

Target:
public void onOffsetsChanged ( float xOffset , float yOffset , float xStep , float yStep , int xPixels , int yPixels ) { if ( ( mRenderer ) != null ) mRenderer.setOffset ( xOffset , yOffset , xPixels , yPixels ) ; }
Source:
native void rsnAllocationRead ( int con , int id , float [ ] d ) ;

Target:
native void rsnAllocationRead ( long con , long id , float [ ] d ) ;
Source:
private java.io.OutputStream createOutputStream ( java.io.ByteArrayOutputStream bytes , javax.crypto.Cipher cipher , boolean useBc ) { return useBc ? ( ( java.io.OutputStream ) ( new org.bouncycastle.jcajce.io.CipherOutputStream ( bytes , cipher ) ) ) : ( ( java.io.OutputStream ) ( new javax.crypto.CipherOutputStream ( bytes , cipher ) ) ) ; }

Target:
private java.io.OutputStream createOutputStream ( java.io.ByteArrayOutputStream bytes , javax.crypto.Cipher cipher , boolean useBc ) { return useBc ? ( ( java.io.OutputStream ) ( new javax.crypto.CipherOutputStream ( bytes , cipher ) ) ) : ( ( java.io.OutputStream ) ( new javax.crypto.CipherOutputStream ( bytes , cipher ) ) ) ; }
Source:
protected void visitString ( int type , int index ) { addConstant ( new com.android.jack.dx.rop.cst.CstString ( dex.strings ( ) . get ( index ) ) ) ; }

Target:
protected void visitString ( int index ) { addConstant ( new com.android.jack.dx.rop.cst.CstString ( dex.strings ( ) . get ( index ) ) ) ; }
Source:
protected void onCreate ( android.os.Bundle icicle ) { super . onCreate ( icicle ) ; android.view.View content = new android.view.View ( this ) ; content.setOnApplyWindowInsetsListener ( this ) ; setContentView ( content ) ; }

Target:
protected void onCreate ( android.os.Bundle icicle ) { super . onCreate ( icicle ) ; }
Source:
public void testEncode_CharBuffer_NullEncoder ( ) { tests.api.java.nio.charset.CharsetTest.MockCharset2 c = new tests.api.java.nio.charset.CharsetTest.MockCharset2 ( "mock2" , null ) ; try { c.encode ( java.nio.CharBuffer.wrap ( "hehe" ) ) ; fail ( "Should throw NullPointerException!" ) ; } catch ( java.lang.NullPointerException e ) { } }

Target:
public void testEncode_CharBuffer_NullEncoder ( ) { tests.api.java.nio.charset.CharsetTest.MockCharset2 c = new tests.api.java.nio.charset.CharsetTest.MockCharset2 ( "mock2" , null ) ; try { c.encode ( java.nio.CharBuffer.wrap ( "hehe" ) ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } }
Source:
private static void doTestPrimitiveFieldsIntegral ( ) { java.lang.System.out.println ( "doTestPrimitiveFieldsIntegral" ) ; art.Test906.IntObject intObject = new art.Test906.IntObject ( ) ; art.Test906.setTag ( intObject , 10000 ) ; java.lang.System.out.println ( art.Test906.iterateThroughHeapPrimitiveFields ( 10000 ) ) ; java.lang.System.out.println ( art.Test906.getTag ( intObject ) ) ; }

Target:
private static void doTestPrimitiveFieldsIntegral ( ) { art.Test906.IntObject intObject = new art.Test906.IntObject ( ) ; art.Test906.setTag ( intObject , 10000 ) ; java.lang.System.out.println ( art.Test906.iterateThroughHeapPrimitiveFields ( 10000 ) ) ; java.lang.System.out.println ( art.Test906.getTag ( intObject ) ) ; }
Source:
public void testParseARPRequest ( ) { final java.lang.String packet = "FFFFFFFFFFFF 807ABF6F48F3 0806" + ( ( ( "0001 0800 06 04" + "0001" ) + "807ABF6F48F3 64706ADB" ) + "000000000000 64706FFD" ) ; final java.lang.String expected = "TX 80:7a:bf:6f:48:f3 > ff:ff:ff:ff:ff:ff arp" + " who-has 100.112.111.253" ; assertEquals ( expected , getSummary ( packet ) ) ; }

Target:
public void testParseARPRequest ( ) { final java.lang.String packet = "FFFFFFFFFFFF 807ABF6F48F3 0806" + ( ( ( "0001 0800 06 04" + "0001" ) + "807ABF6F48F3 64706ADB" ) + "000000000000 64706FFD" ) ; final java.lang.String expected = "TX 80:7a:bf:6f:48:f3 > ff:ff:ff:ff:ff:ff arp" + " who-has 100.112.111.253" ; org.junit.Assert.assertEquals ( expected , getSummary ( packet ) ) ; }
Source:
public final byte [ ] getEncoded ( ) { if ( key.isEngineBased ( ) ) { return null ; } return org.conscrypt.NativeCrypto.i2d_PKCS8_PRIV_KEY_INFO ( key.getNativeRef ( ) ) ; }

Target:
public final byte [ ] getEncoded ( ) { return org.conscrypt.NativeCrypto.i2d_PKCS8_PRIV_KEY_INFO ( key.getNativeRef ( ) ) ; }
Source:
public java.lang.Object handleGetObject ( java.lang.String key ) { if ( key == null ) { throw new java.lang.NullPointerException ( ) ; } loadLookupTablesIfNecessary ( ) ; return lookup.get ( key ) ; }

Target:
protected java.lang.Object handleGetObject ( java.lang.String key ) { if ( key == null ) { throw new java.lang.NullPointerException ( ) ; } loadLookupTablesIfNecessary ( ) ; return lookup.get ( key ) ; }
Source:
public boolean isTopActivityImmersive ( ) { enforceNotIsolatedCaller ( "startActivity" ) ; synchronized ( this ) { com.android.server.am.ActivityRecord r = getFocusedStack ( ) . topRunningActivityLocked ( null ) ; return r != null ? r.immersive : false ; } }

Target:
public boolean isTopActivityImmersive ( ) { enforceNotIsolatedCaller ( "startActivity" ) ; synchronized ( this ) { com.android.server.am.ActivityRecord r = getFocusedStack ( ) . topRunningActivityLocked ( ) ; return r != null ? r.immersive : false ; } }
Source:
public void uncaughtException ( java.lang.Thread t , java.lang.Throwable e ) { if ( e instanceof TestException ) { passed [ TEST_EXCEPTION_IN_UNCAUGHT ] = true ; throw new UncaughtException ( ) ; } super . uncaughtException ( t , e ) ; }

Target:
public void uncaughtException ( java.lang.Thread t , java.lang.Throwable e ) { throw new UncaughtException ( ) ; }
Source:
public com.android.ims.internal.IImsCallSession createCallSession ( int sessionId , com.android.ims.ImsCallProfile profile , com.android.ims.internal.IImsCallSessionListener listener ) throws android.os.RemoteException { checkBinderConnection ( ) ; return getServiceInterface ( mBinder ) . createCallSession ( sessionId , profile , listener ) ; }

Target:
public com.android.ims.internal.IImsCallSession createCallSession ( int sessionId , com.android.ims.ImsCallProfile profile ) throws android.os.RemoteException { checkBinderConnection ( ) ; return getServiceInterface ( mBinder ) . createCallSession ( sessionId , profile , null ) ; }
Source:
protected void onPause ( ) { super . onPause ( ) ; mProcessor.exit ( ) ; }

Target:
protected void onPause ( ) { super . onPause ( ) ; if ( ( mProcessor ) != null ) { mProcessor.exit ( ) ; } }
Source:
public android.content.BroadcastReceiver getBroadcastReceiver ( ) { return mReceiver ; }

Target:
android.content.BroadcastReceiver getBroadcastReceiver ( ) { return mReceiver ; }
Source:
com.android.jack.test.junit.RuntimeVersion from ( ) default RuntimeVersion.D ;

Target:
com.android.jack.test.junit.RuntimeVersion value ( ) ;
Source:
public void writeToParcel ( android.os.Parcel out ) { out.writeInt ( mCount ) ; out.writeInt ( mLoadedCount ) ; out.writeInt ( mLastCount ) ; out.writeInt ( mUnpluggedCount ) ; }

Target:
public void writeToParcel ( android.os.Parcel out ) { out.writeInt ( mCount.get ( ) ) ; out.writeInt ( mLoadedCount ) ; out.writeInt ( mLastCount ) ; out.writeInt ( mUnpluggedCount ) ; }
Source:
synchronized long nScriptGroup2Create ( java.lang.String cachePath , long [ ] closures ) { validate ( ) ; return rsnScriptGroup2Create ( mContext , cachePath , closures ) ; }

Target:
synchronized long nScriptGroup2Create ( java.lang.String name , java.lang.String cachePath , long [ ] closures ) { validate ( ) ; return rsnScriptGroup2Create ( mContext , name , cachePath , closures ) ; }
Source:
public void test_providerCount ( ) { java.security.Provider [ ] providers = java.security.Security.getProviders ( ) ; assertTrue ( ( ( providers.length ) > 0 ) ) ; assertTrue ( ( ( providers.length ) < 10 ) ) ; }

Target:
public void test_providerCount ( ) { assertTrue ( ( ( providers.size ( ) ) > 0 ) ) ; assertTrue ( ( ( providers.size ( ) ) < 10 ) ) ; }
Source:
void unregisterCallback ( ) { if ( ( mControllerCallbacks ) == null ) return ; mControllerCallbacks.cleanup ( ) ; mControllerCallbacks = null ; synchronized ( mCallbackLock ) { mRegisteredCallback = null ; } }

Target:
void unregisterCallback ( ) { synchronized ( mCallbackLock ) { mRegisteredCallback = null ; } if ( ( mControllerCallbacks ) == null ) return ; mControllerCallbacks.cleanup ( ) ; mControllerCallbacks = null ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; getActivity ( ) ; android.support.test.espresso.IdlingPolicies.setMasterPolicyTimeout ( 5 , java.util.concurrent.TimeUnit.SECONDS ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { android.support.test.espresso.IdlingPolicies.setMasterPolicyTimeout ( 5 , java.util.concurrent.TimeUnit.SECONDS ) ; }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod x ) { return visit ( ( ( com.android.jack.ir.ast.JNode ) ( x ) ) ) ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) { return visit ( ( ( com.android.jack.ir.ast.JNode ) ( method ) ) ) ; }
Source:
public void setSkins ( java.lang.String [ ] skins ) { mSkins = skins ; }

Target:
public void setSkins ( @ com.android.annotations.NonNull java.io.File [ ] skins ) { mSkins = skins ; }
Source:
public E peek ( ) { if ( ( size ) == 0 ) return null ; return ( ( E ) ( queue [ 0 ] ) ) ; }

Target:
public E peek ( ) { return ( size ) == 0 ? null : ( ( E ) ( queue [ 0 ] ) ) ; }
Source:
public java.util.Set < K > keySet ( ) { java.util.Set < K > ks = keySet ; if ( ks != null ) return ks ; else return keySet = new KeySet ( ) ; }

Target:
public java.util.Set < K > keySet ( ) { java.util.Set < K > ks = keySet ; if ( ks == null ) { ks = new KeySet ( ) ; keySet = ks ; } return ks ; }
Source:
public boolean isLabelProperty ( java.lang.Object element , java.lang.String property ) { return false ; }

Target:
public boolean isLabelProperty ( java.lang.Object element , java.lang.String property ) { return super . isLabelProperty ( element , property ) ; }
Source:
public static native int EVP_PKEY_cmp ( int pkey1 , int pkey2 ) ;

Target:
public static native int EVP_PKEY_cmp ( long pkey1 , long pkey2 ) ;
Source:
public long getRetainedSize ( com.android.ahat.heapdump.AhatHeap heap ) { int index = heap.getIndex ( ) ; return ( index >= 0 ) && ( index < ( mRetainedSizes.length ) ) ? mRetainedSizes [ heap.getIndex ( ) ] : 0 ; }

Target:
public long getRetainedSize ( com.android.ahat.heapdump.AhatHeap heap ) { int index = heap.getIndex ( ) ; return ( 0 <= index ) && ( index < ( mRetainedSizes.length ) ) ? mRetainedSizes [ heap.getIndex ( ) ] : 0 ; }
Source:
public void finishDrawing ( android.view.IWindow window ) { if ( com.android.server.WindowManagerService.localLOGV ) android.util.Log.v ( com.android.server.WindowManagerService.TAG , ( "IWindow finishDrawing called for " + window ) ) ; finishDrawingWindow ( this , window ) ; }

Target:
public void finishDrawing ( android.view.IWindow window ) { if ( com.android.server.WindowManagerService.localLOGV ) android.util.Slog.v ( com.android.server.WindowManagerService.TAG , ( "IWindow finishDrawing called for " + window ) ) ; finishDrawingWindow ( this , window ) ; }
Source:
boolean needsShape ( ) { return ( ( this ) == ( com.android.ide.eclipse.adt.internal.assetstudio.AssetType.LAUNCHER ) ) || ( ( this ) == ( com.android.ide.eclipse.adt.internal.assetstudio.AssetType.NOTIFICATION ) ) ; }

Target:
boolean needsShape ( ) { return ( this ) == ( com.android.ide.eclipse.adt.internal.assetstudio.AssetType.LAUNCHER ) ; }
Source:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > onSuccessfulFill ( android.content.Context appContext ) { return com.google.common.util.concurrent.Futures.immediateFuture ( null ) ; }

Target:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > onSuccessfulFill ( ) { return com.google.common.util.concurrent.Futures.immediateFuture ( null ) ; }
Source:
public boolean initializeVendorHal ( ) { if ( com.android.server.wifi.WifiNative.HIDL_VENDOR_ENABLE ) { return mWifiVendorHal.initialize ( ) ; } else { return true ; } }

Target:
public boolean initializeVendorHal ( ) { return mWifiVendorHal.initialize ( ) ; }
Source:
java.io.OutputStream openWrite ( @ javax.annotation.Nonnull com.android.sched.vfs.BaseVFile file ) throws com.android.sched.util.file.WrongPermissionException { return vfs.openWrite ( file ) ; }

Target:
java.io.OutputStream openWrite ( @ javax.annotation.Nonnull com.android.sched.vfs.BaseVFile file , boolean append ) throws com.android.sched.util.file.WrongPermissionException { return vfs.openWrite ( file , append ) ; }
Source:
public static void createNewUiLauncherShortcut ( android.content.Context context ) { com.android.dialer.app.MainComponent.enableComponent ( context ) ; if ( ( Build.VERSION.SDK_INT ) >= ( android.os.Build.VERSION_CODES.O ) ) { com.android.dialer.app.MainComponent.createLauncherShortcutO ( context ) ; } else { com.android.dialer.app.MainComponent.createLauncherShortcutPreO ( context ) ; } }

Target:
public static void createNewUiLauncherShortcut ( android.content.Context context ) { com.android.dialer.app.MainComponent.enableComponent ( context ) ; }
Source:
void libToExe ( @ javax.annotation.Nonnull java.io.File in , @ javax.annotation.Nonnull java.io.File out , boolean zipFile ) throws java.lang.Exception ;

Target:
void libToExe ( @ javax.annotation.Nonnull java.io.File [ ] in , @ javax.annotation.Nonnull java.io.File out , boolean zipFile ) throws java.lang.Exception ;
Source:
public java.lang.String getId ( ) { return "" + ( apiVersion ) ; }

Target:
public java.lang.String getId ( ) { return id ; }
Source:
public void dismiss ( ) { mPopup.dismiss ( ) ; mPopup = null ; }

Target:
public void dismiss ( ) { if ( ( mPopup ) != null ) { mPopup.dismiss ( ) ; mPopup = null ; } }
Source:
public void bulkRequestIconForPageUrl ( android.content.ContentResolver cr , java.lang.String where , android.webkit.WebIconDatabase.IconListener listener ) { throw new android.webkit.MustOverrideException ( ) ; }

Target:
public abstract void bulkRequestIconForPageUrl ( android.content.ContentResolver cr , java.lang.String where , android.webkit.WebIconDatabase.IconListener listener ) ;
Source:
public static com.android.server.wifi.ScanResults create ( int id , com.android.server.wifi.ScanDetail ... nativeResults ) { return new com.android.server.wifi.ScanResults ( id , ( - 1 ) , nativeResults ) ; }

Target:
public static com.android.server.wifi.ScanResults create ( int id , com.android.server.wifi.ScanDetail ... nativeResults ) { return new com.android.server.wifi.ScanResults ( id , false , ( - 1 ) , nativeResults ) ; }
Source:
static java.math.BigInt generatePrimeDefault ( int bitLength ) { java.math.BigInt r = java.math.BigInt.newBigInt ( ) ; java.math.NativeBN.BN_generate_prime_ex ( r.bignum , bitLength , false , 0 , 0 , 0 ) ; return r ; }

Target:
static java.math.BigInt generatePrimeDefault ( int bitLength ) { java.math.BigInt r = java.math.BigInt.newBigInt ( ) ; java.math.NativeBN.BN_generate_prime_ex ( r.bignum , bitLength , false , 0 , 0 ) ; return r ; }
Source:
public void loggedRun ( ) { synchronized ( mLock ) { mDtmfLocalTonePlayer.stopTone ( call ) ; } }

Target:
public void loggedRun ( ) { mDtmfLocalTonePlayer.stopTone ( call ) ; }
Source:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JSession session ) throws java.lang.Exception { java.util.Set < com.android.jack.ir.sourceinfo.FileSourceInfo > infos = session.getSourceInfoFactory ( ) . getFileSourceInfos ( ) ; for ( com.android.jack.ir.sourceinfo.FileSourceInfo info : infos ) { info.setFileName ( newSourceFileName.getPath ( ) ) ; } }

Target:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JSession session ) throws java.lang.Exception { for ( com.android.jack.ir.sourceinfo.FileSourceInfo info : session.getSourceInfoFactory ( ) . getFileSourceInfos ( ) ) { info.setFileName ( newSourceFileName.getPath ( ) ) ; } }
Source:
private int packageFlagsToInstallFlags ( com.android.server.pm.PackageSetting ps ) { int installFlags = 0 ; if ( com.android.server.pm.PackageManagerService.isExternal ( ps ) ) { installFlags |= android.content.pm.PackageManager.INSTALL_EXTERNAL ; } if ( com.android.server.pm.PackageManagerService.isForwardLocked ( ps ) ) { installFlags |= android.content.pm.PackageManager.INSTALL_FORWARD_LOCK ; } return installFlags ; }

Target:
private int packageFlagsToInstallFlags ( com.android.server.pm.PackageSetting ps ) { int installFlags = 0 ; if ( com.android.server.pm.PackageManagerService.isExternal ( ps ) ) { installFlags |= android.content.pm.PackageManager.INSTALL_EXTERNAL ; } if ( ps.isForwardLocked ( ) ) { installFlags |= android.content.pm.PackageManager.INSTALL_FORWARD_LOCK ; } return installFlags ; }
Source:
public void shutdown ( ) { mRunning = false ; if ( ( mServerSocket ) != null ) { try { mServerSocket.close ( ) ; } catch ( java.io.IOException e ) { } mServerSocket = null ; } }

Target:
public void shutdown ( ) { synchronized ( this ) { mRunning = false ; if ( ( mServerSocket ) != null ) { try { mServerSocket.close ( ) ; } catch ( java.io.IOException e ) { } mServerSocket = null ; } } }
Source:
static com.android.cts.verifier.TestListAdapter.TestListItem createTestItem ( android.app.Activity activity , java.lang.String id , int titleRes , android.content.Intent intent ) { return com.android.cts.verifier.TestListAdapter.TestListItem.newTest ( activity , titleRes , id , intent.putExtra ( com.android.cts.verifier.managedprovisioning.DeviceOwnerPositiveTestActivity.EXTRA_TEST_ID , id ) , null ) ; }

Target:
static com.android.cts.verifier.TestListAdapter.TestListItem createTestItem ( android.app.Activity activity , java.lang.String id , int titleRes , android.content.Intent intent ) { return com.android.cts.verifier.TestListAdapter.TestListItem.newTest ( activity , titleRes , id , intent.putExtra ( com.android.cts.verifier.managedprovisioning.DeviceOwnerPositiveTestActivity.EXTRA_TEST_ID , id ) ) ; }
Source:
public void callSessionUssdMessageReceived ( int mode , java.lang.String ussdMessage ) throws android.os.RemoteException { mListener.callSessionUssdMessageReceived ( mode , ussdMessage ) ; }

Target:
public void callSessionUssdMessageReceived ( int mode , java.lang.String ussdMessage ) { try { mListener.callSessionUssdMessageReceived ( mode , ussdMessage ) ; } catch ( android.os.RemoteException e ) { throw new java.lang.RuntimeException ( e ) ; } }
Source:
public void clientCertificateRequested ( int s ) { super . clientCertificateRequested ( s ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_use_PrivateKey ( s , org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.getClientPrivateKey ( ) ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_use_certificate ( s , org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.getClientCertificates ( ) ) ; }

Target:
public void clientCertificateRequested ( long s ) { super . clientCertificateRequested ( s ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_use_PrivateKey ( s , org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.getClientPrivateKey ( ) ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_use_certificate ( s , org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.getClientCertificates ( ) ) ; }
Source:
public void onDisconnect ( ) { android.util.Log.d ( com.android.bluetooth.hfpclient.connserv.HfpClientConference.TAG , "onDisconnect" ) ; mHeadsetProfile.terminateCall ( mDevice , 0 ) ; setDisconnected ( new android.telecom.DisconnectCause ( android.telecom.DisconnectCause.LOCAL ) ) ; }

Target:
public void onDisconnect ( ) { android.util.Log.d ( com.android.bluetooth.hfpclient.connserv.HfpClientConference.TAG , "onDisconnect" ) ; mHeadsetProfile.terminateCall ( mDevice , null ) ; setDisconnected ( new android.telecom.DisconnectCause ( android.telecom.DisconnectCause.LOCAL ) ) ; }
Source:
public com.android.layoutlib.api.SceneResult insertChild ( java.lang.Object parentView , com.android.layoutlib.api.IXmlPullParser childXml , java.lang.Object beforeSibling , com.android.layoutlib.api.LayoutScene.IAnimationListener listener ) { return SceneStatus.NOT_IMPLEMENTED.getResult ( ) ; }

Target:
public com.android.layoutlib.api.SceneResult insertChild ( java.lang.Object parentView , com.android.layoutlib.api.IXmlPullParser childXml , int index , com.android.layoutlib.api.LayoutScene.IAnimationListener listener ) { return SceneStatus.NOT_IMPLEMENTED.getResult ( ) ; }
Source:
public java.lang.String getCookie ( java.lang.String url ) { throw new android.webkit.MustOverrideException ( ) ; }

Target:
public abstract java.lang.String getCookie ( java.lang.String url ) ;
Source:
public void onStreamingServicesUpdated ( java.util.List < android.telephony.mbms.StreamingServiceInfo > services ) { try { listener.streamingServicesUpdated ( services ) ; } catch ( android.os.RemoteException e ) { onAppCallbackDied ( uid , subscriptionId ) ; } }

Target:
public void onStreamingServicesUpdated ( java.util.List < android.telephony.mbms.StreamingServiceInfo > services ) { try { callback.streamingServicesUpdated ( services ) ; } catch ( android.os.RemoteException e ) { onAppCallbackDied ( uid , subscriptionId ) ; } }
Source:
private static native java.lang.String nativeLoad ( java.lang.String filename , java.lang.ClassLoader loader , java.lang.String ldLibraryPath , java.lang.String dexPath ) ;

Target:
private static native java.lang.String nativeLoad ( java.lang.String filename , java.lang.ClassLoader loader , java.lang.String ldLibraryPath ) ;
Source:
public void addNdkDebuggableLibraryFolders ( @ com.android.annotations.NonNull com.android.build.gradle.internal.core.Abi abi , @ com.android.annotations.NonNull java.io.File searchPath ) { this . ndkDebuggableLibraryFolders.put ( abi , searchPath ) ; }

Target:
void addNdkDebuggableLibraryFolders ( @ com.android.annotations.NonNull com.android.build.gradle.internal.core.Abi abi , @ com.android.annotations.NonNull java.io.File searchPath ) ;
Source:
public static void main ( java.lang.String [ ] args ) { java.lang.System.loadLibrary ( args [ 1 ] ) ; Main.TestWatcher w = new Main.TestWatcher ( ) ; Main.doTest ( new Transform ( w ) , w ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { Main.TestWatcher w = new Main.TestWatcher ( ) ; Main.doTest ( new Transform ( w ) , w ) ; }
Source:
public void getTotalNumOfItemsRsp ( byte [ ] address , int rspStatus , int uidCounter , int numItems ) ;

Target:
void getTotalNumOfItemsRsp ( byte [ ] address , int rspStatus , int uidCounter , int numItems ) ;
Source:
public void testDegreesF32 ( ) { script_f32 = new android.renderscript.cts.ScriptC_deg_f32 ( mRS , mRes , R.raw.deg_f32 ) ; doF32 ( 305419896 , 3 ) ; }

Target:
public void testDegreesF32 ( ) { doF32 ( 305419896 , 3 ) ; }
Source:
public void unregisterListener ( com.android.sdklib.devices.DeviceManager.DevicesChangeListener listener ) { com.android.sdklib.devices.DeviceManager.listeners.remove ( listener ) ; }

Target:
public boolean unregisterListener ( com.android.sdklib.devices.DeviceManager.DevicesChangeListener listener ) { return com.android.sdklib.devices.DeviceManager.listeners.remove ( listener ) ; }
Source:
private void processAudioConfigEvent ( android.bluetooth.BluetoothAudioConfig audioConfig , android.bluetooth.BluetoothDevice device ) { log ( ( "processAudioConfigEvent: " + device ) ) ; mAudioConfigs.put ( device , audioConfig ) ; broadcastAudioConfig ( device , audioConfig ) ; }

Target:
private void processAudioConfigEvent ( android.bluetooth.BluetoothDevice device , android.bluetooth.BluetoothAudioConfig audioConfig ) { log ( ( "processAudioConfigEvent: " + device ) ) ; mAudioConfigs.put ( device , audioConfig ) ; broadcastAudioConfig ( device , audioConfig ) ; }
Source:
public void testAddAll1 ( ) { try { java.util.NavigableSet q = jsr166.ConcurrentSkipListSubSetTest.set0 ( ) ; q.addAll ( null ) ; shouldThrow ( ) ; } catch ( java.lang.NullPointerException success ) { } }

Target:
public void testAddAll1 ( ) { java.util.NavigableSet q = jsr166.ConcurrentSkipListSubSetTest.set0 ( ) ; try { q.addAll ( null ) ; shouldThrow ( ) ; } catch ( java.lang.NullPointerException success ) { } }
Source:
public static synchronized com.android.internal.telephony.uicc.UiccController getInstance ( com.android.internal.telephony.PhoneBase phone ) { if ( ( com.android.internal.telephony.uicc.UiccController.mInstance ) == null ) { com.android.internal.telephony.uicc.UiccController.mInstance = new com.android.internal.telephony.uicc.UiccController ( phone ) ; } else { com.android.internal.telephony.uicc.UiccController.mInstance.setNewPhone ( phone ) ; } return com.android.internal.telephony.uicc.UiccController.mInstance ; }

Target:
public static synchronized com.android.internal.telephony.uicc.UiccController getInstance ( com.android.internal.telephony.PhoneBase phone ) { if ( ( com.android.internal.telephony.uicc.UiccController.mInstance ) == null ) { com.android.internal.telephony.uicc.UiccController.mInstance = new com.android.internal.telephony.uicc.UiccController ( phone ) ; } else if ( phone != null ) { com.android.internal.telephony.uicc.UiccController.mInstance.setNewPhone ( phone ) ; } return com.android.internal.telephony.uicc.UiccController.mInstance ; }
Source:
public void onDestroy ( ) { super . onDestroy ( ) ; mScanner.stopScan ( mCallback ) ; }

Target:
public void onDestroy ( ) { super . onDestroy ( ) ; if ( ( mScanner ) != null ) { mScanner.stopScan ( mCallback ) ; } }
Source:
public static com.ibm.icu.impl.number.Properties parseToProperties ( java.lang.String pattern , boolean ignoreRounding ) { com.ibm.icu.impl.number.Properties properties = new com.ibm.icu.impl.number.Properties ( ) ; com.ibm.icu.impl.number.PatternString.LdmlDecimalPatternParser.parse ( pattern , properties , ignoreRounding ) ; return properties ; }

Target:
public static com.ibm.icu.impl.number.Properties parseToProperties ( java.lang.String pattern , int ignoreRounding ) { com.ibm.icu.impl.number.Properties properties = new com.ibm.icu.impl.number.Properties ( ) ; com.ibm.icu.impl.number.PatternString.LdmlDecimalPatternParser.parse ( pattern , properties , ignoreRounding ) ; return properties ; }
Source:
public void acceptVideoRequestAsAudio ( ) { com.android.dialer.common.LogUtil.enterBlock ( "ImsVideoTech.acceptVideoRequestAsAudio" ) ; call.getVideoCall ( ) . sendSessionModifyResponse ( new android.telecom.VideoProfile ( android.telecom.VideoProfile.STATE_AUDIO_ONLY ) ) ; setSessionModificationState ( SessionModificationState.NO_REQUEST ) ; logger.logImpression ( DialerImpression.Type.IMS_VIDEO_REQUEST_ACCEPTED_AS_AUDIO ) ; }

Target:
public void acceptVideoRequestAsAudio ( ) { com.android.dialer.common.LogUtil.enterBlock ( "ImsVideoTech.acceptVideoRequestAsAudio" ) ; call.getVideoCall ( ) . sendSessionModifyResponse ( new android.telecom.VideoProfile ( android.telecom.VideoProfile.STATE_AUDIO_ONLY ) ) ; logger.logImpression ( DialerImpression.Type.IMS_VIDEO_REQUEST_ACCEPTED_AS_AUDIO ) ; }
Source:
private static com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode createNode ( java.lang.String fqn , boolean hasChildren ) { return com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfoTest.createNode ( null , fqn , hasChildren ) ; }

Target:
public static com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode createNode ( java.lang.String fqn , boolean hasChildren ) { return com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfoTest.createNode ( null , fqn , hasChildren ) ; }
Source:
public boolean isMemoryLow ( ) { return ( mLowMemFlag ) || ( ! ( mIsBootImageOnDisk ) ) ; }

Target:
public boolean isMemoryLow ( ) { return mLowMemFlag ; }
Source:
static void multiplyP ( int [ ] x , int [ ] y ) { if ( ( org.bouncycastle.crypto.modes.gcm.GCMUtil.shiftRight ( x , y ) ) != 0 ) { y [ 0 ] ^= org.bouncycastle.crypto.modes.gcm.GCMUtil.E1 ; } }

Target:
public static void multiplyP ( int [ ] x ) { int m = ( org.bouncycastle.crypto.modes.gcm.GCMUtil.shiftRight ( x ) ) > > 8 ; x [ 0 ] ^= m & ( org.bouncycastle.crypto.modes.gcm.GCMUtil.E1 ) ; }
Source:
public int hashCode ( ) { final int prime = 31 ; int result = 1 ; result = ( prime * result ) + ( ( mDir ) == null ? 0 : mDir.hashCode ( ) ) ; return result ; }

Target:
public int hashCode ( ) { return mDir.hashCode ( ) ; }
Source:
public static native double log10 ( double a ) ;

Target:
public static native double log ( double a ) ;
Source:
public static void parseToExistingProperties ( java.lang.String pattern , com.ibm.icu.impl.number.Properties properties , boolean ignoreRounding ) { com.ibm.icu.impl.number.PatternString.LdmlDecimalPatternParser.parse ( pattern , properties , ignoreRounding ) ; }

Target:
public static void parseToExistingProperties ( java.lang.String pattern , com.ibm.icu.impl.number.Properties properties , int ignoreRounding ) { com.ibm.icu.impl.number.PatternString.LdmlDecimalPatternParser.parse ( pattern , properties , ignoreRounding ) ; }
Source:
public static long $noinline$NegNeg3 ( long arg ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return 0 - ( - arg ) ; }

Target:
public static long $noinline$NegNeg3 ( long arg ) { return 0 - ( - arg ) ; }
Source:
public final native void writeStringVector ( java.lang.String [ ] val ) ;

Target:
private final native void writeStringVector ( java.lang.String [ ] val ) ;
Source:
public static java.lang.String lookupNamespacePrefix ( @ com.android.annotations.NonNull org.w3c.dom.Node node , @ com.android.annotations.NonNull java.lang.String nsUri ) { java.lang.String defaultPrefix = ( com.android.SdkConstants.ANDROID_URI.equals ( nsUri ) ) ? com.android.SdkConstants.ANDROID_NS_NAME : com.android.SdkConstants.APP_PREFIX ; return com.android.utils.XmlUtils.lookupNamespacePrefix ( node , nsUri , defaultPrefix ) ; }

Target:
public static java.lang.String lookupNamespacePrefix ( @ com.android.annotations.NonNull org.w3c.dom.Node node , @ com.android.annotations.NonNull java.lang.String nsUri ) { java.lang.String defaultPrefix = ( com.android.SdkConstants.ANDROID_URI.equals ( nsUri ) ) ? com.android.SdkConstants.ANDROID_NS_NAME : com.android.SdkConstants.APP_PREFIX ; return com.android.utils.XmlUtils.lookupNamespacePrefix ( node , nsUri , defaultPrefix , true ) ; }
Source:
public static java.lang.String [ ] getKeyToCharsMap ( @ android.support.annotation.NonNull android.content.Context context ) { return com.android.dialer.dialpadview.DialpadCharMappings.isDualAlphabetsEnabled ( context ) ? com.android.dialer.dialpadview.DialpadCharMappings.KEY_TO_CHAR_MAPS.get ( com.android.dialer.compat.CompatUtils.getLocale ( context ) . getISO3Language ( ) ) : null ; }

Target:
static java.lang.String [ ] getKeyToCharsMap ( @ android.support.annotation.NonNull android.content.Context context ) { return com.android.dialer.dialpadview.DialpadCharMappings.KEY_TO_CHAR_MAPS.get ( com.android.dialer.compat.CompatUtils.getLocale ( context ) . getISO3Language ( ) ) ; }
Source:
public void separate ( android.telecom.RemoteConnection connection ) { if ( mChildConnections.contains ( connection ) ) { try { mConnectionService.splitFromConference ( connection.getId ( ) ) ; } catch ( android.os.RemoteException e ) { } } }

Target:
public void separate ( android.telecom.RemoteConnection connection ) { if ( mChildConnections.contains ( connection ) ) { try { mConnectionService.splitFromConference ( connection.getId ( ) , null ) ; } catch ( android.os.RemoteException e ) { } } }
Source:
public void testGetNetworkOperatorNoPhoneAccount ( ) throws java.lang.Exception { org.mockito.Mockito.when ( mMockCallsManager.getForegroundCall ( ) ) . thenReturn ( null ) ; java.lang.String networkOperator = mBluetoothPhoneService.mBinder.getNetworkOperator ( ) ; assertEquals ( networkOperator , "label1" ) ; }

Target:
public void testGetNetworkOperatorNoPhoneAccount ( ) throws java.lang.Exception { org.mockito.Mockito.when ( mMockCallsManager.getForegroundCall ( ) ) . thenReturn ( null ) ; java.lang.String networkOperator = mBluetoothPhoneService.mBinder.getNetworkOperator ( ) ; org.junit.Assert.assertEquals ( networkOperator , "label1" ) ; }
Source:
private boolean isMarked ( @ javax.annotation.Nonnull com.android.sched.marker.MarkerManager node ) { return node.containsMarker ( com.android.jack.shrob.obfuscation.KeepNameMarker.class ) ; }

Target:
private boolean isMarked ( @ javax.annotation.Nonnull com.android.sched.marker.MarkerManager node ) { synchronized ( node ) { return node.containsMarker ( com.android.jack.shrob.obfuscation.KeepNameMarker.class ) ; } }
Source:
public static com.android.jack.dx.rop.code.RegisterSpec make ( int reg , com.android.jack.dx.rop.type.TypeBearer type , com.android.jack.dx.rop.code.LocalItem local ) { if ( local == null ) { throw new java.lang.NullPointerException ( "local == null" ) ; } return com.android.jack.dx.rop.code.RegisterSpec.intern ( reg , type , local ) ; }

Target:
public static com.android.jack.dx.rop.code.RegisterSpec make ( int reg , com.android.jack.dx.rop.type.TypeBearer type , com.android.jack.dx.rop.code.LocalItem local ) { assert local != null ; return com.android.jack.dx.rop.code.RegisterSpec.intern ( reg , type , local ) ; }
Source:
public void timeRoundF ( int reps ) { for ( int rep = 0 ; rep < reps ; ++ rep ) { java.lang.Math.round ( f ) ; } }

Target:
public int timeRoundF ( int reps ) { int result = i ; for ( int rep = 0 ; rep < reps ; ++ rep ) { result = java.lang.Math.round ( f ) ; } return result ; }
Source:
native int rsnScriptIntrinsicCreate ( int con , int id , int eid ) ;

Target:
native long rsnScriptIntrinsicCreate ( long con , int id , long eid ) ;
Source:
public static android.renderscript.ScriptIntrinsicBlend create ( android.renderscript.RenderScript rs , android.renderscript.Element e ) { int id = rs.nScriptIntrinsicCreate ( 7 , e.getID ( rs ) ) ; return new android.renderscript.ScriptIntrinsicBlend ( id , rs ) ; }

Target:
public static android.renderscript.ScriptIntrinsicBlend create ( android.renderscript.RenderScript rs , android.renderscript.Element e ) { long id = rs.nScriptIntrinsicCreate ( 7 , e.getID ( rs ) ) ; return new android.renderscript.ScriptIntrinsicBlend ( id , rs ) ; }
Source:
public void onLoaderReset ( android.content.Loader < android.database.Cursor > loader ) { if ( com.android.dialer.app.list.OldSpeedDialFragment.DEBUG ) { com.android.dialer.common.LogUtil.d ( "ContactTileLoaderListener.onLoaderReset" , null ) ; } }

Target:
public void onLoaderReset ( android.content.Loader < android.database.Cursor > loader ) { }
Source:
public boolean isConnected ( int callServiceType , int callType ) throws android.os.RemoteException { synchronized ( mLock ) { checkServiceIsReady ( ) ; return getServiceInterface ( mBinder ) . isConnected ( mSlotId , mSupportedFeature , callServiceType , callType ) ; } }

Target:
public boolean isConnected ( int callServiceType , int callType ) throws android.os.RemoteException { synchronized ( mLock ) { checkServiceIsReady ( ) ; return getServiceInterface ( mBinder ) . isConnected ( callServiceType , callType ) ; } }
Source:
public boolean startTrace ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface type ) { if ( type.isExternal ( ) ) { return false ; } return markIfNecessary ( type ) ; }

Target:
public boolean startTrace ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface type ) { return markIfNecessary ( type ) ; }
Source:
public void testDeserializeWasExternalizableClass ( ) throws java.lang.Exception { final java.lang.String s = "aced0005737200336c6962636f72652e6a6176612e696f2e53657269616c697a6174696f6" + "e546573742457617345787465726e616c697a61626c6500000000000000000c0000787078" ; libcore.java.io.SerializationTest.wasExternalizableInitializedFlag = false ; try { libcore.util.SerializationTester.deserializeHex ( s ) ; fail ( ) ; } catch ( java.io.InvalidClassException expected ) { } assertTrue ( libcore.java.io.SerializationTest.wasExternalizableInitializedFlag ) ; }

Target:
public void testDeserializeWasExternalizableClass ( ) throws java.lang.Exception { final java.lang.String s = "aced0005737200336c6962636f72652e6a6176612e696f2e53657269616c697a6174696f6" + "e546573742457617345787465726e616c697a61626c6500000000000000000c0000787078" ; assertFalse ( libcore.java.io.SerializationTest.wasExternalizableInitializedFlag ) ; try { libcore.util.SerializationTester.deserializeHex ( s ) ; fail ( ) ; } catch ( java.io.InvalidClassException expected ) { } assertTrue ( libcore.java.io.SerializationTest.wasExternalizableInitializedFlag ) ; }
Source:
public void run ( long sslSession ) throws java.lang.Exception { try { org.conscrypt.NativeCrypto.SSL_shutdown ( sslSession , org.conscrypt.NativeCryptoTest.INVALID_FD , org.conscrypt.NativeCryptoTest.DUMMY_CB ) ; fail ( ) ; } catch ( java.net.SocketException expected ) { } }

Target:
public void run ( long sslSession ) throws java.lang.Exception { try { org.conscrypt.NativeCrypto.SSL_shutdown ( sslSession , null , org.conscrypt.NativeCryptoTest.DUMMY_CB ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } }
Source:
public static void assertEquals ( char actual , char expected ) { if ( actual != expected ) { throw new java.lang.AssertionError ( ( ( ( ( "Actual != Expected (" + actual ) + " != " ) + expected ) + ")" ) ) ; } }

Target:
public static void assertEquals ( char expected , char actual ) { if ( actual != expected ) { throw new java.lang.AssertionError ( ( ( ( ( "Actual != Expected (" + actual ) + " != " ) + expected ) + ")" ) ) ; } }
Source:
public static < T > void runBasicSplitTests ( java.lang.Iterable < T > spliterable , java.util.ArrayList < T > expectedElements , java.util.Comparator < T > comparator ) { libcore.java.util.SpliteratorTester.runBasicSplitTests ( spliterable.spliterator ( ) , expectedElements , comparator ) ; }

Target:
public static < T > void runBasicSplitTests ( java.lang.Iterable < T > spliterable , java.util.List < T > expectedElements , java.util.Comparator < T > comparator ) { libcore.java.util.SpliteratorTester.runBasicSplitTests ( spliterable.spliterator ( ) , expectedElements , comparator ) ; }
Source:
public static long $noinline$longSmallerShiftMasking ( long value , int shift ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return value << ( shift & 3 ) ; }

Target:
public static long $noinline$longSmallerShiftMasking ( long value , int shift ) { return value << ( shift & 3 ) ; }
Source:
public void testGetCommonInstances_Success ( ) throws java.lang.Exception { java.security.SecureRandom sr = java.security.SecureRandom.getInstance ( "SHA1PRNG" ) ; assertNotNull ( sr ) ; assertEquals ( libcore.java.security.SecureRandomTest.EXPECTED_PROVIDER , sr.getProvider ( ) . getClass ( ) ) ; }

Target:
public void testGetCommonInstances_Success ( ) throws java.lang.Exception { java.security.SecureRandom sr = java.security.SecureRandom.getInstance ( "SHA1PRNG" ) ; assertNotNull ( sr ) ; assertEquals ( libcore.java.security.SecureRandomTest.EXPECTED_PROVIDER , sr.getProvider ( ) . getClass ( ) . getName ( ) ) ; }
Source:
public void entityRef ( java.lang.String name ) throws java.io.IOException { check ( false ) ; writer.write ( '&' ) ; writer.write ( name ) ; writer.write ( ';' ) ; }

Target:
public void entityRef ( java.lang.String name ) throws java.io.IOException { check ( false ) ; append ( '&' ) ; append ( name ) ; append ( ';' ) ; }
Source:
public boolean getDataRoamingEnabled ( ) { return mDcTracker.getDataOnRoamingEnabled ( ) ; }

Target:
public boolean getDataRoamingEnabled ( ) { return mDcTracker.getDataRoamingEnabled ( ) ; }
Source:
public static java.util.Locale forLanguageTag ( java.lang.String languageTag ) { if ( languageTag == null ) { throw new java.lang.NullPointerException ( "languageTag == null" ) ; } return libcore.icu.ICU.forLanguageTag ( languageTag , false ) ; }

Target:
public static java.util.Locale forLanguageTag ( java.lang.String languageTag ) { if ( languageTag == null ) { throw new java.lang.NullPointerException ( "languageTag == null" ) ; } return java.util.Locale.forLanguageTag ( languageTag , false ) ; }
Source:
public boolean getRecordsLoaded ( ) { if ( ( ( mRecordsToLoad ) == 0 ) && ( ( mRecordsRequested ) == true ) ) { return true ; } else { return false ; } }

Target:
public boolean getRecordsLoaded ( ) { return ( ( mRecordsToLoad ) == 0 ) && ( mRecordsRequested ) ; }
Source:
void putExtras ( final android.os.Bundle extras ) { if ( ( mExtras ) == null ) { mExtras = new android.os.Bundle ( ) ; } mExtras.putAll ( extras ) ; notifyExtrasChanged ( ) ; }

Target:
void putExtras ( final android.os.Bundle extras ) { if ( extras == null ) { return ; } if ( ( mExtras ) == null ) { mExtras = new android.os.Bundle ( ) ; } mExtras.putAll ( extras ) ; notifyExtrasChanged ( ) ; }
Source:
public void test_Any_Lower ( ) throws java.lang.Exception { assertEquals ( "hello world!" , libcore.icu.Transliterator.transliterate ( "Any-Lower" , "HeLlO WoRlD!" ) ) ; }

Target:
public void test_Any_Lower ( ) throws java.lang.Exception { libcore.icu.Transliterator t = new libcore.icu.Transliterator ( "Any-Lower" ) ; assertEquals ( "hello world!" , t.transliterate ( "HeLlO WoRlD!" ) ) ; }
Source:
public void onStart ( ) { android.util.Slog.i ( com.android.server.pm.Installer.TAG , "Waiting for installd to be ready." ) ; mInstaller.waitForConnection ( ) ; }

Target:
public void onStart ( ) { if ( ( mInstaller ) != null ) { android.util.Slog.i ( com.android.server.pm.Installer.TAG , "Waiting for installd to be ready." ) ; mInstaller.waitForConnection ( ) ; } }
Source:
public void setValue ( java.lang.Object value ) { mValue = value ; if ( value instanceof com.android.tools.perflib.heap.Instance ) { ( ( com.android.tools.perflib.heap.Instance ) ( value ) ) . addReference ( instance ) ; } }

Target:
public void setValue ( java.lang.Object value ) { mValue = value ; if ( value instanceof com.android.tools.perflib.heap.Instance ) { ( ( com.android.tools.perflib.heap.Instance ) ( value ) ) . addReference ( null , instance ) ; } }
Source:
synchronized void nAllocationData1D ( int id , int off , int mip , int count , int [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData1D ( mContext , id , off , mip , count , d , sizeBytes ) ; }

Target:
synchronized void nAllocationData1D ( long id , int off , int mip , int count , int [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData1D ( mContext , id , off , mip , count , d , sizeBytes ) ; }
Source:
protected void log ( java.lang.String s ) { if ( com.android.internal.telephony.cdma.CDMAPhone.DBG ) android.telephony.Rlog.d ( com.android.internal.telephony.cdma.CDMAPhone.LOG_TAG , ( "[CDMAPhone] " + s ) ) ; }

Target:
protected void loge ( java.lang.String s , java.lang.Exception e ) { if ( com.android.internal.telephony.cdma.CDMAPhone.DBG ) android.telephony.Rlog.e ( com.android.internal.telephony.cdma.CDMAPhone.LOG_TAG , s , e ) ; }
Source:
public void notifyIconDone ( long bssid , com.android.server.wifi.hotspot2.IconEvent iconEvent ) { mHandler.notifyIconDone ( bssid , iconEvent ) ; }

Target:
public void notifyIconDone ( com.android.server.wifi.hotspot2.IconEvent iconEvent ) { mHandler.notifyIconDone ( iconEvent ) ; }