auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void treeChanged ( ) { synchronized ( this ) { tree = model.getTree ( ) ; setBounds ( ) ; setTransform ( ) ; } doRedraw ( ) ; }

Target:
public void run ( ) { synchronized ( this ) { tree = model.getTree ( ) ; setBounds ( ) ; setTransform ( ) ; } }
Source:
public static void computeNativeCospi ( android.renderscript.cts.TestNativeCospi.ArgumentsFloatFloat args , android.renderscript.cts.Target t ) { t.setPrecision ( android.renderscript.cts.CoreMathVerifier.NATIVE_PRECISION , android.renderscript.cts.CoreMathVerifier.NATIVE_PRECISION , true ) ; args.out = android.renderscript.cts.CoreMathVerifier.cospi ( args.inX , t ) ; }

Target:
public static void computeNativeCospi ( android.renderscript.cts.TestNativeCospi.ArgumentsFloatFloat args , android.renderscript.cts.Target t ) { t.setPrecision ( android.renderscript.cts.CoreMathVerifier.NATIVE_PRECISION , android.renderscript.cts.CoreMathVerifier.NATIVE_PRECISION , true ) ; args.out = android.renderscript.cts.CoreMathVerifier.cospi ( args.inV , t ) ; }
Source:
public void run ( ) { mTextView = findTextView ( R.id.textview_text ) ; mTextView.setText ( "" ) ; }

Target:
public void run ( ) { mTextView = findTextView ( R.id.textview_text ) ; }
Source:
public void testNfcFeatures ( ) { if ( ( android.nfc.NfcAdapter.getDefaultAdapter ( mContext ) ) != null ) { assertAvailable ( PackageManager.FEATURE_NFC ) ; } else { assertNotAvailable ( PackageManager.FEATURE_NFC ) ; } }

Target:
public void testNfcFeatures ( ) { if ( ( android.nfc.NfcAdapter.getDefaultAdapter ( ) ) != null ) { assertAvailable ( PackageManager.FEATURE_NFC ) ; } else { assertNotAvailable ( PackageManager.FEATURE_NFC ) ; } }
Source:
public int callDrawGLFunction ( int drawGLFunction ) { return android.view.GLES20Canvas.nCallDrawGLFunction ( mRenderer , drawGLFunction ) ; }

Target:
public int callDrawGLFunction ( long drawGLFunction ) { return android.view.GLES20Canvas.nCallDrawGLFunction ( mRenderer , drawGLFunction ) ; }
Source:
public void registerContentObservers ( ) { if ( ( android.os.Build.VERSION.SDK_INT ) < ( android.os.Build.VERSION_CODES.N ) ) { return ; } appContext.getContentResolver ( ) . registerContentObserver ( BlockedNumbers.CONTENT_URI , true , markDirtyObserver ) ; }

Target:
public void registerContentObservers ( ) { appContext.getContentResolver ( ) . registerContentObserver ( BlockedNumbers.CONTENT_URI , true , markDirtyObserver ) ; }
Source:
protected byte [ ] engineGenerateSeed ( int numBytes ) { selfSeedIfNotSeeded ( ) ; byte [ ] output = new byte [ numBytes ] ; org.conscrypt.NativeCrypto.RAND_bytes ( output ) ; return output ; }

Target:
protected byte [ ] engineGenerateSeed ( int numBytes ) { byte [ ] output = new byte [ numBytes ] ; org.conscrypt.NativeCrypto.RAND_bytes ( output ) ; return output ; }
Source:
public static com.android.dialer.searchfragment.remote.RemoteDirectoriesCursorLoader.Directory readDirectory ( android.database.Cursor cursor ) { return com.android.dialer.searchfragment.remote.RemoteDirectoriesCursorLoader.Directory.create ( cursor.getInt ( com.android.dialer.searchfragment.remote.RemoteDirectoriesCursorLoader.ID ) , cursor.getString ( com.android.dialer.searchfragment.remote.RemoteDirectoriesCursorLoader.DISPLAY_NAME ) , ( ( cursor.getInt ( com.android.dialer.searchfragment.remote.RemoteDirectoriesCursorLoader.PHOTO_SUPPORT ) ) != 0 ) , cursor.getString ( com.android.dialer.searchfragment.remote.RemoteDirectoriesCursorLoader.AUTHORITY ) ) ; }

Target:
public static com.android.dialer.searchfragment.remote.RemoteDirectoriesCursorLoader.Directory readDirectory ( android.database.Cursor cursor ) { return com.android.dialer.searchfragment.remote.RemoteDirectoriesCursorLoader.Directory.create ( cursor.getInt ( com.android.dialer.searchfragment.remote.RemoteDirectoriesCursorLoader.ID ) , cursor.getString ( com.android.dialer.searchfragment.remote.RemoteDirectoriesCursorLoader.DISPLAY_NAME ) , ( ( cursor.getInt ( com.android.dialer.searchfragment.remote.RemoteDirectoriesCursorLoader.PHOTO_SUPPORT ) ) != 0 ) ) ; }
Source:
private static void $opt$InplaceNegOneInt ( int a ) { a = - a ; Main.expectEquals ( ( - 1 ) , a ) ; }

Target:
private static void $opt$InplaceNegOneInt ( int a ) { a = - a ; Main.assertEquals ( ( - 1 ) , a ) ; }
Source:
public void error ( java.lang.String tag , java.lang.String message , java.lang.Throwable throwable ) { }

Target:
public void error ( java.lang.String tag , java.lang.String message , java.lang.Throwable throwable , java.lang.Object data ) { }
Source:
private native boolean phoneStateChangeNative ( int numActive , int numHeld , int callState , java.lang.String number , int type ) ;

Target:
private native boolean phoneStateChangeNative ( int numActive , int numHeld , int callState , java.lang.String number , int type , byte [ ] address ) ;
Source:
public void test_X509_NAME_hashes ( ) { javax.security.auth.x500.X500Principal name = new javax.security.auth.x500.X500Principal ( "CN=localhost" ) ; assertEquals ( ( - 1372642656 ) , org.conscrypt.NativeCrypto.X509_NAME_hash ( name ) ) ; assertEquals ( ( - 1626170662 ) , org.conscrypt.NativeCrypto.X509_NAME_hash_old ( name ) ) ; }

Target:
public void test_X509_NAME_hashes ( ) { javax.security.auth.x500.X500Principal name = new javax.security.auth.x500.X500Principal ( "CN=localhost" ) ; org.junit.Assert.assertEquals ( ( - 1372642656 ) , org.conscrypt.NativeCrypto.X509_NAME_hash ( name ) ) ; org.junit.Assert.assertEquals ( ( - 1626170662 ) , org.conscrypt.NativeCrypto.X509_NAME_hash_old ( name ) ) ; }
Source:
public static void assertChainLength ( java.lang.Object [ ] chain ) { assertEquals ( 3 , chain.length ) ; }

