auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void checkSigningBlockDoneIfEnabled ( ) { if ( ( ! ( mV2SignaturePending ) ) || ( ! ( mV3SignaturePending ) ) ) { return ; } if ( ( mAddSigningBlockRequest ) == null ) { throw new java.lang.IllegalStateException ( "Signed APK Signing BLock not yet generated. Skipped outputZipSections()?" ) ; } if ( ! ( mAddSigningBlockRequest.isDone ( ) ) ) { throw new java.lang.IllegalStateException ( ( "APK Signing Block addition of signature(s) requested by" + " outputZipSections() hasn't been fulfilled yet" ) ) ; } mAddSigningBlockRequest = null ; mV2SignaturePending = false ; mV3SignaturePending = false ; }

Target:
private void checkSigningBlockDoneIfEnabled ( ) { if ( ( ! ( mV2SignaturePending ) ) && ( ! ( mV3SignaturePending ) ) ) { return ; } if ( ( mAddSigningBlockRequest ) == null ) { throw new java.lang.IllegalStateException ( "Signed APK Signing BLock not yet generated. Skipped outputZipSections()?" ) ; } if ( ! ( mAddSigningBlockRequest.isDone ( ) ) ) { throw new java.lang.IllegalStateException ( ( "APK Signing Block addition of signature(s) requested by" + " outputZipSections() hasn't been fulfilled yet" ) ) ; } mAddSigningBlockRequest = null ; mV2SignaturePending = false ; mV3SignaturePending = false ; }
Source:
public void writeToParcel ( android.os.Parcel dest , int flags ) { dest.writeInt ( mCallId ) ; dest.writeInt ( mState ) ; dest.writeString ( getDisconnectCause ( ) . toString ( ) ) ; dest.writeInt ( getCapabilities ( ) ) ; dest.writeLong ( getConnectTime ( ) ) ; dest.writeIntArray ( com.google.common.primitives.Ints.toArray ( mChildCallIds ) ) ; dest.writeString ( getGatewayNumber ( ) ) ; dest.writeString ( getGatewayPackage ( ) ) ; dest.writeParcelable ( mIdentification , 0 ) ; }

Target:
public void writeToParcel ( android.os.Parcel dest , int flags ) { dest.writeInt ( mCallId ) ; dest.writeInt ( mState ) ; dest.writeInt ( getDisconnectCause ( ) ) ; dest.writeInt ( getCapabilities ( ) ) ; dest.writeLong ( getConnectTime ( ) ) ; dest.writeIntArray ( com.google.common.primitives.Ints.toArray ( mChildCallIds ) ) ; dest.writeString ( getGatewayNumber ( ) ) ; dest.writeString ( getGatewayPackage ( ) ) ; dest.writeParcelable ( mIdentification , 0 ) ; }
Source:
private void removeEQ ( java.lang.Object o ) { final java.util.concurrent.locks.ReentrantLock lock = this . lock ; lock.lock ( ) ; try { java.lang.Object [ ] array = queue ; int n = size ; for ( int i = 0 ; i < n ; i ++ ) { if ( o == ( array [ i ] ) ) { removeAt ( i ) ; break ; } } } finally { lock.unlock ( ) ; } }

Target:
void removeEQ ( java.lang.Object o ) { final java.util.concurrent.locks.ReentrantLock lock = this . lock ; lock.lock ( ) ; try { java.lang.Object [ ] array = queue ; for ( int i = 0 , n = size ; i < n ; i ++ ) { if ( o == ( array [ i ] ) ) { removeAt ( i ) ; break ; } } } finally { lock.unlock ( ) ; } }
Source:
protected int compareTo0 ( com.android.jack.dx.rop.cst.Constant other ) { int cmp = super . compareTo0 ( other ) ; if ( cmp != 0 ) { return cmp ; } com.android.jack.dx.rop.cst.CstFieldRef otherField = ( ( com.android.jack.dx.rop.cst.CstFieldRef ) ( other ) ) ; com.android.jack.dx.rop.cst.CstString thisDescriptor = getNat ( ) . getDescriptor ( ) ; com.android.jack.dx.rop.cst.CstString otherDescriptor = otherField.getNat ( ) . getDescriptor ( ) ; return thisDescriptor.compareTo ( otherDescriptor ) ; }

Target:
protected int compareTo0 ( com.android.jack.dx.rop.cst.Constant other ) { int cmp = super . compareTo0 ( other ) ; if ( cmp != 0 ) { return cmp ; } com.android.jack.dx.rop.cst.CstFieldRef otherField = ( ( com.android.jack.dx.rop.cst.CstFieldRef ) ( other ) ) ; com.android.jack.dx.rop.cst.CstString thisDescriptor = getDescriptor ( ) ; com.android.jack.dx.rop.cst.CstString otherDescriptor = otherField.getDescriptor ( ) ; return thisDescriptor.compareTo ( otherDescriptor ) ; }
Source:
protected com.android.jack.ir.ast.JMethod findMethod ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethodId methodId , @ javax.annotation.Nonnull com.android.jack.ir.ast.JClassOrInterface enclosingType , @ javax.annotation.Nonnull com.android.jack.ir.ast.JType returnType ) { for ( com.android.jack.ir.ast.JMethod m : methodId.getMethods ( ) ) { if ( ( m.getEnclosingType ( ) . equals ( enclosingType ) ) && ( m.getType ( ) . equals ( returnType ) ) ) { return m ; } } return null ; }

Target:
protected com.android.jack.ir.ast.JMethod findMethod ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethodId methodId , @ javax.annotation.Nonnull com.android.jack.ir.ast.JClassOrInterface enclosingType , @ javax.annotation.Nonnull com.android.jack.ir.ast.JType returnType ) { for ( com.android.jack.ir.ast.JMethod m : methodId.getMethods ( ) ) { if ( ( ( m.getEnclosingType ( ) ) == enclosingType ) && ( ( m.getType ( ) ) == returnType ) ) { return m ; } } return null ; }
Source:
public void testConstructor5 ( ) { try { java.lang.Integer [ ] ints = new java.lang.Integer [ SIZE ] ; for ( int i = 0 ; i < ( ( SIZE ) - 1 ) ; ++ i ) ints [ i ] = new java.lang.Integer ( i ) ; java.util.PriorityQueue q = new java.util.PriorityQueue ( java.util.Arrays.asList ( ints ) ) ; shouldThrow ( ) ; } catch ( java.lang.NullPointerException success ) { } }

Target:
public void testConstructor5 ( ) { try { java.lang.Integer [ ] ints = new java.lang.Integer [ SIZE ] ; for ( int i = 0 ; i < ( ( SIZE ) - 1 ) ; ++ i ) ints [ i ] = new java.lang.Integer ( i ) ; new java.util.PriorityQueue ( java.util.Arrays.asList ( ints ) ) ; shouldThrow ( ) ; } catch ( java.lang.NullPointerException success ) { } }
Source:
public void testDeserializeWasSerializableClass ( ) throws java.lang.Exception { final java.lang.String s = "aced0005737200316c6962636f72652e6a6176612e696f2e53657269616c697a6174696f6" + ( "e546573742457617353657269616c697a61626c65000000000000000002000149000169787000000" + "000" ) ; libcore.java.io.SerializationTest.wasSerializableInitializedFlag = false ; try { libcore.util.SerializationTester.deserializeHex ( s ) ; fail ( ) ; } catch ( java.io.InvalidClassException expected ) { } assertFalse ( libcore.java.io.SerializationTest.wasSerializableInitializedFlag ) ; }