Target:
public static void assertChainLength ( java.lang.Object [ ] chain ) { org.junit.Assert.assertEquals ( 3 , chain.length ) ; }
Source:
void detachFunctor ( int functor ) { if ( ( mCanvas ) != null ) { mCanvas.detachFunctor ( functor ) ; } }

Target:
void detachFunctor ( long functor ) { if ( ( mCanvas ) != null ) { mCanvas.detachFunctor ( functor ) ; } }
Source:
public void callSessionRttModifyResponseReceived ( int status ) throws android.os.RemoteException { mListener.callSessionRttModifyResponseReceived ( status ) ; }

Target:
public void callSessionRttModifyResponseReceived ( int status ) { try { mListener.callSessionRttModifyResponseReceived ( status ) ; } catch ( android.os.RemoteException e ) { throw new java.lang.RuntimeException ( e ) ; } }
Source:
public void onMetadataChanged ( android.media.MediaMetadata metadata ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , "onMetadataChanged" ) ; updateCurrentMediaState ( false ) ; }

Target:
public void onMetadataChanged ( android.media.MediaMetadata metadata ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , "onMetadataChanged" ) ; updateCurrentMediaState ( ) ; }
Source:
public java.lang.String toString ( ) { return ( ( "mDcListAll=" + ( mDcListAll ) ) + " mDcListActiveByCid=" ) + ( mDcListActiveByCid ) ; }

Target:
public java.lang.String toString ( ) { synchronized ( mDcListAll ) { return ( ( "mDcListAll=" + ( mDcListAll ) ) + " mDcListActiveByCid=" ) + ( mDcListActiveByCid ) ; } }
Source:
public long queryCapabilityStatus ( ) throws android.os.RemoteException { return this . queryCapabilityStatus ( ) . mCapabilities ; }

Target:
public int queryCapabilityStatus ( ) throws android.os.RemoteException { return this . queryCapabilityStatus ( ) . mCapabilities ; }
Source:
protected java.lang.String getProperty ( java.lang.String key ) { try { return manager.getVariable ( key ) ; } catch ( java.io.IOException e ) { com.android.monkeyrunner.adb.AdbMonkeyDevice.LOG.log ( java.util.logging.Level.SEVERE , ( "Unable to get variable: " + key ) , e ) ; return null ; } }

Target:
public java.lang.String getProperty ( java.lang.String key ) { try { return manager.getVariable ( key ) ; } catch ( java.io.IOException e ) { com.android.monkeyrunner.adb.AdbMonkeyDevice.LOG.log ( java.util.logging.Level.SEVERE , ( "Unable to get variable: " + key ) , e ) ; return null ; } }
Source:
public static native long SSL_do_handshake ( long sslNativePointer , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks shc , int timeoutMillis , 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 ( long sslNativePointer , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks shc , int timeoutMillis , boolean client_mode , byte [ ] alpnProtocols ) throws java.net.SocketTimeoutException , java.security.cert.CertificateException , javax.net.ssl.SSLException ;
Source:
public void testRemove1_NullPointerException ( ) { try { java.util.concurrent.ConcurrentHashMap c = new java.util.concurrent.ConcurrentHashMap ( 5 ) ; c.put ( "sadsdf" , "asdads" ) ; c.remove ( null ) ; shouldThrow ( ) ; } catch ( java.lang.NullPointerException success ) { } }

Target:
public void testRemove1_NullPointerException ( ) { java.util.concurrent.ConcurrentHashMap c = new java.util.concurrent.ConcurrentHashMap ( 5 ) ; c.put ( "sadsdf" , "asdads" ) ; try { c.remove ( null ) ; shouldThrow ( ) ; } catch ( java.lang.NullPointerException success ) { } }
Source:
public void testGetCaptivePortalServerUrl ( ) throws java.lang.Exception { java.lang.String url = mCm.getCaptivePortalServerUrl ( ) ; assertEquals ( "http://connectivitycheck.gstatic.com/generate_204" , url ) ; }

Target:
public void testGetCaptivePortalServerUrl ( ) throws java.lang.Exception { java.lang.String url = mCm.getCaptivePortalServerUrl ( ) ; org.junit.Assert.assertEquals ( "http://connectivitycheck.gstatic.com/generate_204" , url ) ; }
Source:
public void setUiTTYMode ( int slotId , int featureType , int sessionId , int uiTtyMode , android.os.Message onComplete ) throws android.os.RemoteException { }

Target:
public void setUiTTYMode ( int slotId , int featureType , int uiTtyMode , android.os.Message onComplete ) throws android.os.RemoteException { }
Source:
void onBatchScanThresholdCrossed ( int clientIf ) { if ( com.android.bluetooth.gatt.GattService.DBG ) { android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , ( "onBatchScanThresholdCrossed() - clientIf=" + clientIf ) ) ; } boolean isServer = false ; flushPendingBatchResults ( clientIf , isServer ) ; }

Target:
void onBatchScanThresholdCrossed ( int clientIf ) { if ( com.android.bluetooth.gatt.GattService.DBG ) { android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , ( "onBatchScanThresholdCrossed() - clientIf=" + clientIf ) ) ; } flushPendingBatchResults ( clientIf ) ; }
Source:
public java.lang.String getPath ( ) { if ( isStandard ( ) ) { return "<standard>" ; } else { return ( ( com.android.sched.util.location.FileLocation ) ( location ) ) . getPath ( ) ; } }

Target:
public java.lang.String getPath ( ) { return ( ( com.android.sched.util.location.FileLocation ) ( location ) ) . getPath ( ) ; }
Source:
public void test_RAND_bytes_Null_Failure ( ) throws java.lang.Exception { byte [ ] output = null ; try { org.apache.harmony.xnet.provider.jsse.NativeCrypto.RAND_bytes ( output ) ; fail ( "Should be an error on null buffer input" ) ; } catch ( java.lang.RuntimeException success ) { } }

Target:
public void test_RAND_bytes_Null_Failure ( ) throws java.lang.Exception { byte [ ] output = null ; try { org.apache.harmony.xnet.provider.jsse.NativeCrypto.RAND_bytes ( output ) ; fail ( "Should be an error on null buffer input" ) ; } catch ( java.lang.RuntimeException expected ) { } }
Source:
public static long max ( long l1 , long l2 ) { return java.lang.Math.max ( l1 , l2 ) ; }

Target:
public static long max ( long l1 , long l2 ) { return l1 > l2 ? l1 : l2 ; }
Source:
public javax.net.ssl.SSLSocket createSocket ( java.net.Socket s , java.lang.String host , int port , boolean autoClose ) throws java.io.IOException { hostNameUsed.set ( host ) ; return ( ( javax.net.ssl.SSLSocket ) ( this . delegate.createSocket ( s , host , port , autoClose ) ) ) ; }