Target:
public void testDeserializeWasSerializableClass ( ) throws java.lang.Exception { final java.lang.String s = "aced0005737200316c6962636f72652e6a6176612e696f2e53657269616c697a6174696f6" + ( "e546573742457617353657269616c697a61626c65000000000000000002000149000169787000000" + "000" ) ; assertFalse ( libcore.java.io.SerializationTest.wasSerializableInitializedFlag ) ; try { libcore.util.SerializationTester.deserializeHex ( s ) ; fail ( ) ; } catch ( java.io.InvalidClassException expected ) { } assertFalse ( libcore.java.io.SerializationTest.wasSerializableInitializedFlag ) ; }
Source:
public void unregisterService ( android.net.nsd.NsdManager.RegistrationListener listener ) { int id = getListenerKey ( listener ) ; if ( id == ( android.net.nsd.NsdManager.INVALID_LISTENER_KEY ) ) { throw new java.lang.IllegalArgumentException ( "listener not registered" ) ; } if ( listener == null ) { throw new java.lang.IllegalArgumentException ( "listener cannot be null" ) ; } mAsyncChannel.sendMessage ( android.net.nsd.NsdManager.UNREGISTER_SERVICE , 0 , id ) ; }

Target:
public void unregisterService ( android.net.nsd.NsdManager.RegistrationListener listener ) { int id = getListenerKey ( listener ) ; mAsyncChannel.sendMessage ( android.net.nsd.NsdManager.UNREGISTER_SERVICE , 0 , id ) ; }
Source:
static void getBoolean ( java.lang.invoke.MethodHandle m , Main.ValueHolder v , boolean value , boolean expectFailure ) throws java.lang.Throwable { boolean exceptionThrown = false ; try { final boolean got = ( v == null ) ? ( ( boolean ) ( m.invokeExact ( ) ) ) : ( ( boolean ) ( m.invokeExact ( v ) ) ) ; Main.Tester.assertTrue ( ( got == value ) ) ; } catch ( java.lang.invoke.WrongMethodTypeException e ) { exceptionThrown = true ; } Main.Tester.assertActualAndExpectedMatch ( exceptionThrown , expectFailure ) ; }

Target:
static void getBoolean ( java.lang.invoke.MethodHandle m , Main.ValueHolder v , boolean value , boolean expectFailure ) throws java.lang.Throwable { boolean exceptionThrown = false ; try { final boolean got = ( v == null ) ? ( ( boolean ) ( m.invokeExact ( ) ) ) : ( ( boolean ) ( m.invokeExact ( v ) ) ) ; Main.Tester.assertTrue ( ( got == value ) ) ; } catch ( java.lang.invoke.WrongMethodTypeException e ) { exceptionThrown = true ; } Main.Tester.assertEquals ( exceptionThrown , expectFailure ) ; }
Source:
com.android.sched.vfs.VPath getPathFromDir ( @ javax.annotation.Nonnull com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir parent , @ javax.annotation.Nonnull com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVFile file ) { java.lang.StringBuffer path = getPathFromDirInternal ( parent , ( ( com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir ) ( file.getParent ( ) ) ) ) . append ( file.getName ( ) ) ; return new com.android.sched.vfs.VPath ( path.toString ( ) , '/' ) ; }

Target:
com.android.sched.vfs.VPath getPathFromDir ( @ javax.annotation.Nonnull com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir parent , @ javax.annotation.Nonnull com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVFile file ) { java.lang.StringBuilder path = getPathFromDirInternal ( parent , ( ( com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir ) ( file.getParent ( ) ) ) ) . append ( file.getName ( ) ) ; return new com.android.sched.vfs.VPath ( path.toString ( ) , '/' ) ; }
Source:
public void testInvalidClasspathEntry ( ) throws java.lang.Exception { java.io.File srcDir = com.android.jack.test.toolchain.AbstractTestTools.getTestRootDir ( "com.android.jack.classpath.test004.jack" ) ; compileWithInvalidClasspathEntry ( srcDir , new java.io.File ( srcDir , "Classpath004.java" ) ) ; compileWithInvalidClasspathEntry ( srcDir , new java.io.File ( srcDir , "invalid.jack" ) ) ; compileWithInvalidClasspathEntry ( srcDir , new java.io.File ( srcDir , "notjack.zip" ) ) ; }