Target:
public javax.net.ssl.SSLSocket createSocket ( java.net.Socket s , java.lang.String host , int port , boolean autoClose ) throws java.io.IOException { hostNameUsed.set ( host ) ; return ( ( javax.net.ssl.SSLSocket ) ( delegate.createSocket ( s , host , port , autoClose ) ) ) ; }
Source:
public android.view.MotionEvent getPendingTrackballMove ( android.view.IWindow window ) { if ( com.android.server.WindowManagerService.localLOGV ) android.util.Log.v ( com.android.server.WindowManagerService.TAG , ( "IWindow getPendingMotionEvent called for " + window ) ) ; return mKeyWaiter.finishedKey ( this , window , false , com.android.server.WindowManagerService.KeyWaiter.RETURN_PENDING_TRACKBALL ) ; }

Target:
public android.view.MotionEvent getPendingTrackballMove ( android.view.IWindow window ) { if ( com.android.server.WindowManagerService.localLOGV ) android.util.Slog.v ( com.android.server.WindowManagerService.TAG , ( "IWindow getPendingMotionEvent called for " + window ) ) ; return mKeyWaiter.finishedKey ( this , window , false , com.android.server.WindowManagerService.KeyWaiter.RETURN_PENDING_TRACKBALL ) ; }
Source:
void putLongUnchecked ( int i , long x ) { putLong ( ix ( i ) , x ) ; }

Target:
final void putLongUnchecked ( int i , long x ) { putLong ( ix ( i ) , x ) ; }
Source:
private void setClientInfo ( int pid , java.lang.String pkgName ) { if ( pkgName == null ) { pkgName = com.android.ddmlib.Device.UNKNOWN_PACKAGE ; } mClientInfo.put ( java.lang.Integer.valueOf ( pid ) , pkgName ) ; }

Target:
private void setClientInfo ( int pid , java.lang.String pkgName ) { if ( pkgName == null ) { pkgName = com.android.ddmlib.Device.UNKNOWN_PACKAGE ; } mClientInfo.put ( pid , pkgName ) ; }
Source:
public java.lang.String getEncoding ( ) { if ( ! ( isOpen ( ) ) ) { return null ; } return java.io.HistoricalCharsetNames.get ( decoder.charset ( ) ) ; }

Target:
public java.lang.String getEncoding ( ) { if ( ! ( isOpen ( ) ) ) { return null ; } return decoder.charset ( ) . name ( ) ; }
Source:
static long getBasePointer ( java.nio.Buffer b ) { long address = b.effectiveDirectAddress ; if ( address == 0 ) { return 0L ; } return address + ( ( b.position ) << ( b._elementSizeShift ) ) ; }

Target:
static long getBasePointer ( java.nio.Buffer b ) { long address = b.effectiveDirectAddress ; if ( address == 0L ) { return 0L ; } return address + ( ( b.position ) << ( b._elementSizeShift ) ) ; }
Source:
public void testInvalidInvokevirtual ( ) { mn.visitInsn ( org.objectweb.asm.tree.analysis.ACONST_NULL ) ; mn.visitTypeInsn ( org.objectweb.asm.tree.analysis.CHECKCAST , "java/lang/Object" ) ; mn.visitMethodInsn ( org.objectweb.asm.tree.analysis.INVOKEVIRTUAL , "java/util/ArrayList" , "size" , "()I" ) ; assertInvalid ( ) ; }

Target:
public void testInvalidInvokevirtual ( ) { mn.visitInsn ( org.objectweb.asm.tree.analysis.ACONST_NULL ) ; mn.visitTypeInsn ( org.objectweb.asm.tree.analysis.CHECKCAST , "java/lang/Object" ) ; mn.visitMethodInsn ( org.objectweb.asm.tree.analysis.INVOKEVIRTUAL , "java/util/ArrayList" , "size" , "()I" , false ) ; assertInvalid ( ) ; }
Source:
public com.android.ims.internal.IImsCallSession createCallSession ( int sessionId , com.android.ims.ImsCallProfile profile , com.android.ims.internal.IImsCallSessionListener listener ) { return null ; }

Target:
public com.android.ims.internal.IImsCallSession createCallSession ( int sessionId , com.android.ims.ImsCallProfile profile ) { return null ; }
Source:
public void setNpnProtocols ( byte [ ] npnProtocols ) { if ( ( npnProtocols != null ) && ( ( npnProtocols.length ) == 0 ) ) { throw new java.lang.IllegalArgumentException ( "npnProtocols.length == 0" ) ; } sslParameters.npnProtocols = npnProtocols ; }

Target:
public void setNpnProtocols ( byte [ ] npnProtocols ) { }
Source:
public android.print.PrintDocumentAdapter createPrintDocumentAdapter ( ) { checkThread ( ) ; return new org.chromium.android_webview.AwPrintDocumentAdapter ( mAwContents.getPdfExporter ( ) ) ; BRANCH ( ( c3d558 = "Make DrawGLFunctor work on 64-bit platforms." ) ) ; }

Target:
public android.print.PrintDocumentAdapter createPrintDocumentAdapter ( ) { checkThread ( ) ; return new org.chromium.android_webview.AwPrintDocumentAdapter ( mAwContents.getPdfExporter ( ) ) ; }
Source:
public void testCustom ( ) throws java.lang.Exception { assertEquals ( ( "customview.xml:16: Error: When using a custom namespace attribute in a library " + "project, use the namespace \"http://schemas.android.com/apk/res-auto\" instead." ) , lintProject ( "multiproject/library-manifest.xml=>AndroidManifest.xml" , "multiproject/library.properties=>project.properties" , "res/layout/customview.xml" ) ) ; }