Target:
public void testInvalidClasspathEntry ( ) throws java.lang.Exception { java.io.File srcDir = com.android.jack.test.toolchain.AbstractTestTools.getTestRootDir ( "com.android.jack.classpath.test004.jack" ) ; compileWithInvalidClasspathEntry ( srcDir , new java.io.File ( srcDir , "Classpath004.java" ) ) ; }
Source:
public void provideConstructorArguments ( java.util.List < org.apache.harmony.jpda.tests.framework.jdwp.Value > constructorArguments ) { long debuggeeClassId = getClassIDBySignature ( getDebuggeeClassSignature ( ) ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value byteArrayValue = getStaticFieldValue ( debuggeeClassId , "BYTE_ARRAY" ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value stringCharsetValue = getStaticFieldValue ( debuggeeClassId , "STRING_CHARSET" ) ; constructorArguments.add ( byteArrayValue ) ; constructorArguments.add ( new org.apache.harmony.jpda.tests.framework.jdwp.Value ( 0 ) ) ; constructorArguments.add ( new org.apache.harmony.jpda.tests.framework.jdwp.Value ( 1 ) ) ; constructorArguments.add ( stringCharsetValue ) ; }

Target:
public void provideConstructorArguments ( java.util.List < org.apache.harmony.jpda.tests.framework.jdwp.Value > constructorArguments ) { long debuggeeClassId = getClassIDBySignature ( getDebuggeeClassSignature ( ) ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value byteArrayValue = getStaticFieldValue ( debuggeeClassId , "BYTE_ARRAY" ) ; constructorArguments.add ( byteArrayValue ) ; constructorArguments.add ( new org.apache.harmony.jpda.tests.framework.jdwp.Value ( 0 ) ) ; constructorArguments.add ( new org.apache.harmony.jpda.tests.framework.jdwp.Value ( 1 ) ) ; }
Source:
static int foo ( ) { try { Main.assertIsManaged ( ) ; Main.constantIndexing2 ( new int [ 3 ] ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException e ) { Main.assertIsManaged ( ) ; try { Main.constantIndexingForward6 ( new int [ 3 ] ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException e2 ) { Main.assertIsManaged ( ) ; return 99 ; } } return 0 ; }

Target:
static int foo ( ) { try { Main.assertIsManaged ( ) ; Main.constantIndexing2 ( new int [ 3 ] ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException e ) { Main.assertIsManaged ( ) ; try { Main.constantIndexingForward6 ( new int [ 3 ] ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException e2 ) { return 99 ; } } return 0 ; }
Source:
public static org.conscrypt.OpenSSLECPointContext getInstance ( int curveType , org.conscrypt.OpenSSLECGroupContext group , java.security.spec.ECPoint javaPoint ) { org.conscrypt.OpenSSLECPointContext point = new org.conscrypt.OpenSSLECPointContext ( group , new org.conscrypt.NativeRef.EC_POINT ( org.conscrypt.NativeCrypto.EC_POINT_new ( group.getNativeRef ( ) ) ) ) ; org.conscrypt.NativeCrypto.EC_POINT_set_affine_coordinates ( group.getNativeRef ( ) , point.getNativeRef ( ) , javaPoint.getAffineX ( ) . toByteArray ( ) , javaPoint.getAffineY ( ) . toByteArray ( ) ) ; return point ; }

Target:
public static org.conscrypt.OpenSSLECPointContext getInstance ( org.conscrypt.OpenSSLECGroupContext group , java.security.spec.ECPoint javaPoint ) { org.conscrypt.OpenSSLECPointContext point = new org.conscrypt.OpenSSLECPointContext ( group , new org.conscrypt.NativeRef.EC_POINT ( org.conscrypt.NativeCrypto.EC_POINT_new ( group.getNativeRef ( ) ) ) ) ; org.conscrypt.NativeCrypto.EC_POINT_set_affine_coordinates ( group.getNativeRef ( ) , point.getNativeRef ( ) , javaPoint.getAffineX ( ) . toByteArray ( ) , javaPoint.getAffineY ( ) . toByteArray ( ) ) ; return point ; }
Source:
public java.net.Socket createSocket ( java.net.Socket s , java.lang.String host , int port , boolean autoClose ) throws java.io.IOException { javax.net.ssl.SSLSocket socket = ( ( javax.net.ssl.SSLSocket ) ( mDelegate.createSocket ( s , host , port , autoClose ) ) ) ; configureSocket ( socket ) ; return socket ; }

Target:
public java.net.Socket createSocket ( java.net.Socket s , java.lang.String host , int port , boolean autoClose ) throws java.io.IOException { javax.net.ssl.SSLSocket socket = ( ( javax.net.ssl.SSLSocket ) ( mDelegate.createSocket ( s , host , port , autoClose ) ) ) ; return configureSocket ( socket ) ; }
Source:
public boolean find ( int start ) { if ( ( start < 0 ) || ( start > ( input.length ( ) ) ) ) { throw new java.lang.IndexOutOfBoundsException ( ( ( ( "start=" + start ) + "; length=" ) + ( input.length ( ) ) ) ) ; } synchronized ( this ) { matchFound = java.util.regex.Matcher.findImpl ( address , start , matchOffsets ) ; } return matchFound ; }

Target:
public boolean find ( int start ) { if ( ( start < 0 ) || ( start > ( input.length ( ) ) ) ) { throw new java.lang.IndexOutOfBoundsException ( ( ( ( "start=" + start ) + "; length=" ) + ( input.length ( ) ) ) ) ; } synchronized ( this ) { matchFound = java.util.regex.Matcher.findImpl ( address , input , start , matchOffsets ) ; } return matchFound ; }
Source:
public void test_ConstructorLjava_lang_StringIZ ( ) throws java.io.IOException { int sport = startServer ( "Cons String,I,Z" ) ; s = new java.net.Socket ( java.net.InetAddress.getLocalHost ( ) . getHostName ( ) , sport , true ) ; assertTrue ( "Failed to create socket" , ( ( s.getPort ( ) ) == sport ) ) ; s = new java.net.Socket ( java.net.InetAddress.getLocalHost ( ) . getHostName ( ) , sport , false ) ; }

Target:
public void test_ConstructorLjava_lang_StringIZ ( ) throws java.io.IOException { int sport = startServer ( "Cons String,I,Z" ) ; try ( java.net.Socket s = new java.net.Socket ( java.net.InetAddress.getLocalHost ( ) . getHostName ( ) , sport , true ) ) { assertTrue ( "Failed to create socket" , ( ( s.getPort ( ) ) == sport ) ) ; } s = new java.net.Socket ( java.net.InetAddress.getLocalHost ( ) . getHostName ( ) , sport , false ) ; }
Source:
protected void checkInvokeReply ( org.apache.harmony.jpda.tests.framework.jdwp.ReplyPacket reply ) { org.apache.harmony.jpda.tests.framework.jdwp.TaggedObject invokeNewObject = reply.getNextValueAsTaggedObject ( ) ; assertEquals ( JDWPConstants.Tag.OBJECT_TAG , invokeNewObject.tag ) ; assertFalse ( "Invalid exception object id" , ( ( invokeNewObject.objectID ) == 0 ) ) ; org.apache.harmony.jpda.tests.framework.jdwp.TaggedObject invokeException = reply.getNextValueAsTaggedObject ( ) ; assertEquals ( JDWPConstants.Tag.OBJECT_TAG , invokeException.tag ) ; assertEquals ( "Invalid exception object id" , 0 , invokeException.objectID ) ; assertAllDataRead ( reply ) ; }

Target:
protected void checkInvokeReply ( org.apache.harmony.jpda.tests.framework.jdwp.ReplyPacket reply ) { org.apache.harmony.jpda.tests.framework.jdwp.TaggedObject invokeNewObject = reply.getNextValueAsTaggedObject ( ) ; assertEquals ( JDWPConstants.Tag.OBJECT_TAG , invokeNewObject.tag ) ; assertTrue ( "Invalid exception object id" , ( ( invokeNewObject.objectID ) != 0 ) ) ; org.apache.harmony.jpda.tests.framework.jdwp.TaggedObject invokeException = reply.getNextValueAsTaggedObject ( ) ; assertEquals ( JDWPConstants.Tag.OBJECT_TAG , invokeException.tag ) ; assertEquals ( "Invalid exception object id" , 0 , invokeException.objectID ) ; assertAllDataRead ( reply ) ; }
Source:
void delete ( @ javax.annotation.Nonnull com.android.sched.vfs.CachedDirectFS.CachedParentVFile file ) throws com.android.sched.util.file.CannotDeleteFileException { assert ! ( isClosed ( ) ) ; java.io.File path = getNativeFile ( file.getPath ( ) ) ; if ( ( ! ( path.delete ( ) ) ) || ( path.exists ( ) ) ) { throw new com.android.sched.util.file.CannotDeleteFileException ( file.getLocation ( ) ) ; } file.deleteFromCache ( ) ; }

Target:
void delete ( @ javax.annotation.Nonnull com.android.sched.vfs.CachedDirectFS.CachedParentVFile file ) throws com.android.sched.util.file.CannotDeleteFileException { assert ! ( isClosed ( ) ) ; java.io.File path = getNativeFile ( file.getPath ( ) ) ; if ( ( ! ( path.delete ( ) ) ) || ( path.exists ( ) ) ) { throw new com.android.sched.util.file.CannotDeleteFileException ( file ) ; } file.deleteFromCache ( ) ; }
Source:
private synchronized boolean onConnect ( android.bluetooth.BluetoothDevice device , android.bluetooth.BluetoothSocket conSocket ) { if ( com.android.bluetooth.ObexServerSockets.D ) android.util.Log.d ( TAG , ( ( ( "onConnect() socket: " + conSocket ) + " mConAccepted = " ) + ( mConAccepted ) ) ) ; if ( ( ( mConAccepted ) == false ) && ( ( mConHandler.onConnect ( device , conSocket ) ) == true ) ) { mConAccepted = true ; return true ; } return false ; }

Target:
private synchronized boolean onConnect ( android.bluetooth.BluetoothDevice device , android.bluetooth.BluetoothSocket conSocket ) { if ( com.android.bluetooth.ObexServerSockets.D ) android.util.Log.d ( TAG , ( ( ( "onConnect() socket: " + conSocket ) + " mConAccepted = " ) + ( mConAccepted ) ) ) ; if ( ( ! ( mConAccepted ) ) && ( mConHandler.onConnect ( device , conSocket ) ) ) { mConAccepted = true ; return true ; } return false ; }
Source:
public void testRunEnded ( long elapsedTime , java.util.Map < java.lang.String , java.lang.String > runMetrics ) { ( mRunCount ) -- ; if ( ( mRunCount ) > 0 ) { return ; } notifyTestRunEnded ( elapsedTime ) ; com.android.ide.eclipse.adt.AdtPlugin.printToConsole ( mLaunchInfo.getProject ( ) , LaunchMessages.RemoteAdtTestRunner_RunCompleteMsg ) ; }

Target:
public synchronized void testRunEnded ( long elapsedTime , java.util.Map < java.lang.String , java.lang.String > runMetrics ) { ( mRunCount ) -- ; if ( ( mRunCount ) > 0 ) { return ; } notifyTestRunEnded ( elapsedTime ) ; com.android.ide.eclipse.adt.AdtPlugin.printToConsole ( mLaunchInfo.getProject ( ) , LaunchMessages.RemoteAdtTestRunner_RunCompleteMsg ) ; }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; android.content.Context appContext = getInstrumentation ( ) . getTargetContext ( ) . getApplicationContext ( ) ; org.chromium.base.ContextUtils.initApplicationContext ( appContext ) ; org.chromium.base.library_loader.LibraryLoader.get ( LibraryProcessType.PROCESS_BROWSER ) . ensureInitialized ( appContext ) ; nativeInit ( ) ; mTestEnvironmentPointer = nativeSetupTestEnvironment ( ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; org.chromium.base.ContextUtils.initApplicationContext ( getInstrumentation ( ) . getTargetContext ( ) . getApplicationContext ( ) ) ; org.chromium.base.library_loader.LibraryLoader.get ( LibraryProcessType.PROCESS_BROWSER ) . ensureInitialized ( ) ; nativeInit ( ) ; mTestEnvironmentPointer = nativeSetupTestEnvironment ( ) ; }
Source:
public static void sort ( int [ ] a , int fromIndex , int toIndex ) { java.util.Arrays.rangeCheck ( a.length , fromIndex , toIndex ) ; java.util.DualPivotQuicksort.sort ( a , fromIndex , ( toIndex - 1 ) ) ; }

Target:
public static void sort ( int [ ] a , int fromIndex , int toIndex ) { java.util.Arrays.rangeCheck ( a.length , fromIndex , toIndex ) ; java.util.DualPivotQuicksort.sort ( a , fromIndex , ( toIndex - 1 ) , null , 0 , 0 ) ; }
Source:
public java.util.concurrent.ConcurrentSkipListSet < E > clone ( ) { java.util.concurrent.ConcurrentSkipListSet < E > clone = null ; try { clone = ( ( java.util.concurrent.ConcurrentSkipListSet < E > ) ( super . clone ( ) ) ) ; clone.setMap ( new java.util.concurrent.ConcurrentSkipListMap ( m ) ) ; } catch ( java.lang.CloneNotSupportedException e ) { throw new java.lang.InternalError ( ) ; } return clone ; }

Target:
public java.util.concurrent.ConcurrentSkipListSet < E > clone ( ) { try { @ java.lang.SuppressWarnings ( value = "unchecked" ) java.util.concurrent.ConcurrentSkipListSet < E > clone = ( ( java.util.concurrent.ConcurrentSkipListSet < E > ) ( super . clone ( ) ) ) ; clone.setMap ( new java.util.concurrent.ConcurrentSkipListMap < E , java.lang.Object > ( m ) ) ; return clone ; } catch ( java.lang.CloneNotSupportedException e ) { throw new java.lang.InternalError ( ) ; } }
Source:
public void testAddNonComparable ( ) { try { java.util.NavigableSet q = jsr166.ConcurrentSkipListSubSetTest.set0 ( ) ; q.add ( new java.lang.Object ( ) ) ; q.add ( new java.lang.Object ( ) ) ; q.add ( new java.lang.Object ( ) ) ; shouldThrow ( ) ; } catch ( java.lang.ClassCastException success ) { } }

Target:
public void testAddNonComparable ( ) { java.util.NavigableSet q = jsr166.ConcurrentSkipListSubSetTest.set0 ( ) ; try { q.add ( new java.lang.Object ( ) ) ; q.add ( new java.lang.Object ( ) ) ; shouldThrow ( ) ; } catch ( java.lang.ClassCastException success ) { } }
Source:
public void onSpeedDialSelected ( ) { hideAllFragments ( ) ; com.android.dialer.speeddial.SpeedDialFragment fragment = ( ( com.android.dialer.speeddial.SpeedDialFragment ) ( supportFragmentManager.findFragmentByTag ( com.android.dialer.main.impl.NewMainActivityPeer.MainBottomNavBarBottomNavTabListener.SPEED_DIAL_TAG ) ) ) ; if ( fragment == null ) { supportFragmentManager.beginTransaction ( ) . add ( R.id.fragment_container , com.android.dialer.speeddial.SpeedDialFragment.newInstance ( ) , com.android.dialer.main.impl.NewMainActivityPeer.MainBottomNavBarBottomNavTabListener.SPEED_DIAL_TAG ) . commit ( ) ; } else { supportFragmentManager.beginTransaction ( ) . show ( fragment ) . commit ( ) ; } }

Target:
public void onSpeedDialSelected ( ) { hideAllFragments ( ) ; }
Source:
private void handleAddedCall ( com.android.server.telecom.ConnectionServiceFocusManager.CallFocus call ) { android.telecom.Log.d ( this , "handleAddedCall %s" , call ) ; if ( ! ( mCalls.contains ( call ) ) ) { mCalls.add ( call ) ; } if ( java.util.Objects.equals ( mCurrentFocus , call.getConnectionServiceWrapper ( ) ) ) { updateCurrentFocusCall ( ) ; } }

Target:
private void handleAddedCall ( com.android.server.telecom.ConnectionServiceFocusManager.CallFocus call ) { if ( ! ( mCalls.contains ( call ) ) ) { mCalls.add ( call ) ; } if ( java.util.Objects.equals ( mCurrentFocus , call.getConnectionServiceWrapper ( ) ) ) { updateCurrentFocusCall ( ) ; } }
Source:
private static com.android.jack.dx.rop.code.RopMethod optimizeMinimizeRegisters ( com.android.jack.dx.rop.code.RopMethod rmeth , int paramWidth , boolean isStatic , java.util.EnumSet < com.android.jack.dx.ssa.Optimizer.OptionalStep > steps ) { com.android.jack.dx.ssa.SsaMethod ssaMeth ; com.android.jack.dx.rop.code.RopMethod resultMeth ; ssaMeth = com.android.jack.dx.ssa.SsaConverter.convertToSsaMethod ( rmeth , paramWidth , isStatic ) ; java.util.EnumSet < com.android.jack.dx.ssa.Optimizer.OptionalStep > newSteps = steps.clone ( ) ; newSteps.remove ( com.android.jack.dx.ssa.Optimizer.OptionalStep.CONST_COLLECTOR ) ; com.android.jack.dx.ssa.Optimizer.runSsaFormSteps ( ssaMeth , newSteps ) ; resultMeth = com.android.jack.dx.ssa.back.SsaToRop.convertToRopMethod ( ssaMeth , true ) ; return resultMeth ; }

Target:
private static com.android.jack.dx.rop.code.RopMethod optimizeMinimizeRegisters ( com.android.jack.dx.rop.code.RopMethod rmeth , int paramWidth , boolean isStatic , java.util.EnumSet < com.android.jack.dx.ssa.Optimizer.OptionalStep > steps ) { com.android.jack.dx.ssa.SsaMethod ssaMeth ; com.android.jack.dx.rop.code.RopMethod resultMeth ; ssaMeth = com.android.jack.dx.ssa.SsaConverter.convertToSsaMethod ( rmeth , paramWidth , isStatic ) ; java.util.EnumSet < com.android.jack.dx.ssa.Optimizer.OptionalStep > newSteps = steps.clone ( ) ; newSteps.remove ( com.android.jack.dx.ssa.Optimizer.OptionalStep.CONST_COLLECTOR ) ; com.android.jack.dx.ssa.Optimizer.runSsaFormSteps ( ssaMeth , newSteps ) ; resultMeth = com.android.jack.dx.ssa.back.SsaToRop.convertToRopMethod ( ssaMeth ) ; return resultMeth ; }
Source:
private java.io.File createRscLibrary ( ) throws java.io.IOException , java.lang.Exception { java.io.File emptyLib = com.android.jack.test.toolchain.AbstractTestTools.createTempFile ( "rsc" , ".jack" ) ; com.android.jack.test.toolchain.JackBasedToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.JackBasedToolchain.class ) ; toolchain.addResource ( com.android.jack.test.toolchain.AbstractTestTools.getTestRootDir ( "com.android.jack.library.test001.lib" ) ) ; toolchain.srcToLib ( null , emptyLib , true ) ; return emptyLib ; }

Target:
private java.io.File createRscLibrary ( ) throws java.io.IOException , java.lang.Exception { java.io.File emptyLib = com.android.jack.test.toolchain.AbstractTestTools.createTempFile ( "rsc" , ".jack" ) ; com.android.jack.test.toolchain.JackBasedToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.JackBasedToolchain.class ) ; toolchain.addResource ( com.android.jack.test.toolchain.AbstractTestTools.getTestRootDir ( "com.android.jack.library.test001.lib" ) ) ; toolchain.srcToLib ( emptyLib , true ) ; return emptyLib ; }
Source:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.ContinueStatement x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { com.android.jack.ir.sourceinfo.SourceInfo info = makeSourceInfo ( x ) ; push ( new com.android.jack.ir.ast.JContinueStatement ( info , getOrCreateLabel ( info , x.label ) ) ) ; } catch ( java.lang.Throwable e ) { throw translateException ( x , e ) ; } }

Target:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.ContinueStatement x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { com.android.jack.ir.sourceinfo.SourceInfo info = makeSourceInfo ( x ) ; push ( new com.android.jack.ir.ast.JContinueStatement ( info , getOrCreateLabel ( info , x.label ) ) ) ; } catch ( java.lang.RuntimeException e ) { throw translateException ( x , e ) ; } }
Source:
private void checkMAC ( long seqNo , short type , byte [ ] recBuf , int recStart , int recEnd , byte [ ] calcBuf , int calcOff , int calcLen ) throws java.io.IOException { byte [ ] receivedMac = org.bouncycastle.util.Arrays.copyOfRange ( recBuf , recStart , recEnd ) ; byte [ ] computedMac = readMac.calculateMac ( seqNo , type , calcBuf , calcOff , calcLen ) ; if ( ! ( org.bouncycastle.util.Arrays.constantTimeAreEqual ( receivedMac , computedMac ) ) ) { throw new org.bouncycastle.crypto.tls.TlsFatalAlert ( AlertDescription.bad_record_mac ) ; } }

Target:
protected void checkMAC ( long seqNo , short type , byte [ ] recBuf , int recStart , int recEnd , byte [ ] calcBuf , int calcOff , int calcLen ) throws java.io.IOException { byte [ ] receivedMac = org.bouncycastle.util.Arrays.copyOfRange ( recBuf , recStart , recEnd ) ; byte [ ] computedMac = readMac.calculateMac ( seqNo , type , calcBuf , calcOff , calcLen ) ; if ( ! ( org.bouncycastle.util.Arrays.constantTimeAreEqual ( receivedMac , computedMac ) ) ) { throw new org.bouncycastle.crypto.tls.TlsFatalAlert ( AlertDescription.bad_record_mac ) ; } }
Source:
public void testSendMessage7bit ( ) throws java.lang.Exception { android.content.Intent intent = new android.content.Intent ( android.provider.Telephony.Sms.Intents.SMS_CB_RECEIVED_ACTION ) ; byte [ ] pdu = encodeCellBroadcast ( 0 , 0 , com.android.cellbroadcastreceiver.DialogSmsDisplayTests.DCS_7BIT_ENGLISH , "Hello in GSM 7 bit" ) ; intent.putExtra ( "message" , com.android.cellbroadcastreceiver.DialogSmsDisplayTests.createFromPdu ( pdu ) ) ; getActivity ( ) . sendOrderedBroadcast ( intent , "android.permission.RECEIVE_SMS" ) ; }

Target:
public void testSendMessage7bit ( ) throws java.lang.Exception { android.content.Intent intent = new android.content.Intent ( android.provider.Telephony.Sms.Intents.SMS_CB_RECEIVED_ACTION ) ; byte [ ] pdu = encodeCellBroadcast ( 0 , 0 , com.android.cellbroadcastreceiver.DialogSmsDisplayTests.DCS_7BIT_ENGLISH , "Hello in GSM 7 bit" ) ; intent.putExtra ( "message" , createFromPdu ( pdu ) ) ; mContext.sendOrderedBroadcast ( intent , "android.permission.RECEIVE_SMS" ) ; }
Source:
public void bleSetScanFilterManufacturerData ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "manufacturerDataId" ) java.lang.Integer manufacturerDataId , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "manufacturerData" ) java.lang.String manufacturerData , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "manufacturerDataMask" ) java.lang.String manufacturerDataMask ) { if ( manufacturerDataMask != null ) { mScanFilterBuilder.setManufacturerData ( manufacturerDataId , com.googlecode.android_scripting.ConvertUtils.convertStringToByteArray ( manufacturerData ) , com.googlecode.android_scripting.ConvertUtils.convertStringToByteArray ( manufacturerDataMask ) ) ; } else { mScanFilterBuilder.setManufacturerData ( manufacturerDataId , com.googlecode.android_scripting.ConvertUtils.convertStringToByteArray ( manufacturerData ) ) ; } }

Target:
public void bleSetScanFilterManufacturerData ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "manufacturerDataId" ) java.lang.Integer manufacturerDataId , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "manufacturerData" ) byte [ ] manufacturerData , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "manufacturerDataMask" ) byte [ ] manufacturerDataMask ) { if ( manufacturerDataMask != null ) { mScanFilterBuilder.setManufacturerData ( manufacturerDataId , manufacturerData , manufacturerDataMask ) ; } else { mScanFilterBuilder.setManufacturerData ( manufacturerDataId , manufacturerData ) ; } }
Source:
final void chompNewline ( ) throws java.io.IOException { if ( ( ( ( pos ) != ( end ) ) || ( ( fillBuf ( ) ) != ( - 1 ) ) ) && ( ( buf [ pos ] ) == '\n' ) ) { ( pos ) ++ ; } }

Target:
final void chompNewline ( ) throws java.io.IOException { if ( ( ( ( pos ) != ( end ) ) || ( ( fillBuf ( ) ) != ( - 1 ) ) ) && ( ( buf [ pos ] ) == '\n' ) ) { ++ ( pos ) ; } }
Source:
public void dump ( java.io.FileDescriptor fd , java.lang.String [ ] args ) { java.io.PrintWriter writer = new java.io.PrintWriter ( new java.io.FileOutputStream ( fd ) ) ; com.android.bluetooth.btservice.AdapterService service = getService ( ) ; if ( service == null ) return ; service.dump ( fd , writer , args ) ; }