Target:
public void testCustom ( ) throws java.lang.Exception { assertEquals ( ( "res/layout/customview.xml:16: Error: When using a custom namespace attribute in a library project, use the namespace \"http://schemas.android.com/apk/res-auto\" instead. [LibraryCustomView]\n" + ( ( ( " foo:misc=\"Custom attribute\"\n" + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "1 errors, 0 warnings\n" ) + "" ) ) , lintProject ( "multiproject/library-manifest.xml=>AndroidManifest.xml" , "multiproject/library.properties=>project.properties" , "res/layout/customview.xml" ) ) ; }
Source:
public android.telephony.mbms.DownloadRequest.Builder setSubscriptionId ( int sub ) { this . subscriptionId = sub ; return this ; }

Target:
public android.telephony.mbms.DownloadRequest.Builder setSubscriptionId ( int subscriptionId ) { this . subscriptionId = subscriptionId ; return this ; }
Source:
protected java.util.List < java.lang.reflect.Method > getTestMethods ( java.lang.Class < ? extends junit.framework.TestCase > testCaseClass ) { java.util.List < java.lang.reflect.Method > methods = java.util.Arrays.asList ( testCaseClass.getMethods ( ) ) ; return select ( methods , new android.test.suitebuilder.TestGrouping.TestMethodPredicate ( ) ) ; }

Target:
private java.util.List < java.lang.reflect.Method > getTestMethods ( java.lang.Class < ? extends junit.framework.TestCase > testCaseClass ) { java.util.List < java.lang.reflect.Method > methods = java.util.Arrays.asList ( testCaseClass.getMethods ( ) ) ; return select ( methods , new android.test.suitebuilder.TestGrouping.TestMethodPredicate ( ) ) ; }
Source:
public void test_getOrDefault ( ) { libcore.java.util.MapDefaultMethodTester.test_getOrDefault ( new java.util.Hashtable < > ( ) , false , false ) ; }

Target:
public void test_getOrDefault ( ) { libcore.java.util.MapDefaultMethodTester.test_getOrDefault ( new java.util.Hashtable < > ( ) , false , false , true ) ; }
Source:
public void dispose ( ) { if ( DBG ) log ( ( "Disposing RuimRecords " + ( this ) ) ) ; mCi.unregisterForIccRefresh ( this ) ; mParentApp.unregisterForReady ( this ) ; resetRecords ( ) ; super . dispose ( ) ; }

Target:
public void dispose ( ) { if ( DBG ) log ( ( "Disposing RuimRecords " + ( this ) ) ) ; mParentApp.unregisterForReady ( this ) ; resetRecords ( ) ; super . dispose ( ) ; }
Source:
protected void init ( ) throws java.lang.Exception { fFormat = android.icu.text.DateFormat.getInstance ( ) ; }

Target:
public void init ( ) throws java.lang.Exception { fFormat = android.icu.text.DateFormat.getInstance ( ) ; }
Source:
protected boolean cleanup ( ) { if ( ( mStateMachine ) != null ) { mStateMachine.cleanup ( ) ; } com.android.bluetooth.a2dpsink.A2dpSinkService.clearA2dpSinkService ( ) ; return true ; }

Target:
protected void cleanup ( ) { if ( ( mStateMachine ) != null ) { mStateMachine.cleanup ( ) ; } com.android.bluetooth.a2dpsink.A2dpSinkService.clearA2dpSinkService ( ) ; }
Source:
public void testCreateTooShortPdu ( ) { byte [ ] pdu = new byte [ 4 ] ; android.telephony.SmsCbMessage msg = com.android.internal.telephony.gsm.GsmSmsCbTest.createFromPdu ( pdu ) ; assertNull ( "createFromPdu(byte[] with too short pdu should return null" , msg ) ; }

Target:
public void testCreateTooShortPdu ( ) { byte [ ] pdu = new byte [ 4 ] ; android.telephony.SmsCbMessage msg = createFromPdu ( pdu ) ; assertNull ( "createFromPdu(byte[] with too short pdu should return null" , msg ) ; }
Source:
public void testCancelSoon ( ) throws java.lang.Exception { if ( ! ( doTestDragAndDrop ( android.wm.cts.CrossAppDragAndDropTests.CANCEL_SOON , android.wm.cts.CrossAppDragAndDropTests.REQUEST_NONE , null ) ) ) { return ; } assertResult ( android.wm.cts.CrossAppDragAndDropTests.RESULT_KEY_DRAG_STARTED , android.wm.cts.CrossAppDragAndDropTests.RESULT_OK ) ; assertResult ( android.wm.cts.CrossAppDragAndDropTests.RESULT_KEY_EXTRAS , android.wm.cts.CrossAppDragAndDropTests.RESULT_OK ) ; }

Target:
public void testCancelSoon ( ) throws java.lang.Exception { doTestDragAndDrop ( android.wm.cts.CrossAppDragAndDropTests.CANCEL_SOON , android.wm.cts.CrossAppDragAndDropTests.REQUEST_NONE , null ) ; assertResult ( android.wm.cts.CrossAppDragAndDropTests.RESULT_KEY_DRAG_STARTED , android.wm.cts.CrossAppDragAndDropTests.RESULT_OK ) ; assertResult ( android.wm.cts.CrossAppDragAndDropTests.RESULT_KEY_EXTRAS , android.wm.cts.CrossAppDragAndDropTests.RESULT_OK ) ; }
Source:
public boolean isHost ( ) { return ( ( ( this ) == ( vogar.ModeId.HOST ) ) || ( ( this ) == ( vogar.ModeId.HOST_DALVIK ) ) ) || ( ( this ) == ( vogar.ModeId.HOST_ART_KITKAT ) ) ; }

Target:
public boolean isHost ( ) { return ( this ) == ( vogar.ModeId.HOST ) ; }
Source:
public int migrateNetworksFromSupplicant ( java.util.Map < java.lang.String , android.net.wifi.WifiConfiguration > configs , android.util.SparseArray < java.util.Map < java.lang.String , java.lang.String > > networkExtras ) { return mWifiSupplicantControl.loadNetworks ( configs , networkExtras ) ; }

Target:
public boolean migrateNetworksFromSupplicant ( java.util.Map < java.lang.String , android.net.wifi.WifiConfiguration > configs , android.util.SparseArray < java.util.Map < java.lang.String , java.lang.String > > networkExtras ) { mWifiSupplicantControl.loadNetworks ( configs , networkExtras ) ; return true ; }
Source:
private java.io.File getJar ( ) { return jar ; }

Target:
public java.io.File getJar ( ) { return jar ; }
Source:
public java.lang.String getMeid ( ) { if ( isPhoneTypeGsm ( ) ) { loge ( "[GsmCdmaPhone] getMeid() is a CDMA method" ) ; return "0" ; } else { return mMeid ; } }

Target:
public java.lang.String getMeid ( ) { return mMeid ; }
Source:
public void test001b ( ) throws java.lang.Exception { java.io.File jackOutput = com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) ; try { runTest001 ( jackOutput , "fail" ) ; junit.framework.Assert.fail ( ) ; } catch ( com.android.jack.backend.jayce.ImportConflictException e ) { } }

Target:
public void test001b ( ) throws java.lang.Exception { java.io.File jackOutput = com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) ; try { runTest001 ( jackOutput , "fail" , true ) ; junit.framework.Assert.fail ( ) ; } catch ( com.android.jack.backend.jayce.ImportConflictException e ) { } }
Source:
public void testIsSupported_InvalidInitialCharacter ( ) { try { java.nio.charset.Charset.isSupported ( ".char" ) ; } catch ( java.lang.IllegalArgumentException e ) { fail ( "Should not throw IllegalArgumentException!" ) ; } }

Target:
public void testIsSupported_InvalidInitialCharacter ( ) { try { java.nio.charset.Charset.isSupported ( ".char" ) ; fail ( ) ; } catch ( java.lang.IllegalArgumentException expected ) { } }
Source:
public void deleteEditor ( ) { mEntry.markDeleted ( ) ; ( ( android.view.ViewGroup ) ( getParent ( ) ) ) . removeView ( this ) ; }