Target:
public void dump ( java.io.FileDescriptor fd , java.lang.String [ ] args ) { java.io.PrintWriter writer = new java.io.PrintWriter ( new java.io.FileOutputStream ( fd ) ) ; com.android.bluetooth.btservice.AdapterService service = getService ( ) ; if ( service == null ) { return ; } service.dump ( fd , writer , args ) ; }
Source:
private com.android.builder.VariantConfiguration getVariantWithManifestPackage ( final java.lang.String packageName ) { com.android.builder.VariantConfiguration variant = new com.android.builder.VariantConfiguration ( mDefaultConfig , new com.android.builder.MockSourceProvider ( "main" ) , mBuildType , new com.android.builder.MockSourceProvider ( "debug" ) , VariantConfiguration.Type.DEFAULT ) { @ java.lang.Override public java.lang.String getPackageFromManifest ( ) { return packageName ; } @ java.lang.Override protected void validate ( ) { } } ; variant.addProductFlavor ( mFlavorConfig , new com.android.builder.MockSourceProvider ( "custom" ) , "" ) ; return variant ; }

Target:
private com.android.builder.VariantConfiguration getVariantWithManifestPackage ( final java.lang.String packageName ) { com.android.builder.VariantConfiguration variant = new com.android.builder.VariantConfiguration ( mDefaultConfig , new com.android.builder.MockSourceProvider ( "main" ) , mBuildType , new com.android.builder.MockSourceProvider ( "debug" ) , VariantConfiguration.Type.DEFAULT ) { @ java.lang.Override public java.lang.String getPackageFromManifest ( ) { return packageName ; } } ; variant.addProductFlavor ( mFlavorConfig , new com.android.builder.MockSourceProvider ( "custom" ) , "" ) ; return variant ; }
Source:
public void afterHandshake ( int session , int ssl , int context , java.net.Socket socket , java.io.FileDescriptor fd , org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { if ( channelIdEnabled ) { try { channelIdAfterHandshake = org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_get_tls_channel_id ( ssl ) ; } catch ( java.lang.Exception e ) { channelIdAfterHandshakeException = e ; } } super . afterHandshake ( session , ssl , context , socket , fd , callback ) ; }

Target:
public void afterHandshake ( long session , long ssl , long context , java.net.Socket socket , java.io.FileDescriptor fd , org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { if ( channelIdEnabled ) { try { channelIdAfterHandshake = org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_get_tls_channel_id ( ssl ) ; } catch ( java.lang.Exception e ) { channelIdAfterHandshakeException = e ; } } super . afterHandshake ( session , ssl , context , socket , fd , callback ) ; }
Source:
public void initialize ( java.security.spec.AlgorithmParameterSpec params , java.security.SecureRandom random ) throws java.security.InvalidAlgorithmParameterException { if ( ! ( params instanceof java.security.spec.RSAKeyGenParameterSpec ) ) { throw new java.security.InvalidAlgorithmParameterException ( "parameter object not a RSAKeyGenParameterSpec" ) ; } java.security.spec.RSAKeyGenParameterSpec rsaParams = ( ( java.security.spec.RSAKeyGenParameterSpec ) ( params ) ) ; param = new org.bouncycastle.crypto.params.RSAKeyGenerationParameters ( rsaParams.getPublicExponent ( ) , random , rsaParams.getKeysize ( ) , org.bouncycastle.jcajce.provider.asymmetric.rsa.KeyPairGeneratorSpi.defaultTests ) ; engine.init ( param ) ; }

Target:
public void initialize ( java.security.spec.AlgorithmParameterSpec params , java.security.SecureRandom random ) throws java.security.InvalidAlgorithmParameterException { if ( ! ( params instanceof java.security.spec.RSAKeyGenParameterSpec ) ) { throw new java.security.InvalidAlgorithmParameterException ( "parameter object not a RSAKeyGenParameterSpec" ) ; } java.security.spec.RSAKeyGenParameterSpec rsaParams = ( ( java.security.spec.RSAKeyGenParameterSpec ) ( params ) ) ; param = new org.bouncycastle.crypto.params.RSAKeyGenerationParameters ( rsaParams.getPublicExponent ( ) , ( random != null ? random : new java.security.SecureRandom ( ) ) , rsaParams.getKeysize ( ) , org.bouncycastle.jcajce.provider.asymmetric.rsa.KeyPairGeneratorSpi.defaultTests ) ; engine.init ( param ) ; }
Source:
static void getLong ( java.lang.invoke.MethodHandle m , Main.ValueHolder v , long value , boolean expectFailure ) throws java.lang.Throwable { boolean exceptionThrown = false ; try { final long got = ( v == null ) ? ( ( long ) ( m.invokeExact ( ) ) ) : ( ( long ) ( m.invokeExact ( v ) ) ) ; Main.Tester.assertTrue ( ( got == value ) ) ; } catch ( java.lang.invoke.WrongMethodTypeException e ) { exceptionThrown = true ; } Main.Tester.assertActualAndExpectedMatch ( exceptionThrown , expectFailure ) ; }

Target:
static void getLong ( java.lang.invoke.MethodHandle m , Main.ValueHolder v , long value , boolean expectFailure ) throws java.lang.Throwable { boolean exceptionThrown = false ; try { final long got = ( v == null ) ? ( ( long ) ( m.invokeExact ( ) ) ) : ( ( long ) ( m.invokeExact ( v ) ) ) ; Main.Tester.assertTrue ( ( got == value ) ) ; } catch ( java.lang.invoke.WrongMethodTypeException e ) { exceptionThrown = true ; } Main.Tester.assertEquals ( exceptionThrown , expectFailure ) ; }
Source:
public boolean equals ( java.lang.Object other ) { if ( ( this ) == other ) return true ; if ( ! ( other instanceof sun.security.x509.Extension ) ) return false ; sun.security.x509.Extension otherExt = ( ( sun.security.x509.Extension ) ( other ) ) ; if ( ( critical ) != ( otherExt.critical ) ) return false ; if ( ! ( extensionId.equals ( otherExt.extensionId ) ) ) return false ; return java.util.Arrays.equals ( extensionValue , otherExt.extensionValue ) ; }

Target:
public boolean equals ( java.lang.Object other ) { if ( ( this ) == other ) return true ; if ( ! ( other instanceof sun.security.x509.Extension ) ) return false ; sun.security.x509.Extension otherExt = ( ( sun.security.x509.Extension ) ( other ) ) ; if ( ( critical ) != ( otherExt.critical ) ) return false ; if ( ! ( extensionId.equals ( ( ( java.lang.Object ) ( otherExt.extensionId ) ) ) ) ) return false ; return java.util.Arrays.equals ( extensionValue , otherExt.extensionValue ) ; }
Source:
protected void reboot ( java.lang.String into ) { try { device.reboot ( into ) ; } catch ( com.android.ddmlib.TimeoutException e ) { com.android.monkeyrunner.adb.AdbMonkeyDevice.LOG.log ( java.util.logging.Level.SEVERE , "Unable to reboot device" , e ) ; } catch ( com.android.ddmlib.AdbCommandRejectedException e ) { com.android.monkeyrunner.adb.AdbMonkeyDevice.LOG.log ( java.util.logging.Level.SEVERE , "Unable to reboot device" , e ) ; } catch ( java.io.IOException e ) { com.android.monkeyrunner.adb.AdbMonkeyDevice.LOG.log ( java.util.logging.Level.SEVERE , "Unable to reboot device" , e ) ; } }

Target:
public void reboot ( java.lang.String into ) { try { device.reboot ( into ) ; } catch ( com.android.ddmlib.TimeoutException e ) { com.android.monkeyrunner.adb.AdbMonkeyDevice.LOG.log ( java.util.logging.Level.SEVERE , "Unable to reboot device" , e ) ; } catch ( com.android.ddmlib.AdbCommandRejectedException e ) { com.android.monkeyrunner.adb.AdbMonkeyDevice.LOG.log ( java.util.logging.Level.SEVERE , "Unable to reboot device" , e ) ; } catch ( java.io.IOException e ) { com.android.monkeyrunner.adb.AdbMonkeyDevice.LOG.log ( java.util.logging.Level.SEVERE , "Unable to reboot device" , e ) ; } }
Source:
public static com.android.jack.dx.rop.code.Rop opMove ( com.android.jack.dx.rop.type.TypeBearer type ) { switch ( type.getBasicFrameType ( ) ) { case com.android.jack.dx.rop.type.Type.BT_INT : return com.android.jack.dx.rop.code.Rops.MOVE_INT ; case com.android.jack.dx.rop.type.Type.BT_LONG : return com.android.jack.dx.rop.code.Rops.MOVE_LONG ; case com.android.jack.dx.rop.type.Type.BT_FLOAT : return com.android.jack.dx.rop.code.Rops.MOVE_FLOAT ; case com.android.jack.dx.rop.type.Type.BT_DOUBLE : return com.android.jack.dx.rop.code.Rops.MOVE_DOUBLE ; case com.android.jack.dx.rop.type.Type.BT_CLOSURE : return com.android.jack.dx.rop.code.Rops.MOVE_LAMBDA ; case com.android.jack.dx.rop.type.Type.BT_OBJECT : return com.android.jack.dx.rop.code.Rops.MOVE_OBJECT ; case com.android.jack.dx.rop.type.Type.BT_ADDR : return com.android.jack.dx.rop.code.Rops.MOVE_RETURN_ADDRESS ; } return com.android.jack.dx.rop.code.Rops.throwBadType ( type ) ; }

Target:
public static com.android.jack.dx.rop.code.Rop opMove ( com.android.jack.dx.rop.type.TypeBearer type ) { switch ( type.getBasicFrameType ( ) ) { case com.android.jack.dx.rop.type.Type.BT_INT : return com.android.jack.dx.rop.code.Rops.MOVE_INT ; case com.android.jack.dx.rop.type.Type.BT_LONG : return com.android.jack.dx.rop.code.Rops.MOVE_LONG ; case com.android.jack.dx.rop.type.Type.BT_FLOAT : return com.android.jack.dx.rop.code.Rops.MOVE_FLOAT ; case com.android.jack.dx.rop.type.Type.BT_DOUBLE : return com.android.jack.dx.rop.code.Rops.MOVE_DOUBLE ; case com.android.jack.dx.rop.type.Type.BT_OBJECT : return com.android.jack.dx.rop.code.Rops.MOVE_OBJECT ; case com.android.jack.dx.rop.type.Type.BT_ADDR : return com.android.jack.dx.rop.code.Rops.MOVE_RETURN_ADDRESS ; } return com.android.jack.dx.rop.code.Rops.throwBadType ( type ) ; }
Source:
private static void addPath ( int destPath , int srcPath , java.awt.geom.AffineTransform transform ) { android.graphics.Path_Delegate destPathDelegate = android.graphics.Path_Delegate.sManager.getDelegate ( destPath ) ; if ( destPathDelegate == null ) { return ; } android.graphics.Path_Delegate srcPathDelegate = android.graphics.Path_Delegate.sManager.getDelegate ( srcPath ) ; if ( srcPathDelegate == null ) { return ; } if ( transform != null ) { destPathDelegate.mPath.append ( srcPathDelegate.mPath.getPathIterator ( transform ) , false ) ; } else { destPathDelegate.mPath.append ( srcPathDelegate.mPath , false ) ; } }

Target:
private static void addPath ( long destPath , long srcPath , java.awt.geom.AffineTransform transform ) { android.graphics.Path_Delegate destPathDelegate = android.graphics.Path_Delegate.sManager.getDelegate ( destPath ) ; if ( destPathDelegate == null ) { return ; } android.graphics.Path_Delegate srcPathDelegate = android.graphics.Path_Delegate.sManager.getDelegate ( srcPath ) ; if ( srcPathDelegate == null ) { return ; } if ( transform != null ) { destPathDelegate.mPath.append ( srcPathDelegate.mPath.getPathIterator ( transform ) , false ) ; } else { destPathDelegate.mPath.append ( srcPathDelegate.mPath , false ) ; } }
Source:
protected boolean cleanup ( ) { if ( com.android.bluetooth.gatt.GattService.DBG ) { android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , "cleanup()" ) ; } cleanupNative ( ) ; if ( ( mAdvertiseManager ) != null ) { mAdvertiseManager.cleanup ( ) ; } if ( ( mScanManager ) != null ) { mScanManager.cleanup ( ) ; } if ( ( mPeriodicScanManager ) != null ) { mPeriodicScanManager.cleanup ( ) ; } return true ; }

Target:
protected void cleanup ( ) { if ( com.android.bluetooth.gatt.GattService.DBG ) { android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , "cleanup()" ) ; } cleanupNative ( ) ; if ( ( mAdvertiseManager ) != null ) { mAdvertiseManager.cleanup ( ) ; } if ( ( mScanManager ) != null ) { mScanManager.cleanup ( ) ; } if ( ( mPeriodicScanManager ) != null ) { mPeriodicScanManager.cleanup ( ) ; } }
Source:
public void updateDate ( int year , int monthOfYear , int dayOfMonth ) { if ( ( ( ( mYear ) != year ) || ( ( mMonth ) != monthOfYear ) ) || ( ( mDay ) != dayOfMonth ) ) { mYear = ( ( mYearOptional ) && ( year == ( com.android.contacts.datepicker.DatePicker.NO_YEAR ) ) ) ? getCurrentYear ( ) : year ; mMonth = monthOfYear ; mDay = dayOfMonth ; updateSpinners ( ) ; reorderPickers ( new java.text.DateFormatSymbols ( ) . getShortMonths ( ) ) ; notifyDateChanged ( ) ; } }

Target:
public void updateDate ( int year , int monthOfYear , int dayOfMonth ) { if ( ( ( ( mYear ) != year ) || ( ( mMonth ) != monthOfYear ) ) || ( ( mDay ) != dayOfMonth ) ) { mYear = ( ( mYearOptional ) && ( year == ( com.android.contacts.datepicker.DatePicker.NO_YEAR ) ) ) ? getCurrentYear ( ) : year ; mMonth = monthOfYear ; mDay = dayOfMonth ; updateSpinners ( ) ; reorderPickers ( ) ; notifyDateChanged ( ) ; } }
Source:
public int receive ( byte [ ] buf , int off , int len , int waitMillis ) throws java.io.IOException { try { return recordLayer.receive ( buf , off , len , waitMillis ) ; } catch ( org.bouncycastle.crypto.tls.TlsFatalAlert fatalAlert ) { recordLayer.fail ( fatalAlert.getAlertDescription ( ) ) ; throw fatalAlert ; } catch ( java.io.IOException e ) { recordLayer.fail ( AlertDescription.internal_error ) ; throw e ; } catch ( java.lang.RuntimeException e ) { recordLayer.fail ( AlertDescription.internal_error ) ; throw new org.bouncycastle.crypto.tls.TlsFatalAlert ( AlertDescription.internal_error ) ; } }