Target:
public void deleteEditor ( ) { mEntry.markDeleted ( ) ; final android.view.ViewGroup parent = ( ( android.view.ViewGroup ) ( getParent ( ) ) ) ; if ( parent != null ) { parent.removeView ( this ) ; } }
Source:
private void testUrlToUriMappingAuthority ( java.lang.String urlString , java.lang.String expectedUriString ) throws java.lang.Exception { java.net.URI authorityUri = backdoorUrlToUri ( new java.net.URL ( urlString ) ) ; assertEquals ( expectedUriString , authorityUri.toString ( ) ) ; }

Target:
private void testUrlToUriMappingAuthority ( java.lang.String urlString , java.lang.String expectedUriString ) throws java.lang.Exception { java.net.URI authorityUri = backdoorUrlToUri ( new java.net.URL ( urlString ) ) ; org.junit.Assert.assertEquals ( expectedUriString , authorityUri.toString ( ) ) ; }
Source:
public java.util.List < android.telephony.NetworkRegistrationState > getNetworkRegistrationStates ( ) { return mNetworkRegistrationStates ; }

Target:
public java.util.List < android.telephony.NetworkRegistrationState > getNetworkRegistrationStates ( ) { synchronized ( mNetworkRegistrationStates ) { return new java.util.ArrayList ( mNetworkRegistrationStates ) ; } }
Source:
public com.google.mockwebserver.SocketPolicy peekSocketPolicy ( ) { com.google.mockwebserver.MockResponse peek = responseQueue.peek ( ) ; if ( peek == null ) { return ( failFastResponse ) != null ? failFastResponse.getSocketPolicy ( ) : SocketPolicy.KEEP_OPEN ; } return peek.getSocketPolicy ( ) ; }

Target:
public com.google.mockwebserver.MockResponse peek ( ) { com.google.mockwebserver.MockResponse peek = responseQueue.peek ( ) ; if ( peek != null ) return peek ; if ( ( failFastResponse ) != null ) return failFastResponse ; return super . peek ( ) ; }
Source:
void onEvent ( @ android.support.annotation.NonNull com.android.dialer.simulator.Simulator.Event event ) { events.add ( com.android.dialer.common.Assert.isNotNull ( event ) ) ; for ( com.android.dialer.simulator.impl.SimulatorConnection.Listener listener : listeners ) { listener.onEvent ( this , event ) ; } }

Target:
void onEvent ( @ android.support.annotation.NonNull com.android.dialer.simulator.Simulator.Event event ) { events.add ( com.android.dialer.common.Assert.isNotNull ( event ) ) ; for ( com.android.dialer.simulator.impl.SimulatorConnection.Listener listener : new java.util.ArrayList < > ( listeners ) ) { listener.onEvent ( this , event ) ; } }
Source:
public void handleMessage ( android.os.Message msg ) { super . handleMessage ( msg ) ; if ( ( msg.what ) == 0 ) { this . mHandler.sendMessageAtFrontOfQueue ( this . mHandler.obtainMessage ( 1 ) ) ; } }

Target:
public void handleMessage ( android.os.Message msg ) { super . handleMessage ( msg ) ; if ( ( msg.what ) == 0 ) { mHandler.sendMessageAtFrontOfQueue ( mHandler.obtainMessage ( 1 ) ) ; } }
Source:
com.android.ddmlib.Client [ ] getClients ( ) { synchronized ( mClientList ) { return mClientList.toArray ( new com.android.ddmlib.Client [ 0 ] ) ; } }

Target:
com.android.ddmlib.Client [ ] getClients ( ) { synchronized ( mClientList ) { return mClientList.toArray ( new com.android.ddmlib.Client [ mClientList.size ( ) ] ) ; } }
Source:
public boolean isEmpty ( ) { return ( patterns.size ( ) ) == 0 ; }

Target:
public boolean isEmpty ( ) { return patterns.isEmpty ( ) ; }
Source:
public static void computeCross ( android.renderscript.cts.TestCross.ArgumentsFloatNFloatNFloatN args ) { android.renderscript.cts.CoreMathVerifier.cross ( args.inLhs , args.inRhs , args.out ) ; }

Target:
public static void computeCross ( android.renderscript.cts.TestCross.ArgumentsFloatNFloatNFloatN args ) { android.renderscript.cts.CoreMathVerifier.cross ( args.inLhs , args.inRhs , args.out , 1 , 4 ) ; }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JField x ) { return visit ( ( ( com.android.jack.ir.ast.JNode ) ( x ) ) ) ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JField field ) { return visit ( ( ( com.android.jack.ir.ast.JNode ) ( field ) ) ) ; }
Source:
private static java.io.OutputStream openOutput ( java.lang.String name ) throws java.io.IOException { if ( ( name.equals ( "-" ) ) || ( name.startsWith ( "-." ) ) ) { return java.lang.System.out ; } return new java.io.FileOutputStream ( name ) ; }

Target:
private java.io.OutputStream openOutput ( java.lang.String name ) throws java.io.IOException { if ( ( name.equals ( "-" ) ) || ( name.startsWith ( "-." ) ) ) { return context.out ; } return new java.io.FileOutputStream ( name ) ; }
Source:
native void rsnAllocationData1D ( int con , int id , int off , int mip , int count , int [ ] d , int sizeBytes ) ;

Target:
native void rsnAllocationData1D ( long con , long id , int off , int mip , int count , int [ ] d , int sizeBytes ) ;
Source:
private static native boolean findNextImpl ( long addr , java.lang.String s , int [ ] offsets ) ;

Target:
private static native boolean findNextImpl ( long addr , int [ ] offsets ) ;
Source:
public void onDisplayChanged ( int displayId ) { if ( displayId == ( android.view.Display.DEFAULT_DISPLAY ) ) { final int oldState = mDefaultDisplayState ; mDefaultDisplayState = mDefaultDisplay.getState ( ) ; if ( ( mDefaultDisplayState ) != oldState ) { updateScreenState ( ) ; } } }

Target:
public void onDisplayChanged ( int displayId ) { if ( displayId == ( android.view.Display.DEFAULT_DISPLAY ) ) { final int oldState = mDefaultDisplayState ; mDefaultDisplayState = mDefaultDisplay.getState ( ) ; if ( ( mDefaultDisplayState ) != oldState ) { updateScreenState ( false ) ; } } }
Source:
public void testConstructor_EndBeforeStart_Failure ( ) throws java.lang.Exception { try { new android.security.AndroidKeyPairGeneratorSpec ( getContext ( ) , android.security.AndroidKeyPairGeneratorSpecTest.TEST_ALIAS_1 , android.security.AndroidKeyPairGeneratorSpecTest.TEST_DN_1 , android.security.AndroidKeyPairGeneratorSpecTest.SERIAL_1 , android.security.AndroidKeyPairGeneratorSpecTest.NOW_PLUS_10_YEARS , android.security.AndroidKeyPairGeneratorSpecTest.NOW ) ; fail ( "Should throw IllegalArgumentException when end is before start" ) ; } catch ( java.lang.IllegalArgumentException success ) { } }