Target:
public int receive ( byte [ ] buf , int off , int len , int waitMillis ) throws java.io.IOException { try { return recordLayer.receive ( buf , off , len , waitMillis ) ; } catch ( org.bouncycastle.crypto.tls.TlsFatalAlert fatalAlert ) { recordLayer.fail ( fatalAlert.getAlertDescription ( ) ) ; throw fatalAlert ; } catch ( java.io.IOException e ) { recordLayer.fail ( AlertDescription.internal_error ) ; throw e ; } catch ( java.lang.RuntimeException e ) { recordLayer.fail ( AlertDescription.internal_error ) ; throw new org.bouncycastle.crypto.tls.TlsFatalAlert ( AlertDescription.internal_error , e ) ; } }
Source:
private void handleStartAdvertising ( com.android.bluetooth.gatt.AdvertiseClient client ) { com.android.bluetooth.Utils.enforceAdminPermission ( mService ) ; int advertiserId = client.advertiserId ; if ( mAdvertiseClients.contains ( client ) ) { postCallback ( advertiserId , AdvertiseCallback.ADVERTISE_FAILED_ALREADY_STARTED ) ; return ; } if ( ( mAdvertiseClients.size ( ) ) >= ( maxAdvertiseInstances ( ) ) ) { postCallback ( advertiserId , AdvertiseCallback.ADVERTISE_FAILED_TOO_MANY_ADVERTISERS ) ; return ; } if ( ! ( mAdvertiseNative.startAdverising ( client ) ) ) { postCallback ( advertiserId , AdvertiseCallback.ADVERTISE_FAILED_INTERNAL_ERROR ) ; return ; } mAdvertiseClients.add ( client ) ; }