Target:
public void testConstructor_EndBeforeStart_Failure ( ) throws java.lang.Exception { try { new android.security.AndroidKeyPairGeneratorSpec ( getContext ( ) , android.security.AndroidKeyPairGeneratorSpecTest.TEST_ALIAS_1 , android.security.AndroidKeyPairGeneratorSpecTest.TEST_DN_1 , android.security.AndroidKeyPairGeneratorSpecTest.SERIAL_1 , android.security.AndroidKeyPairGeneratorSpecTest.NOW_PLUS_10_YEARS , android.security.AndroidKeyPairGeneratorSpecTest.NOW , 0 ) ; fail ( "Should throw IllegalArgumentException when end is before start" ) ; } catch ( java.lang.IllegalArgumentException success ) { } }
Source:
public void assignSim ( java.lang.String id , int state , java.lang.String link ) { if ( ( type ) == ( com.android.internal.telephony.HardwareConfig.DEV_HARDWARE_TYPE_SIM ) ) { uuid = id ; modemUuid = link ; state = state ; } }

Target:
public void assignSim ( java.lang.String id , int state , java.lang.String link ) { if ( ( type ) == ( com.android.internal.telephony.HardwareConfig.DEV_HARDWARE_TYPE_SIM ) ) { uuid = id ; modemUuid = link ; this . state = state ; } }
Source:
public void testVector ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( "res/drawable/vector.xml:1: Error: <vector> requires API level 21 (current min is 1) [NewApi]\n" + "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\" >\n" ) + "^\n" ) + "1 errors, 0 warnings\n" ) ) , lintProject ( "apicheck/vector.xml=>AndroidManifest.xml" , "apicheck/vector.xml=>res/drawable/vector.xml" ) ) ; }

Target:
public void testVector ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "res/drawable/vector.xml:1: Error: <vector> requires API level 21 (current min is 1) [NewApi]\n" + "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\" >\n" ) + "^\n" ) + "AndroidManifest.xml:8: Warning: Attribute \"viewportHeight\" is only used in API level 21 and higher (current min is 1) [UnusedAttribute]\n" ) + " android:viewportHeight=\"24\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "AndroidManifest.xml:9: Warning: Attribute \"viewportWidth\" is only used in API level 21 and higher (current min is 1) [UnusedAttribute]\n" ) + " android:viewportWidth=\"24\" />\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "res/drawable/vector.xml:8: Warning: Attribute \"viewportHeight\" is only used in API level 21 and higher (current min is 1) [UnusedAttribute]\n" ) + " android:viewportHeight=\"24\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "res/drawable/vector.xml:9: Warning: Attribute \"viewportWidth\" is only used in API level 21 and higher (current min is 1) [UnusedAttribute]\n" ) + " android:viewportWidth=\"24\" />\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "1 errors, 4 warnings\n" ) ) , lintProject ( "apicheck/vector.xml=>AndroidManifest.xml" , "apicheck/vector.xml=>res/drawable/vector.xml" ) ) ; }
Source:
protected void wake ( ) { try { manager.wake ( ) ; } catch ( java.io.IOException e ) { com.android.monkeyrunner.adb.AdbMonkeyDevice.LOG.log ( java.util.logging.Level.SEVERE , "Unable to wake device (too sleepy?)" , e ) ; } }

Target:
public void wake ( ) { try { manager.wake ( ) ; } catch ( java.io.IOException e ) { com.android.monkeyrunner.adb.AdbMonkeyDevice.LOG.log ( java.util.logging.Level.SEVERE , "Unable to wake device (too sleepy?)" , e ) ; } }
Source:
int getDisplayList ( int displayList ) { return android.view.GLES20Canvas.nGetDisplayList ( mRenderer , displayList ) ; }

Target:
long getDisplayList ( long displayList ) { return android.view.GLES20Canvas.nGetDisplayList ( mRenderer , displayList ) ; }
Source:
public void addInstanceField ( com.android.jack.dx.dex.file.EncodedField field ) { if ( field == null ) { throw new java.lang.NullPointerException ( "field == null" ) ; } instanceFields.add ( field ) ; }

Target:
public void addInstanceField ( com.android.jack.dx.dex.file.EncodedField field ) { assert field != null ; instanceFields.add ( field ) ; }
Source:
synchronized void nScriptSetVarV ( int id , int slot , byte [ ] val ) { validate ( ) ; rsnScriptSetVarV ( mContext , id , slot , val ) ; }

Target:
synchronized void nScriptSetVarV ( long id , int slot , byte [ ] val ) { validate ( ) ; rsnScriptSetVarV ( mContext , id , slot , val ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; intento = new android.support.test.espresso.intent.Intents ( android.support.test.espresso.intent.IntentsTest.RESETTING_STUB ) ; intento.internalInit ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { intento = new android.support.test.espresso.intent.Intents ( android.support.test.espresso.intent.IntentsTest.RESETTING_STUB ) ; intento.internalInit ( ) ; }
Source:
native void rsnAllocationData1D ( int con , int id , int off , int mip , int count , int [ ] d , int sizeBytes ) ;

Target:
native void rsnAllocationData1D ( long con , long id , int off , int mip , int count , float [ ] d , int sizeBytes ) ;
Source:
public com.android.builder.model.AndroidProject executeAndReturnModel ( java.lang.String ... tasks ) { return execute ( java.util.Collections.< java.lang.String > emptyList ( ) , null , true , tasks ) ; }

Target:
public com.android.builder.model.AndroidProject executeAndReturnModel ( java.lang.String ... tasks ) { return execute ( java.util.Collections.< java.lang.String > emptyList ( ) , true , tasks ) ; }
Source:
public void testPass6 ( ) { metrics.addTestMetric ( "key2" , "value2" ) ; if ( mOption ) { metrics.addTestMetric ( "junit4-option" , "true" ) ; } HEAD ( 6.2E8F ) ; com.android.tradefed.testtype.f Merge ; com.android.tradefed.testtype.changes Ieb3ca670 ; }

Target:
public void testPass6 ( ) { metrics.addTestMetric ( "key2" , "value2" ) ; if ( mOption ) { metrics.addTestMetric ( "junit4-option" , "true" ) ; } }
Source:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.IntLiteral x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { push ( new com.android.jack.ir.ast.JIntLiteral ( makeSourceInfo ( x ) , x.constant.intValue ( ) ) ) ; } catch ( java.lang.Throwable e ) { throw translateException ( x , e ) ; } }

Target:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.IntLiteral x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { push ( new com.android.jack.ir.ast.JIntLiteral ( makeSourceInfo ( x ) , x.constant.intValue ( ) ) ) ; } catch ( java.lang.RuntimeException e ) { throw translateException ( x , e ) ; } }
Source:
public void removeTransportModeTransforms ( java.net.Socket socket , android.net.IpSecTransform transform ) throws java.io.IOException { removeTransportModeTransforms ( socket.getFileDescriptor$ ( ) , transform ) ; }

Target:
public void removeTransportModeTransforms ( java.net.Socket socket ) throws java.io.IOException { removeTransportModeTransforms ( socket.getFileDescriptor$ ( ) ) ; }
Source:
public com.android.volley.toolbox.ImageLoader.ImageContainer get ( java.lang.String requestUrl , final com.android.volley.toolbox.ImageLoader.ImageListener listener ) { return get ( requestUrl , listener , 0 , 0 , ScaleType.CENTER_INSIDE ) ; }

Target:
public com.android.volley.toolbox.ImageLoader.ImageContainer get ( java.lang.String requestUrl , final com.android.volley.toolbox.ImageLoader.ImageListener listener ) { return get ( requestUrl , listener , 0 , 0 ) ; }
Source:
public final java.lang.String getFormat ( ) { if ( key.isEngineBased ( ) ) { return null ; } return "PKCS#8" ; }

Target:
public final java.lang.String getFormat ( ) { return "PKCS#8" ; }
Source:
public static void setUpClass ( ) { com.android.jack.compile.androidtree.core.CoreCompilationTest.class . getClassLoader ( ) . setDefaultAssertionStatus ( true ) ; com.android.jack.compile.androidtree.core.CoreCompilationTest.SOURCELIST = com.android.jack.TestTools.getTargetLibSourcelist ( "core-libart" ) ; }

Target:
public static void setUpClass ( ) { com.android.jack.compile.androidtree.core.CoreCompilationTest.SOURCELIST = com.android.jack.TestTools.getTargetLibSourcelist ( "core-libart" ) ; }
Source:
public int getTag ( ) { if ( ( tag ) == ( - 1 ) ) { tag = ( org.apache.harmony.security.x501.AttributeValue.isPrintableString ( rawString ) ) ? ASN1StringType.PRINTABLESTRING.id : ASN1StringType.UTF8STRING.id ; } return tag ; }

Target:
public int getTag ( ) { return tag ; }
Source:
public void testStagefright_cve_2015_3873_b_21814993 ( ) throws java.lang.Exception { doStagefrightTest ( R.raw.cve_2015_3873_b_21814993 ) ; android.security.cts.ec0637 Merge ; }

Target:
public void testStagefright_cve_2015_3873_b_21814993 ( ) throws java.lang.Exception { doStagefrightTest ( R.raw.cve_2015_3873_b_21814993 ) ; }
Source:
public java.lang.String getLayoutResourceName ( ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart graphicalEditor = mEditorDelegate.getGraphicalEditor ( ) ; return graphicalEditor.getLayoutResourceName ( ) ; }

Target:
public java.lang.String getLayoutResourceName ( ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart graphicalEditor = getGraphicalEditor ( ) ; return graphicalEditor.getLayoutResourceName ( ) ; }
Source:
private static java.io.File [ ] splitLibraryPath ( java.lang.String path ) { java.util.ArrayList < java.io.File > result = dalvik.system.DexPathList.splitPaths ( path , java.lang.System.getProperty ( "java.library.path" ) , true ) ; return result.toArray ( new java.io.File [ result.size ( ) ] ) ; }

Target:
private static java.util.List < java.io.File > splitLibraryPath ( java.lang.String path ) { return dalvik.system.DexPathList.splitPaths ( path , java.lang.System.getProperty ( "java.library.path" ) , true ) ; }
Source:
static void native_reset ( int native_object ) { android.graphics.Paint_Delegate delegate = android.graphics.Paint_Delegate.sManager.getDelegate ( native_object ) ; if ( delegate == null ) { return ; } delegate.reset ( ) ; }

Target:
static void native_reset ( long native_object ) { android.graphics.Paint_Delegate delegate = android.graphics.Paint_Delegate.sManager.getDelegate ( native_object ) ; if ( delegate == null ) { return ; } delegate.reset ( ) ; }
Source:
public static void expectEquals ( int expected , int result ) { if ( expected != result ) { throw new java.lang.Error ( ( ( ( "Expected: " + expected ) + ", found: " ) + result ) ) ; } }

Target:
public static void assertEquals ( int expected , int result ) { if ( expected != result ) { throw new java.lang.Error ( ( ( ( "Expected: " + expected ) + ", found: " ) + result ) ) ; } }
Source:
final void putFloat ( int offset , float value ) { sun.nio.ch.NativeObject.unsafe.putFloat$ ( ( offset + ( address ) ) , value ) ; }

Target:
final void putFloat ( int offset , float value ) { sun.nio.ch.NativeObject.unsafe.putFloat ( ( offset + ( address ) ) , value ) ; }
Source:
public abstract void processAudioEvent ( int state , android.bluetooth.BluetoothDevice device ) ;

Target:
public abstract void processAudioEvent ( int state ) ;
Source:
public void setUid ( java.lang.String uid ) { this . mUid = uid ; }

Target:
public void setUid ( java.lang.String uid ) { this . uid = uid ; }
Source:
public boolean isGetChannelsForBandSupported ( ) { if ( com.android.server.wifi.WifiNative.HIDL_VENDOR_ENABLE ) { return mWifiVendorHal.isGetChannelsForBandSupported ( ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.isGetChannelsForBandSupportedNative ( ) ; } else { return false ; } } } }

Target:
public boolean isGetChannelsForBandSupported ( ) { return mWifiVendorHal.isGetChannelsForBandSupported ( ) ; }
Source:
public void playDtmfTone ( char digit ) { try { mConnectionService.playDtmfTone ( mId , digit ) ; } catch ( android.os.RemoteException e ) { } }

Target:
public void playDtmfTone ( char digit ) { try { mConnectionService.playDtmfTone ( mId , digit , null ) ; } catch ( android.os.RemoteException e ) { } }
Source:
private static boolean isAospBuildEnvironment ( ) { if ( ( com.android.tools.lint.detector.api.Project.sAospBuild ) == null ) { com.android.tools.lint.detector.api.Project.sAospBuild = ( com.android.tools.lint.detector.api.Project.getAospTop ( ) ) != null ; } return com.android.tools.lint.detector.api.Project.sAospBuild.booleanValue ( ) ; }

Target:
private static boolean isAospBuildEnvironment ( ) { if ( ( com.android.tools.lint.detector.api.Project.sAospBuild ) == null ) { com.android.tools.lint.detector.api.Project.sAospBuild = ( com.android.tools.lint.detector.api.Project.getAospTop ( ) ) != null ; } return com.android.tools.lint.detector.api.Project.sAospBuild ; }
Source:
public int getState ( ) throws android.os.RemoteException { return ImsCallSession.State.INVALID ; }