Target:
private void handleStartAdvertising ( com.android.bluetooth.gatt.AdvertiseClient client ) { com.android.bluetooth.Utils.enforceAdminPermission ( mService ) ; int advertiserId = client.advertiserId ; if ( mAdvertiseClients.contains ( client ) ) { postCallback ( advertiserId , AdvertiseCallback.ADVERTISE_FAILED_ALREADY_STARTED ) ; return ; } if ( ! ( mAdvertiseNative.startAdverising ( client ) ) ) { postCallback ( advertiserId , AdvertiseCallback.ADVERTISE_FAILED_INTERNAL_ERROR ) ; return ; } mAdvertiseClients.add ( client ) ; }
Source:
public void visitElement ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.XmlContext context , @ com.android.annotations.NonNull org.w3c.dom.Element element ) { org.w3c.dom.Attr nameNode = element.getAttributeNodeNS ( com.android.SdkConstants.ANDROID_URI , com.android.SdkConstants.ATTR_NAME ) ; if ( nameNode != null ) { java.lang.String permissionName = nameNode.getValue ( ) ; if ( ( java.util.Arrays.binarySearch ( com.android.tools.lint.checks.SystemPermissionsDetector.SYSTEM_PERMISSIONS , permissionName ) ) >= 0 ) { context.report ( com.android.tools.lint.checks.SystemPermissionsDetector.ISSUE , context.getLocation ( nameNode ) , "Permission is only granted to system apps" , null ) ; } } }

Target:
public void visitElement ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.XmlContext context , @ com.android.annotations.NonNull org.w3c.dom.Element element ) { org.w3c.dom.Attr nameNode = element.getAttributeNodeNS ( com.android.SdkConstants.ANDROID_URI , com.android.SdkConstants.ATTR_NAME ) ; if ( nameNode != null ) { java.lang.String permissionName = nameNode.getValue ( ) ; if ( ( java.util.Arrays.binarySearch ( com.android.tools.lint.checks.SystemPermissionsDetector.SYSTEM_PERMISSIONS , permissionName ) ) >= 0 ) { context.report ( com.android.tools.lint.checks.SystemPermissionsDetector.ISSUE , element , context.getLocation ( nameNode ) , "Permission is only granted to system apps" , null ) ; } } }