Target:
public int getState ( ) { return this . getState ( ) ; }
Source:
public void TestNordic ( ) { if ( logKnownIssue ( "cldrbug:9465" , "CDF(12,000) for no_NO shouldn't be 12 (12K or similar)" ) ) { return ; } java.lang.String result = android.icu.text.CompactDecimalFormat.getInstance ( new android.icu.util.ULocale ( "no_NO" ) , CompactDecimalFormat.CompactStyle.SHORT ) . format ( 12000 ) ; assertNotEquals ( "CDF(12,000) for no_NO shouldn't be 12 (12K or similar)" , "12" , result ) ; }

Target:
public void TestNordic ( ) { java.lang.String result = android.icu.text.CompactDecimalFormat.getInstance ( new android.icu.util.ULocale ( "no_NO" ) , CompactDecimalFormat.CompactStyle.SHORT ) . format ( 12000 ) ; assertNotEquals ( "CDF(12,000) for no_NO shouldn't be 12 (12K or similar)" , "12" , result ) ; }
Source:
private static void log ( java.lang.Exception e ) { e.printStackTrace ( ) ; }

Target:
private static void log ( java.lang.Exception e ) { }
Source:
public android.bluetooth.BluetoothActivityEnergyInfo reportActivityInfo ( ) { com.android.bluetooth.btservice.AdapterService service = getService ( ) ; if ( service == null ) return null ; return service.reportActivityInfo ( ) ; }

Target:
public android.bluetooth.BluetoothActivityEnergyInfo reportActivityInfo ( ) { com.android.bluetooth.btservice.AdapterService service = getService ( ) ; if ( service == null ) { return null ; } return service.reportActivityInfo ( ) ; }
Source:
private void assertIsActive ( int index ) { if ( ( index < ( mActiveStart ) ) && ( index >= ( mActiveEnd ) ) ) { throw new java.lang.IllegalArgumentException ( java.lang.String.format ( "%s not in (%s, %s)" , index , mActiveStart , mActiveEnd ) ) ; } }

Target:
private void assertIsActive ( int index ) { if ( ( index < ( mActiveStart ) ) || ( index >= ( mActiveEnd ) ) ) { throw new java.lang.IllegalArgumentException ( java.lang.String.format ( "%s not in (%s, %s)" , index , mActiveStart , mActiveEnd ) ) ; } }
Source:
public final T call ( ) { try { return realCall ( ) ; } catch ( java.lang.Throwable t ) { threadUnexpectedException ( t ) ; return null ; } }

Target:
public final T call ( ) { try { return realCall ( ) ; } catch ( java.lang.Throwable fail ) { threadUnexpectedException ( fail ) ; return null ; } }
Source:
public void run ( ) { mNM.notify ( 1 , notificationWithNumbers ( 1 ) ) ; mNM.notify ( 2 , notificationWithNumbers ( 2 ) ) ; mNM.cancel ( 2 ) ; }

Target:
public void run ( ) { mNM.notify ( 1 , notificationWithNumbers ( 1 ) ) ; }
Source:
public void testConstructor_NullSubjectDN_Failure ( ) throws java.lang.Exception { try { new android.security.AndroidKeyPairGeneratorSpec ( getContext ( ) , android.security.AndroidKeyPairGeneratorSpecTest.TEST_ALIAS_1 , null , android.security.AndroidKeyPairGeneratorSpecTest.SERIAL_1 , android.security.AndroidKeyPairGeneratorSpecTest.NOW , android.security.AndroidKeyPairGeneratorSpecTest.NOW_PLUS_10_YEARS ) ; fail ( "Should throw IllegalArgumentException when subjectDN is null" ) ; } catch ( java.lang.IllegalArgumentException success ) { } }

Target:
public void testConstructor_NullSubjectDN_Failure ( ) throws java.lang.Exception { try { new android.security.AndroidKeyPairGeneratorSpec ( getContext ( ) , android.security.AndroidKeyPairGeneratorSpecTest.TEST_ALIAS_1 , null , android.security.AndroidKeyPairGeneratorSpecTest.SERIAL_1 , android.security.AndroidKeyPairGeneratorSpecTest.NOW , android.security.AndroidKeyPairGeneratorSpecTest.NOW_PLUS_10_YEARS , 0 ) ; fail ( "Should throw IllegalArgumentException when subjectDN is null" ) ; } catch ( java.lang.IllegalArgumentException success ) { } }
Source:
void addResourceValue ( com.android.resources.ResourceType type , com.android.ide.common.rendering.api.ResourceValue value ) ;

Target:
void addResourceValue ( com.android.ide.common.rendering.api.ResourceValue value ) ;
Source:
public static void sort ( char [ ] a ) { java.util.DualPivotQuicksort.sort ( a ) ; }

Target:
public static void sort ( byte [ ] a ) { java.util.DualPivotQuicksort.sort ( a , 0 , ( ( a.length ) - 1 ) ) ; }
Source:
public void checkClientTrusted ( java.security.cert.X509Certificate [ ] chain , java.lang.String authType ) throws java.security.cert.CertificateException { checkTrusted ( chain , authType , null , null , true ) ; }

Target:
public void checkClientTrusted ( java.security.cert.X509Certificate [ ] chain , java.lang.String authType ) throws java.security.cert.CertificateException { checkTrusted ( chain , authType , null , true ) ; }
Source:
private com.android.jack.server.ServerLogConfiguration.LogLevel parseLevel ( @ javax.annotation.Nonnull java.lang.String stringLevel ) throws com.android.sched.util.codec.ParsingException { return new com.android.sched.util.codec.EnumCodec ( com.android.jack.server.ServerLogConfiguration.LogLevel.class , com.android.jack.server.ServerLogConfiguration.LogLevel.values ( ) ) . checkString ( new com.android.sched.util.codec.CodecContext ( ) , stringLevel ) ; }

Target:
private com.android.jack.server.ServerLogConfiguration.LogLevel parseLevel ( @ javax.annotation.Nonnull java.lang.String stringLevel ) throws com.android.sched.util.codec.ParsingException { return new com.android.sched.util.codec.EnumCodec ( com.android.jack.server.ServerLogConfiguration.LogLevel.class ) . checkString ( new com.android.sched.util.codec.CodecContext ( ) , stringLevel ) ; }
Source:
protected boolean stop ( ) { mStateMachine.doQuit ( ) ; return true ; }

Target:
protected boolean stop ( ) { if ( ( mStateMachine ) != null ) mStateMachine.doQuit ( ) ; return true ; }
Source:
public void printmapping ( java.io.File printMapping ) throws proguard.ParseException { mappingFile = printMapping ; super . printmapping ( printMapping ) ; }

Target:
public void printmapping ( java.lang.Object printMapping ) throws proguard.ParseException { mappingFile = ( ( java.io.File ) ( printMapping ) ) ; super . printmapping ( printMapping ) ; }