auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public boolean shouldOverrideUrlLoading ( android.webkit.WebView view , java.lang.String url ) { if ( voiceSearchSourceIsGoogle ( ) ) { android.content.Intent logIntent = new android.content.Intent ( com.android.common.speech.LoggingEvents.ACTION_LOG_EVENT ) ; logIntent.putExtra ( LoggingEvents.EXTRA_EVENT , LoggingEvents.VoiceSearch.RESULT_CLICKED ) ; mContext.sendBroadcast ( logIntent ) ; } if ( mInForeground ) { return mWebViewController.shouldOverrideUrlLoading ( this , view , url ) ; } else { return false ; } }

Target:
public boolean shouldOverrideUrlLoading ( android.webkit.WebView view , java.lang.String url ) { if ( mInForeground ) { return mWebViewController.shouldOverrideUrlLoading ( this , view , url ) ; } else { return false ; } }
Source:
private static java.util.List < ? extends com.android.ide.common.resources.configuration.Configurable > getConfigurable ( java.lang.String ... configs ) { java.util.ArrayList < com.android.ide.common.resources.configuration.FolderConfigurationTest.MockConfigurable > list = new java.util.ArrayList < com.android.ide.common.resources.configuration.FolderConfigurationTest.MockConfigurable > ( ) ; for ( java.lang.String config : configs ) { list.add ( new com.android.ide.common.resources.configuration.FolderConfigurationTest.MockConfigurable ( config ) ) ; } return list ; }

Target:
private static java.util.List < com.android.ide.common.resources.configuration.Configurable > getConfigurable ( java.lang.String ... configs ) { java.util.ArrayList < com.android.ide.common.resources.configuration.Configurable > list = new java.util.ArrayList < com.android.ide.common.resources.configuration.Configurable > ( ) ; for ( java.lang.String config : configs ) { list.add ( new com.android.ide.common.resources.configuration.FolderConfigurationTest.MockConfigurable ( config ) ) ; } return list ; }
Source:
private int [ ] coordArrayListToArray ( java.util.ArrayList < com.example.android.snake.SnakeView.Coordinate > cvec ) { int count = cvec.size ( ) ; int [ ] rawArray = new int [ count * 2 ] ; for ( int index = 0 ; index < count ; index ++ ) { com.example.android.snake.SnakeView.Coordinate c = cvec.get ( index ) ; rawArray [ ( 2 * index ) ] = c.x ; rawArray [ ( ( 2 * index ) + 1 ) ] = c.y ; } return rawArray ; }

Target:
private int [ ] coordArrayListToArray ( java.util.ArrayList < com.example.android.snake.SnakeView.Coordinate > cvec ) { int [ ] rawArray = new int [ ( cvec.size ( ) ) * 2 ] ; int i = 0 ; for ( com.example.android.snake.SnakeView.Coordinate c : cvec ) { rawArray [ ( i ++ ) ] = c.x ; rawArray [ ( i ++ ) ] = c.y ; } return rawArray ; }
Source:
public void visitProgramClass ( proguard.classfile.editor.ProgramClass programClass ) { int currentAccessFlags = programClass.getAccessFlags ( ) ; int currentAccessLevel = proguard.classfile.editor.AccessUtil.accessLevel ( currentAccessFlags ) ; proguard.classfile.editor.Clazz referencingClass = this . referencingClass ; int requiredAccessLevel = ( inSamePackage ( programClass , referencingClass ) ) ? AccessUtil.PACKAGE_VISIBLE : AccessUtil.PUBLIC ; if ( currentAccessLevel < requiredAccessLevel ) { programClass.u2accessFlags = proguard.classfile.editor.AccessUtil.replaceAccessFlags ( currentAccessFlags , proguard.classfile.editor.AccessUtil.accessFlags ( requiredAccessLevel ) ) ; } }

Target:
public void visitProgramClass ( proguard.classfile.editor.ProgramClass programClass ) { int currentAccessFlags = programClass.getAccessFlags ( ) ; int currentAccessLevel = proguard.classfile.editor.AccessUtil.accessLevel ( currentAccessFlags ) ; int requiredAccessLevel = ( inSamePackage ( programClass , referencingClass ) ) ? AccessUtil.PACKAGE_VISIBLE : AccessUtil.PUBLIC ; if ( currentAccessLevel < requiredAccessLevel ) { programClass.u2accessFlags = proguard.classfile.editor.AccessUtil.replaceAccessFlags ( currentAccessFlags , proguard.classfile.editor.AccessUtil.accessFlags ( requiredAccessLevel ) ) ; } }
Source:
public boolean isBetterMatchThan ( com.android.ide.eclipse.adt.internal.resources.configurations.ResourceQualifier compareTo , com.android.ide.eclipse.adt.internal.resources.configurations.ResourceQualifier reference ) { if ( compareTo == null ) { return true ; } com.android.ide.eclipse.adt.internal.resources.configurations.PixelDensityQualifier compareQ = ( ( com.android.ide.eclipse.adt.internal.resources.configurations.PixelDensityQualifier ) ( compareTo ) ) ; com.android.ide.eclipse.adt.internal.resources.configurations.PixelDensityQualifier referenceQ = ( ( com.android.ide.eclipse.adt.internal.resources.configurations.PixelDensityQualifier ) ( reference ) ) ; if ( ( ( mValue ) == ( referenceQ.mValue ) ) && ( ( compareQ.mValue ) != ( referenceQ.mValue ) ) ) { return true ; } else { return ( mValue.getDpiValue ( ) ) > ( compareQ.mValue.getDpiValue ( ) ) ; } }

Target:
public boolean isBetterMatchThan ( com.android.ide.eclipse.adt.internal.resources.configurations.ResourceQualifier compareTo , com.android.ide.eclipse.adt.internal.resources.configurations.ResourceQualifier reference ) { if ( compareTo == null ) { return true ; } com.android.ide.eclipse.adt.internal.resources.configurations.PixelDensityQualifier compareQ = ( ( com.android.ide.eclipse.adt.internal.resources.configurations.PixelDensityQualifier ) ( compareTo ) ) ; com.android.ide.eclipse.adt.internal.resources.configurations.PixelDensityQualifier referenceQ = ( ( com.android.ide.eclipse.adt.internal.resources.configurations.PixelDensityQualifier ) ( reference ) ) ; if ( ( compareQ.mValue ) == ( referenceQ.mValue ) ) { return false ; } else if ( ( mValue ) == ( referenceQ.mValue ) ) { return true ; } else { return ( mValue.getDpiValue ( ) ) > ( compareQ.mValue.getDpiValue ( ) ) ; } }
Source:
public void test_run_for_LongTest2_with_time_limit_should_not_report_time_out ( ) { java.lang.Class < ? > target = vogar.target.junit3.LongTest2.class ; java.lang.String actionName = "actionName" ; vogar.target.Runner runner = new vogar.target.junit.JUnitRunner ( monitor , actionName , null , target , skipPastReference , testEnvironment , 0 ) ; runner.run ( "" , null , null ) ; org.mockito.Mockito.verify ( monitor , org.mockito.Mockito.times ( 8 ) ) . outcomeFinished ( Result.SUCCESS ) ; }

Target:
public void test_run_for_LongTest2_with_time_limit_should_not_report_time_out ( ) { java.lang.Class < ? > target = vogar.target.junit3.LongTest2.class ; vogar.target.Runner runner = new vogar.target.junit.JUnitRunner ( monitor , null , target , skipPastReference , testEnvironment , 0 ) ; runner.run ( "" , null , null ) ; org.mockito.Mockito.verify ( monitor , org.mockito.Mockito.times ( 8 ) ) . outcomeFinished ( Result.SUCCESS ) ; }
Source:
private int getOutputSize ( int inputLen ) { if ( ( modeBlockSize ) == 1 ) { return inputLen ; } else { final int buffered = org.conscrypt.NativeCrypto.get_EVP_CIPHER_CTX_buf_len ( cipherCtx.getContext ( ) ) ; if ( ( padding ) == ( org.conscrypt.OpenSSLCipher.Padding.NOPADDING ) ) { return buffered + inputLen ; } else { final int totalLen = ( inputLen + buffered ) + ( modeBlockSize ) ; return totalLen - ( totalLen % ( modeBlockSize ) ) ; } } }

Target:
private int getOutputSize ( int inputLen ) { if ( ( modeBlockSize ) == 1 ) { return inputLen ; } else { final int buffered = org.conscrypt.NativeCrypto.get_EVP_CIPHER_CTX_buf_len ( cipherCtx ) ; if ( ( padding ) == ( org.conscrypt.OpenSSLCipher.Padding.NOPADDING ) ) { return buffered + inputLen ; } else { final int totalLen = ( inputLen + buffered ) + ( modeBlockSize ) ; return totalLen - ( totalLen % ( modeBlockSize ) ) ; } } }
Source:
private void waitForBootCompleted ( ) throws java.lang.Exception { for ( int i = 0 ; i < 45 ; i ++ ) { if ( isBootCompleted ( ) ) { com.android.ddmlib.Log.d ( android.appsecurity.cts.DirectBootHostTest.TAG , "Yay, system is ready!" ) ; return ; } com.android.ddmlib.Log.d ( android.appsecurity.cts.DirectBootHostTest.TAG , "Waiting for system ready..." ) ; java.lang.Thread.sleep ( 1000 ) ; } throw new java.lang.AssertionError ( "System failed to become ready!" ) ; }

Target:
private void waitForBootCompleted ( ) throws java.lang.Exception { for ( int i = 0 ; i < 45 ; i ++ ) { if ( isBootCompleted ( ) ) { com.android.ddmlib.Log.d ( android.appsecurity.cts.DirectBootHostTest.TAG , "Yay, system is ready!" ) ; java.lang.Thread.sleep ( ( 10 * 1000 ) ) ; return ; } com.android.ddmlib.Log.d ( android.appsecurity.cts.DirectBootHostTest.TAG , "Waiting for system ready..." ) ; java.lang.Thread.sleep ( 1000 ) ; } throw new java.lang.AssertionError ( "System failed to become ready!" ) ; }
Source:
public java.nio.ByteBuffer putLong ( long x ) { if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } putLong ( ix ( nextPutIndex ( SizeOf.LONG ) ) , x ) ; return this ; }

Target:
public final java.nio.ByteBuffer putLong ( long x ) { if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } putLong ( ix ( nextPutIndex ( SizeOf.LONG ) ) , x ) ; return this ; }
Source:
public void testConnectFailureDueToNetworkAddFailure ( ) throws java.lang.Exception { executeAndValidateInitializationSequence ( false , false , false ) ; setupMocksForConnectSequence ( false ) ; org.mockito.Mockito.doAnswer ( new android.app.test.MockAnswerUtil.AnswerWithArguments ( ) { public void answer ( ISupplicantStaIface.addNetworkCallback cb ) throws android.os.RemoteException { cb.onValues ( mStatusFailure , org.mockito.Mockito.mock ( android.hardware.wifi.supplicant.V1_0.ISupplicantStaNetwork.class ) ) ; return ; } } ) . when ( mISupplicantStaIfaceMock ) . addNetwork ( org.mockito.Matchers.any ( ISupplicantStaIface.addNetworkCallback.class ) ) ; assertFalse ( mDut.connectToNetwork ( new android.net.wifi.WifiConfiguration ( ) , false ) ) ; }

Target:
public void testConnectFailureDueToNetworkAddFailure ( ) throws java.lang.Exception { executeAndValidateInitializationSequence ( ) ; setupMocksForConnectSequence ( false ) ; org.mockito.Mockito.doAnswer ( new android.app.test.MockAnswerUtil.AnswerWithArguments ( ) { public void answer ( ISupplicantStaIface.addNetworkCallback cb ) throws android.os.RemoteException { cb.onValues ( mStatusFailure , org.mockito.Mockito.mock ( android.hardware.wifi.supplicant.V1_0.ISupplicantStaNetwork.class ) ) ; return ; } } ) . when ( mISupplicantStaIfaceMock ) . addNetwork ( org.mockito.Matchers.any ( ISupplicantStaIface.addNetworkCallback.class ) ) ; assertFalse ( mDut.connectToNetwork ( new android.net.wifi.WifiConfiguration ( ) , false ) ) ; }
Source:
public void checkBinaryResource ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.ResourceContext context ) { if ( ( mPrefix ) != null ) { com.android.resources.ResourceFolderType folderType = context.getResourceFolderType ( ) ; if ( ( folderType != null ) && ( folderType != ( com.android.resources.ResourceFolderType.VALUES ) ) ) { java.lang.String name = com.android.tools.lint.detector.api.LintUtils.getBaseName ( context.file.getName ( ) ) ; if ( ! ( name.startsWith ( mPrefix ) ) ) { com.android.tools.lint.detector.api.Location location = com.android.tools.lint.detector.api.Location.create ( context.file ) ; context.report ( com.android.tools.lint.checks.ResourcePrefixDetector.ISSUE , location , getErrorMessage ( name ) , null ) ; } } } }

Target:
public void checkBinaryResource ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.ResourceContext context ) { if ( ( mPrefix ) != null ) { com.android.resources.ResourceFolderType folderType = context.getResourceFolderType ( ) ; if ( ( folderType != null ) && ( folderType != ( com.android.resources.ResourceFolderType.VALUES ) ) ) { java.lang.String name = com.android.tools.lint.detector.api.LintUtils.getBaseName ( context.file.getName ( ) ) ; if ( ! ( name.startsWith ( mPrefix ) ) ) { com.android.tools.lint.detector.api.Location location = com.android.tools.lint.detector.api.Location.create ( context.file ) ; context.report ( com.android.tools.lint.checks.ResourcePrefixDetector.ISSUE , location , getErrorMessage ( name ) ) ; } } } }
Source:
boolean start ( ) { if ( ( ( mAdbOsLocation ) != null ) && ( ( ( mVersionCheck ) == false ) || ( ( startAdb ( ) ) == false ) ) ) { return false ; } mStarted = true ; mDeviceMonitor = new com.android.ddmlib.DeviceMonitor ( this ) ; mDeviceMonitor.start ( ) ; return true ; }

Target:
boolean start ( ) { if ( ( ( mAdbOsLocation ) != null ) && ( ( ! ( mVersionCheck ) ) || ( ! ( startAdb ( ) ) ) ) ) { return false ; } mStarted = true ; mDeviceMonitor = new com.android.ddmlib.DeviceMonitor ( this ) ; mDeviceMonitor.start ( ) ; return true ; }
Source:
public void testNullControllerLooper ( ) { com.android.bluetooth.avrcp.MediaPlayerWrapper wrapper = com.android.bluetooth.avrcp.MediaPlayerWrapper.wrap ( null , mThread.getLooper ( ) , false ) ; org.junit.Assert.assertNull ( wrapper ) ; wrapper = com.android.bluetooth.avrcp.MediaPlayerWrapper.wrap ( mMockController , null , false ) ; org.junit.Assert.assertNull ( wrapper ) ; }

Target:
public void testNullControllerLooper ( ) { com.android.bluetooth.avrcp.MediaPlayerWrapper wrapper = com.android.bluetooth.avrcp.MediaPlayerWrapper.wrap ( null , mThread.getLooper ( ) ) ; org.junit.Assert.assertNull ( wrapper ) ; wrapper = com.android.bluetooth.avrcp.MediaPlayerWrapper.wrap ( mMockController , null ) ; org.junit.Assert.assertNull ( wrapper ) ; }
Source:
static void nativeErase ( int nativeBitmap , int color ) { android.graphics.Bitmap_Delegate delegate = android.graphics.Bitmap_Delegate.sManager.getDelegate ( nativeBitmap ) ; if ( delegate == null ) { return ; } java.awt.image.BufferedImage image = delegate.mImage ; java.awt.Graphics2D g = image.createGraphics ( ) ; try { g.setColor ( new java.awt.Color ( color , true ) ) ; g.fillRect ( 0 , 0 , image.getWidth ( ) , image.getHeight ( ) ) ; } finally { g.dispose ( ) ; } }

Target:
static void nativeErase ( long nativeBitmap , int color ) { android.graphics.Bitmap_Delegate delegate = android.graphics.Bitmap_Delegate.sManager.getDelegate ( nativeBitmap ) ; if ( delegate == null ) { return ; } java.awt.image.BufferedImage image = delegate.mImage ; java.awt.Graphics2D g = image.createGraphics ( ) ; try { g.setColor ( new java.awt.Color ( color , true ) ) ; g.fillRect ( 0 , 0 , image.getWidth ( ) , image.getHeight ( ) ) ; } finally { g.dispose ( ) ; } }
Source:
private void printBlockCommon ( @ javax.annotation.Nonnull com.android.jack.ir.ast.cfg.JRegularBasicBlock block ) { if ( block.hasPrimarySuccessor ( ) ) { print ( "; primary: " ) ; if ( ( ( cfgBlocks ) != null ) && ( cfgBlocks.containsKey ( block ) ) ) { print ( cfgBlocks.get ( block.getPrimarySuccessor ( ) ) ) ; } else { print ( "???" ) ; } } printBlockCommon ( ( ( com.android.jack.ir.ast.cfg.JBasicBlock ) ( block ) ) ) ; }

Target:
private void printBlockCommon ( @ javax.annotation.Nonnull com.android.jack.ir.ast.cfg.JRegularBasicBlock block ) { printBlockCommon ( block , ( block.hasPrimarySuccessor ( ) ? block.getPrimarySuccessor ( ) : null ) ) ; }
Source:
public final void onSmsReceived ( int token , java.lang.String format , byte [ ] pdu ) throws java.lang.IllegalStateException { synchronized ( mLock ) { if ( ( mListener ) == null ) { throw new java.lang.IllegalStateException ( "Feature not ready." ) ; } try { mListener.onSmsReceived ( token , format , pdu ) ; acknowledgeSms ( token , 0 , android.telephony.ims.internal.SmsImplBase.DELIVER_STATUS_OK ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.ims.internal.SmsImplBase.LOG_TAG , ( "Can not deliver sms: " + ( e.getMessage ( ) ) ) ) ; acknowledgeSms ( token , 0 , android.telephony.ims.internal.SmsImplBase.DELIVER_STATUS_ERROR ) ; } } }

Target:
public final void onSmsReceived ( int token , java.lang.String format , byte [ ] pdu ) throws java.lang.IllegalStateException { synchronized ( mLock ) { if ( ( mListener ) == null ) { throw new java.lang.IllegalStateException ( "Feature not ready." ) ; } try { mListener.onSmsReceived ( token , format , pdu ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.ims.internal.SmsImplBase.LOG_TAG , ( "Can not deliver sms: " + ( e.getMessage ( ) ) ) ) ; acknowledgeSms ( token , 0 , android.telephony.ims.internal.SmsImplBase.DELIVER_STATUS_ERROR ) ; } } }
Source:
public void stop ( ) { java.lang.Thread threadToStop ; synchronized ( this ) { threadToStop = thread ; thread = null ; } if ( threadToStop == null ) { throw new java.lang.IllegalStateException ( "not running" ) ; } threadToStop.interrupt ( ) ; while ( true ) { try { threadToStop.join ( ) ; return ; } catch ( java.lang.InterruptedException ignored ) { } } }

Target:
public void stop ( ) { java.lang.Thread threadToStop ; synchronized ( this ) { threadToStop = thread ; thread = null ; } if ( threadToStop == null ) { throw new java.lang.IllegalStateException ( "not running" ) ; } interrupt ( threadToStop ) ; while ( true ) { try { threadToStop.join ( ) ; return ; } catch ( java.lang.InterruptedException ignored ) { } } }
Source:
public android.drm.DrmConvertedStatus convertData ( int convertId , byte [ ] inputData ) { if ( ( null == inputData ) || ( 0 >= ( inputData.length ) ) ) { throw new java.lang.IllegalArgumentException ( "Given inputData should be non null" ) ; } else if ( ( getState ( ) ) == ( android.drm.DrmManagerClient.STATE_UNINITIALIZED ) ) { throw new java.lang.IllegalStateException ( "Not Initialized yet" ) ; } return _convertData ( mUniqueId , convertId , inputData ) ; }

Target:
public android.drm.DrmConvertedStatus convertData ( int convertId , byte [ ] inputData ) { if ( ( null == inputData ) || ( 0 >= ( inputData.length ) ) ) { throw new java.lang.IllegalArgumentException ( "Given inputData should be non null" ) ; } else if ( ( android.drm.DrmManagerClient.STATE_UNINITIALIZED ) == ( getState ( ) ) ) { throw new java.lang.IllegalStateException ( "Not Initialized yet" ) ; } return _convertData ( mUniqueId , convertId , inputData ) ; }
Source:
public java.util.List < android.bluetooth.BluetoothDevice > getDevicesMatchingConnectionStates ( int [ ] states ) { if ( com.android.bluetooth.map.BluetoothMapService.VERBOSE ) android.util.Log.v ( com.android.bluetooth.map.BluetoothMapService.TAG , "getDevicesMatchingConnectionStates()" ) ; com.android.bluetooth.map.BluetoothMapService service = getService ( ) ; if ( service == null ) return new java.util.ArrayList < android.bluetooth.BluetoothDevice > ( 0 ) ; return service.getDevicesMatchingConnectionStates ( states ) ; }

Target:
public java.util.List < android.bluetooth.BluetoothDevice > getDevicesMatchingConnectionStates ( int [ ] states ) { if ( com.android.bluetooth.map.BluetoothMapService.VERBOSE ) { android.util.Log.v ( com.android.bluetooth.map.BluetoothMapService.TAG , "getDevicesMatchingConnectionStates()" ) ; } com.android.bluetooth.map.BluetoothMapService service = getService ( ) ; if ( service == null ) { return new java.util.ArrayList < android.bluetooth.BluetoothDevice > ( 0 ) ; } return service.getDevicesMatchingConnectionStates ( states ) ; }
Source:
private void replaceUninitializedTypeInStack ( com.google.devtools.build.android.desugar.BytecodeTypeInference.InferredType oldType , com.google.devtools.build.android.desugar.BytecodeTypeInference.InferredType newType ) { com.google.common.base.Preconditions.checkArgument ( oldType.isUninitialized ( ) , "The old type is NOT uninitialized. %s" , oldType ) ; for ( int i = 0 , size = operandStack.size ( ) ; i < size ; ++ i ) { com.google.devtools.build.android.desugar.BytecodeTypeInference.InferredType type = operandStack.get ( i ) ; if ( type.equals ( oldType ) ) { operandStack.set ( i , newType ) ; } } }

Target:
private void replaceUninitializedTypeInStack ( com.google.devtools.build.android.desugar.BytecodeTypeInference.InferredType oldType , com.google.devtools.build.android.desugar.BytecodeTypeInference.InferredType newType ) { com.google.common.base.Preconditions.checkArgument ( oldType.isUninitialized ( ) , "The old type is NOT uninitialized. %s" , oldType ) ; for ( int i = 0 , size = operandStack.size ( ) ; i < size ; ++ i ) { com.google.devtools.build.android.desugar.BytecodeTypeInference.InferredType type = operandStack.get ( i ) ; if ( type == oldType ) { operandStack.set ( i , newType ) ; } } }
Source:
public void initialize ( int strength , java.security.SecureRandom random ) { this . strength = strength ; this . random = random ; java.security.spec.ECGenParameterSpec ecParams = ( ( java.security.spec.ECGenParameterSpec ) ( org.bouncycastle.jcajce.provider.asymmetric.ec.KeyPairGeneratorSpi.EC.ecParameters.get ( org.bouncycastle.util.Integers.valueOf ( strength ) ) ) ) ; if ( ecParams == null ) { throw new java.security.InvalidParameterException ( "unknown key size." ) ; } try { initialize ( ecParams , random ) ; } catch ( java.security.InvalidAlgorithmParameterException e ) { throw new java.security.InvalidParameterException ( "key size not configurable." ) ; } }

Target:
public void initialize ( int strength , java.security.SecureRandom random ) { this . strength = strength ; if ( random != null ) { this . random = random ; } java.security.spec.ECGenParameterSpec ecParams = ( ( java.security.spec.ECGenParameterSpec ) ( org.bouncycastle.jcajce.provider.asymmetric.ec.KeyPairGeneratorSpi.EC.ecParameters.get ( org.bouncycastle.util.Integers.valueOf ( strength ) ) ) ) ; if ( ecParams == null ) { throw new java.security.InvalidParameterException ( "unknown key size." ) ; } try { initialize ( ecParams , random ) ; } catch ( java.security.InvalidAlgorithmParameterException e ) { throw new java.security.InvalidParameterException ( "key size not configurable." ) ; } }
Source:
private synchronized void onApplicationStateChanged ( byte [ ] address , boolean registered ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) android.util.Log.v ( com.android.bluetooth.hid.HidDevService.TAG , ( "onApplicationStateChanged(): registered=" + registered ) ) ; android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.hid.HidDevService.MESSAGE_APPLICATION_STATE_CHANGED ) ; msg.obj = address ; msg.arg1 = ( registered ) ? 1 : 0 ; mHandler.sendMessage ( msg ) ; }

Target:
private synchronized void onApplicationStateChanged ( byte [ ] address , boolean registered ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDevService.TAG , ( "onApplicationStateChanged(): registered=" + registered ) ) ; } android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.hid.HidDevService.MESSAGE_APPLICATION_STATE_CHANGED ) ; msg.obj = address ; msg.arg1 = ( registered ) ? 1 : 0 ; mHandler.sendMessage ( msg ) ; }
Source:
public java.io.File call ( ) { if ( ( scope.getVariantScope ( ) . getDexTask ( ) ) != null ) { return scope.getVariantScope ( ) . getDexOutputFolder ( ) ; } if ( ( scope.getVariantScope ( ) . getJavaCompileTask ( ) ) != null ) { return scope.getVariantScope ( ) . getJavaOutputDir ( ) ; } if ( ( variantData.javaCompileTask ) != null ) { return variantData.javaCompileTask.getDestinationDir ( ) ; } return null ; }

Target:
public java.io.File call ( ) { return scope.getVariantScope ( ) . getDexOutputFolder ( ) ; }
Source:
public com.android.sched.vfs.OutputVFile createFile ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType , @ javax.annotation.Nonnull final com.android.sched.vfs.VPath typePath ) throws com.android.sched.util.file.CannotCreateFileException , com.android.sched.util.file.NotFileOrDirectoryException { assert ! ( isClosed ( ) ) ; putProperty ( fileType.buildPropertyName ( null ) , java.lang.String.valueOf ( true ) ) ; addFileType ( fileType ) ; return getSectionVFS ( fileType ) . getOutputVFS ( ) . getRootOutputVDir ( ) . createOutputVFile ( buildFileVPath ( fileType , typePath ) ) ; }

Target:
public com.android.sched.vfs.OutputVFile createFile ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType , @ javax.annotation.Nonnull final com.android.sched.vfs.VPath typePath ) throws com.android.sched.util.file.CannotCreateFileException { assert ! ( isClosed ( ) ) ; putProperty ( fileType.buildPropertyName ( null ) , java.lang.String.valueOf ( true ) ) ; addFileType ( fileType ) ; return getSectionVFS ( fileType ) . getRootOutputVDir ( ) . createOutputVFile ( buildFileVPath ( fileType , typePath ) ) ; }
Source:
private void printCharacterData ( int depth , org.w3c.dom.Node node ) { java.lang.String nodeValue = node.getNodeValue ( ) ; boolean separateLine = ( nodeValue.indexOf ( '\n' ) ) != ( - 1 ) ; if ( separateLine && ( ! ( endsWithLineSeparator ( ) ) ) ) { mOut.append ( mLineSeparator ) ; } mOut.append ( "<![CDATA[" ) ; mOut.append ( nodeValue ) ; mOut.append ( "]]>" ) ; if ( separateLine ) { mOut.append ( mLineSeparator ) ; } }

Target:
private void printCharacterData ( org.w3c.dom.Node node ) { java.lang.String nodeValue = node.getNodeValue ( ) ; boolean separateLine = ( nodeValue.indexOf ( '\n' ) ) != ( - 1 ) ; if ( separateLine && ( ! ( endsWithLineSeparator ( ) ) ) ) { mOut.append ( mLineSeparator ) ; } mOut.append ( "<![CDATA[" ) ; mOut.append ( nodeValue ) ; mOut.append ( "]]>" ) ; if ( separateLine ) { mOut.append ( mLineSeparator ) ; } }
Source:
private java.lang.String loadText ( android.content.pm.PackageItemInfo pii , int res , java.lang.CharSequence nonLocalized ) { if ( nonLocalized != null ) { return nonLocalized.toString ( ) ; } android.content.res.Resources r = getResources ( pii ) ; if ( r != null ) { return r.getString ( res ) ; } return null ; }

Target:
private java.lang.String loadText ( android.content.pm.PackageItemInfo pii , int res , java.lang.CharSequence nonLocalized ) { if ( nonLocalized != null ) { return nonLocalized.toString ( ) ; } if ( res != 0 ) { android.content.res.Resources r = getResources ( pii ) ; if ( r != null ) { return r.getString ( res ) ; } } return null ; }
Source:
public java.util.List < com.android.vts.servlet.Page > getBreadcrumbLinks ( javax.servlet.http.HttpServletRequest request ) { java.util.List < com.android.vts.servlet.Page > links = new java.util.ArrayList < > ( ) ; java.lang.String planName = request.getParameter ( "plan" ) ; links.add ( new com.android.vts.servlet.Page ( PageType.PLAN_RELEASE , planName.toUpperCase ( ) , ( "?plan=" + planName ) ) ) ; return links ; }

Target:
public java.util.List < com.android.vts.servlet.Page > getBreadcrumbLinks ( javax.servlet.http.HttpServletRequest request ) { java.util.List < com.android.vts.servlet.Page > links = new java.util.ArrayList < > ( ) ; java.lang.String planName = request.getParameter ( "plan" ) ; links.add ( new com.android.vts.servlet.Page ( PageType.PLAN_RELEASE , planName , ( "?plan=" + planName ) ) ) ; return links ; }
Source:
public void addListener ( java.lang.String className ) { if ( ! ( _enabled ) ) throw new java.lang.UnsupportedOperationException ( ) ; try { java.lang.Class < ? extends java.util.EventListener > clazz = ( ( _classLoader ) == null ) ? org.eclipse.jetty.util.Loader.loadClass ( org.eclipse.jetty.server.handler.ContextHandler.class , className ) : _classLoader.loadClass ( className ) ; addListener ( clazz ) ; } catch ( java.lang.ClassNotFoundException e ) { throw new java.lang.IllegalArgumentException ( e ) ; } }

Target:
public void addListener ( java.lang.String className ) { if ( ! ( _enabled ) ) throw new java.lang.UnsupportedOperationException ( ) ; try { @ java.lang.SuppressWarnings ( value = { "unchecked" , "rawtypes" } ) java.lang.Class < ? extends java.util.EventListener > clazz = ( ( _classLoader ) == null ) ? org.eclipse.jetty.util.Loader.loadClass ( org.eclipse.jetty.server.handler.ContextHandler.class , className ) : ( ( java.lang.Class ) ( _classLoader.loadClass ( className ) ) ) ; addListener ( clazz ) ; } catch ( java.lang.ClassNotFoundException e ) { throw new java.lang.IllegalArgumentException ( e ) ; } }
Source:
public synchronized void maybeInit ( ) { if ( initialized ) { return ; } initialized = true ; if ( ( ( path ) == null ) || ( path.isDirectory ( ) ) ) { return ; } try { urlHandler = new libcore.io.ClassPathURLStreamHandler ( path.getPath ( ) ) ; } catch ( java.io.IOException ioe ) { java.lang.System.logE ( ( "Unable to open zip file: " + ( path ) ) , ioe ) ; urlHandler = null ; } }

Target:
public synchronized void maybeInit ( ) { if ( initialized ) { return ; } if ( ( ( path ) == null ) || ( path.isDirectory ( ) ) ) { initialized = true ; return ; } try { urlHandler = new libcore.io.ClassPathURLStreamHandler ( path.getPath ( ) ) ; } catch ( java.io.IOException ioe ) { java.lang.System.logE ( ( "Unable to open zip file: " + ( path ) ) , ioe ) ; urlHandler = null ; } initialized = true ; }
Source:
public void add ( java.net.URI uri , java.net.HttpCookie cookie ) { if ( cookie == null ) { throw new java.lang.NullPointerException ( "cookie is null" ) ; } lock.lock ( ) ; try { if ( ( cookie.getMaxAge ( ) ) != 0 ) { addIndex ( uriIndex , getEffectiveURI ( uri ) , cookie ) ; } } finally { lock.unlock ( ) ; } }

Target:
public void add ( java.net.URI uri , java.net.HttpCookie cookie ) { if ( cookie == null ) { throw new java.lang.NullPointerException ( "cookie is null" ) ; } lock.lock ( ) ; try { addIndex ( uriIndex , getEffectiveURI ( uri ) , cookie ) ; } finally { lock.unlock ( ) ; } }
Source:
public static final void zygoteInit ( int targetSdkVersion , java.lang.String [ ] argv , java.lang.ClassLoader classLoader ) throws Zygote.MethodAndArgsCaller { if ( RuntimeInit.DEBUG ) { android.util.Slog.d ( RuntimeInit.TAG , "RuntimeInit: Starting application from zygote" ) ; } android.os.Trace.traceBegin ( Trace.TRACE_TAG_ACTIVITY_MANAGER , "ZygoteInit" ) ; com.android.internal.os.RuntimeInit.redirectLogStreams ( ) ; com.android.internal.os.RuntimeInit.commonInit ( ) ; com.android.internal.os.ZygoteInit.nativeZygoteInit ( ) ; com.android.internal.os.RuntimeInit.applicationInit ( targetSdkVersion , argv , classLoader ) ; }

Target:
public static final java.lang.Runnable zygoteInit ( int targetSdkVersion , java.lang.String [ ] argv , java.lang.ClassLoader classLoader ) { if ( RuntimeInit.DEBUG ) { android.util.Slog.d ( RuntimeInit.TAG , "RuntimeInit: Starting application from zygote" ) ; } android.os.Trace.traceBegin ( Trace.TRACE_TAG_ACTIVITY_MANAGER , "ZygoteInit" ) ; com.android.internal.os.RuntimeInit.redirectLogStreams ( ) ; com.android.internal.os.RuntimeInit.commonInit ( ) ; com.android.internal.os.ZygoteInit.nativeZygoteInit ( ) ; return com.android.internal.os.RuntimeInit.applicationInit ( targetSdkVersion , argv , classLoader ) ; }
Source:
public void testConfigurationUpdatesWhenResizedFromFullscreen ( ) throws java.lang.Exception { if ( ! ( supportsSplitScreenMultiWindow ( ) ) ) { com.android.tradefed.log.LogUtil.CLog.logAndDisplay ( LogLevel.INFO , "Skipping test: no multi-window support" ) ; return ; } launchActivityInStack ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; final android.server.cts.ReportedSizes fullscreenSizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; moveActivityToStack ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME , android.server.cts.DOCKED_STACK_ID ) ; final android.server.cts.ReportedSizes dockedSizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME , android.server.cts.DOCKED_STACK_ID ) ; android.server.cts.ActivityManagerAppConfigurationTests.assertSizesAreSane ( fullscreenSizes , dockedSizes ) ; }

Target:
public void testConfigurationUpdatesWhenResizedFromFullscreen ( ) throws java.lang.Exception { if ( ! ( supportsSplitScreenMultiWindow ( ) ) ) { com.android.tradefed.log.LogUtil.CLog.logAndDisplay ( LogLevel.INFO , "Skipping test: no multi-window support" ) ; return ; } launchActivityInStack ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; final android.server.cts.ReportedSizes fullscreenSizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME ) ; moveActivityToStack ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME , android.server.cts.DOCKED_STACK_ID ) ; final android.server.cts.ReportedSizes dockedSizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME ) ; android.server.cts.ActivityManagerAppConfigurationTests.assertSizesAreSane ( fullscreenSizes , dockedSizes ) ; }
Source:
public void test_isClosed ( ) throws java.lang.Exception { java.net.DatagramSocket theSocket = new java.net.DatagramSocket ( ) ; assertFalse ( "Socket should indicate it is not closed(1):" , theSocket.isClosed ( ) ) ; theSocket.close ( ) ; assertTrue ( "Socket should indicate it is not closed(1):" , theSocket.isClosed ( ) ) ; java.net.InetSocketAddress theAddress = new java.net.InetSocketAddress ( java.net.InetAddress.getLocalHost ( ) , tests.support.Support_PortManager.getNextPortForUDP ( ) ) ; theSocket = new java.net.DatagramSocket ( theAddress ) ; assertFalse ( "Socket should indicate it is not closed(2):" , theSocket.isClosed ( ) ) ; theSocket.close ( ) ; assertTrue ( "Socket should indicate it is not closed(2):" , theSocket.isClosed ( ) ) ; }

Target:
public void test_isClosed ( ) throws java.lang.Exception { java.net.DatagramSocket theSocket = new java.net.DatagramSocket ( ) ; assertFalse ( theSocket.isClosed ( ) ) ; theSocket.close ( ) ; assertTrue ( theSocket.isClosed ( ) ) ; java.net.InetSocketAddress theAddress = new java.net.InetSocketAddress ( java.net.InetAddress.getLocalHost ( ) , 0 ) ; theSocket = new java.net.DatagramSocket ( theAddress ) ; assertFalse ( theSocket.isClosed ( ) ) ; theSocket.close ( ) ; assertTrue ( theSocket.isClosed ( ) ) ; }
Source:
public void testCallMethodWithNoCreatedFeature ( ) throws android.os.RemoteException { mTestImsServiceBinder.createImsFeature ( android.telephony.ims.ImsServiceTest.TEST_SLOT_0 , ImsFeature.MMTEL , mTestCallback ) ; mTestImsServiceBinder.isConnected ( android.telephony.ims.ImsServiceTest.TEST_SLOT_1 , ImsFeature.MMTEL , 0 , 0 , 0 ) ; org.mockito.Mockito.verify ( mTestImsService.mMockMMTelFeature , org.mockito.Mockito.never ( ) ) . isConnected ( org.mockito.Matchers.anyInt ( ) , org.mockito.Matchers.anyInt ( ) , org.mockito.Matchers.anyInt ( ) ) ; }

Target:
public void testCallMethodWithNoCreatedFeature ( ) throws android.os.RemoteException { mTestImsServiceBinder.createImsFeature ( android.telephony.ims.ImsServiceTest.TEST_SLOT_0 , ImsFeature.MMTEL , mTestCallback ) ; mTestImsServiceBinder.isConnected ( android.telephony.ims.ImsServiceTest.TEST_SLOT_1 , ImsFeature.MMTEL , 0 , 0 ) ; org.mockito.Mockito.verify ( mTestImsService.mMockMMTelFeature , org.mockito.Mockito.never ( ) ) . isConnected ( org.mockito.Matchers.anyInt ( ) , org.mockito.Matchers.anyInt ( ) ) ; }
Source:
public java.lang.String createNetworkSpecifierOpen ( @ android.net.wifi.aware.WifiAwareManager.DataPathRole int role , @ android.annotation.Nullable byte [ ] peer ) { android.net.wifi.aware.WifiAwareManager mgr = mMgr.get ( ) ; if ( mgr == null ) { android.util.Log.e ( android.net.wifi.aware.WifiAwareSession.TAG , "createNetworkSpecifierOpen: called post GC on WifiAwareManager" ) ; return "" ; } if ( mTerminated ) { android.util.Log.e ( android.net.wifi.aware.WifiAwareSession.TAG , "createNetworkSpecifierOpen: called after termination" ) ; return "" ; } return mgr.createNetworkSpecifier ( mClientId , role , peer , null ) ; }

Target:
public java.lang.String createNetworkSpecifierOpen ( @ android.net.wifi.aware.WifiAwareManager.DataPathRole int role , @ android.annotation.Nullable byte [ ] peer ) { android.net.wifi.aware.WifiAwareManager mgr = mMgr.get ( ) ; if ( mgr == null ) { android.util.Log.e ( android.net.wifi.aware.WifiAwareSession.TAG , "createNetworkSpecifierOpen: called post GC on WifiAwareManager" ) ; return "" ; } if ( mTerminated ) { android.util.Log.e ( android.net.wifi.aware.WifiAwareSession.TAG , "createNetworkSpecifierOpen: called after termination" ) ; return "" ; } return mgr.createNetworkSpecifier ( mClientId , role , peer , null , null ) ; }
Source:
public final java.nio.ByteBuffer put ( byte x ) { if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } put ( ix ( nextPutIndex ( ) ) , x ) ; return this ; }

Target:
public final java.nio.ByteBuffer put ( byte x ) { if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } put ( ix ( nextPutIndex ( ) ) , x ) ; return this ; }
Source:
static com.android.builder.model.SourceProvider cloneProvider ( com.android.builder.model.SourceProvider sourceProvider ) { com.android.build.gradle.internal.model.SourceProviderImpl sourceProviderClone = new com.android.build.gradle.internal.model.SourceProviderImpl ( ) ; sourceProviderClone.manifestFile = sourceProvider.getManifestFile ( ) ; sourceProviderClone.javaDirs = sourceProvider.getJavaDirectories ( ) ; sourceProviderClone.resourcesDirs = sourceProvider.getResourcesDirectories ( ) ; sourceProviderClone.aidlDirs = sourceProvider.getAidlDirectories ( ) ; sourceProviderClone.rsDirs = sourceProvider.getRenderscriptDirectories ( ) ; sourceProviderClone.jniDirs = sourceProvider.getJniDirectories ( ) ; sourceProviderClone.resDirs = sourceProvider.getResDirectories ( ) ; sourceProviderClone.assetsDirs = sourceProvider.getAssetsDirectories ( ) ; return sourceProviderClone ; }

Target:
static com.android.build.gradle.internal.model.SourceProviderImpl cloneProvider ( com.android.builder.model.SourceProvider sourceProvider ) { com.android.build.gradle.internal.model.SourceProviderImpl sourceProviderClone = new com.android.build.gradle.internal.model.SourceProviderImpl ( ) ; sourceProviderClone.manifestFile = sourceProvider.getManifestFile ( ) ; sourceProviderClone.javaDirs = sourceProvider.getJavaDirectories ( ) ; sourceProviderClone.resourcesDirs = sourceProvider.getResourcesDirectories ( ) ; sourceProviderClone.aidlDirs = sourceProvider.getAidlDirectories ( ) ; sourceProviderClone.rsDirs = sourceProvider.getRenderscriptDirectories ( ) ; sourceProviderClone.jniDirs = sourceProvider.getJniDirectories ( ) ; sourceProviderClone.resDirs = sourceProvider.getResDirectories ( ) ; sourceProviderClone.assetsDirs = sourceProvider.getAssetsDirectories ( ) ; return sourceProviderClone ; }
Source:
public java.lang.String getExemplarLocationName ( java.lang.String tzID ) { if ( ( tzID == null ) || ( ( tzID.length ( ) ) == 0 ) ) { return null ; } java.lang.String locName = loadTimeZoneNames ( tzID ) . getName ( NameType.EXEMPLAR_LOCATION ) ; return locName ; }

Target:
public java.lang.String getExemplarLocationName ( java.lang.String tzID ) { if ( ( tzID == null ) || ( ( tzID.length ( ) ) == 0 ) ) { return null ; } java.lang.String locName = loadTimeZoneNames ( null , tzID ) . getName ( NameType.EXEMPLAR_LOCATION ) ; return locName ; }
Source:
public java.lang.String toString ( ) { return ( ( ( ( mSourceLocation.print ( true ) ) + ":" ) + ( mPosition.getLine ( ) ) ) + ":" ) + ( mPosition.getColumn ( ) ) ; }

Target:
public java.lang.String toString ( ) { java.lang.String toString = mSourceLocation.print ( true ) ; if ( ( mPosition ) != null ) { toString += ( ( ":" + ( mPosition.getLine ( ) ) ) + ":" ) + ( mPosition.getColumn ( ) ) ; } return toString ; }
Source:
private void notifyAddressUpdated ( android.net.LinkAddress address , java.lang.String iface , int flags , int scope ) { final int length = mObservers.beginBroadcast ( ) ; for ( int i = 0 ; i < length ; i ++ ) { try { mObservers.getBroadcastItem ( i ) . addressUpdated ( address , iface , flags , scope ) ; } catch ( android.os.RemoteException e ) { } catch ( java.lang.RuntimeException e ) { } } mObservers.finishBroadcast ( ) ; }

Target:
private void notifyAddressUpdated ( java.lang.String iface , android.net.LinkAddress address ) { final int length = mObservers.beginBroadcast ( ) ; for ( int i = 0 ; i < length ; i ++ ) { try { mObservers.getBroadcastItem ( i ) . addressUpdated ( iface , address ) ; } catch ( android.os.RemoteException e ) { } catch ( java.lang.RuntimeException e ) { } } mObservers.finishBroadcast ( ) ; }
Source:
public static com.android.dx.rop.annotation.Annotations getAnnotations ( com.android.dx.cf.iface.AttributeList attribs ) { com.android.dx.rop.annotation.Annotations result = com.android.dx.dex.cf.AttributeTranslator.getAnnotations0 ( attribs ) ; com.android.dx.rop.annotation.Annotation signature = com.android.dx.dex.cf.AttributeTranslator.getSignature ( attribs ) ; com.android.dx.rop.annotation.Annotation sourceDebugExtension = com.android.dx.dex.cf.AttributeTranslator.getSourceDebugExtension ( attribs ) ; if ( signature != null ) { result = com.android.dx.rop.annotation.Annotations.combine ( result , signature ) ; } if ( sourceDebugExtension != null ) { result = com.android.dx.rop.annotation.Annotations.combine ( result , sourceDebugExtension ) ; } return result ; }

Target:
public static com.android.dx.rop.annotation.Annotations getAnnotations ( com.android.dx.cf.iface.AttributeList attribs ) { com.android.dx.rop.annotation.Annotations result = com.android.dx.dex.cf.AttributeTranslator.getAnnotations0 ( attribs ) ; com.android.dx.rop.annotation.Annotation signature = com.android.dx.dex.cf.AttributeTranslator.getSignature ( attribs ) ; if ( signature != null ) { result = com.android.dx.rop.annotation.Annotations.combine ( result , signature ) ; } return result ; }
Source:
boolean setCorpDirectoryCursor ( @ android.support.annotation.Nullable com.android.dialer.searchfragment.common.SearchCursor cursor ) { if ( cursor == ( corpDirectoryCursor ) ) { return false ; } if ( ( ( corpDirectoryCursor ) != null ) && ( ! ( corpDirectoryCursor.isClosed ( ) ) ) ) { corpDirectoryCursor.close ( ) ; } if ( cursor != null ) { corpDirectoryCursor = cursor ; } else { corpDirectoryCursor = null ; } return true ; }

Target:
boolean setCorpDirectoryCursor ( @ android.support.annotation.Nullable com.android.dialer.searchfragment.common.SearchCursor cursor ) { if ( cursor == ( corpDirectoryCursor ) ) { return false ; } if ( cursor != null ) { corpDirectoryCursor = cursor ; } else { corpDirectoryCursor = null ; } return true ; }
Source:
private boolean isValidSdkLocation ( java.lang.String sdkLocation ) { if ( sdkLocation == null ) { return false ; } if ( ( sdkLocation.trim ( ) . length ( ) ) == 0 ) { return false ; } com.android.ide.eclipse.monitor.SdkToolsLocator locator = new com.android.ide.eclipse.monitor.SdkToolsLocator ( sdkLocation ) ; return ( locator.isValidInstallation ( ) ) == ( com.android.ide.eclipse.monitor.SdkToolsLocator.SdkInstallStatus.VALID ) ; }

Target:
private boolean isValidSdkLocation ( java.lang.String sdkLocation ) { if ( sdkLocation == null ) { return false ; } if ( ( sdkLocation.trim ( ) . length ( ) ) == 0 ) { return false ; } com.android.ide.eclipse.monitor.SdkToolsLocator locator = new com.android.ide.eclipse.monitor.SdkToolsLocator ( new java.io.File ( sdkLocation ) ) ; return ( locator.isValidInstallation ( ) ) == ( com.android.ide.eclipse.monitor.SdkToolsLocator.SdkInstallStatus.VALID ) ; }
Source:
public static org.jetbrains.plugins.javaFX.fxml.PsiMethod findPropertySetter ( java.lang.String attributeName , org.jetbrains.plugins.javaFX.fxml.PsiClass classWithStaticProperty ) { final java.lang.String setterName = org.jetbrains.plugins.javaFX.fxml.PropertyUtil.suggestSetterName ( com.intellij.openapi.util.text.StringUtil.getShortName ( attributeName ) ) ; final org.jetbrains.plugins.javaFX.fxml.PsiMethod [ ] setters = classWithStaticProperty.findMethodsByName ( setterName , true ) ; if ( ( setters.length ) == 1 ) { return setters [ 0 ] ; } return null ; }

Target:
public static org.jetbrains.plugins.javaFX.fxml.PsiMethod findPropertySetter ( java.lang.String attributeName , org.jetbrains.plugins.javaFX.fxml.PsiClass classWithStaticProperty ) { final java.lang.String setterName = org.jetbrains.plugins.javaFX.fxml.PropertyUtil.suggestSetterName ( com.intellij.openapi.util.text.StringUtil.getShortName ( attributeName ) ) ; final org.jetbrains.plugins.javaFX.fxml.PsiMethod [ ] setters = classWithStaticProperty.findMethodsByName ( setterName , true ) ; if ( ( setters.length ) >= 1 ) { return setters [ 0 ] ; } return null ; }
Source:
public java.lang.Integer wifiNanSubscribe ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "clientId" , description = "The client ID returned when a connection was created" ) java.lang.Integer clientId , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "subscribeConfig" ) org.json.JSONObject subscribeConfig ) throws android.os.RemoteException , org.json.JSONException { synchronized ( mLock ) { android.net.wifi.nan.WifiNanSession session = mSessions.get ( clientId ) ; if ( session == null ) { throw new java.lang.IllegalStateException ( ( ( "Calling wifiNanSubscribe before session (client ID " + clientId ) + ") is ready/or already disconnected" ) ) ; } int discoverySessionId = getNextDiscoverySessionId ( ) ; session.subscribe ( com.googlecode.android_scripting.facade.wifi.WifiNanManagerFacade.getSubscribeConfig ( subscribeConfig ) , new com.googlecode.android_scripting.facade.wifi.WifiNanManagerFacade.NanDiscoverySessionCallbackPostsEvents ( discoverySessionId ) ) ; return discoverySessionId ; } }

Target:
public java.lang.Integer wifiNanSubscribe ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "clientId" , description = "The client ID returned when a connection was created" ) java.lang.Integer clientId , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "subscribeConfig" ) org.json.JSONObject subscribeConfig ) throws android.os.RemoteException , org.json.JSONException { synchronized ( mLock ) { android.net.wifi.nan.WifiNanSession session = mSessions.get ( clientId ) ; if ( session == null ) { throw new java.lang.IllegalStateException ( ( ( "Calling wifiNanSubscribe before session (client ID " + clientId ) + ") is ready/or already disconnected" ) ) ; } int discoverySessionId = getNextDiscoverySessionId ( ) ; session.subscribe ( null , com.googlecode.android_scripting.facade.wifi.WifiNanManagerFacade.getSubscribeConfig ( subscribeConfig ) , new com.googlecode.android_scripting.facade.wifi.WifiNanManagerFacade.NanDiscoverySessionCallbackPostsEvents ( discoverySessionId ) ) ; return discoverySessionId ; } }
Source:
public static void main ( java.lang.String [ ] args ) { java.lang.reflect.InvocationHandler handler = new Clash4InvocationHandler ( ) ; try { java.lang.reflect.Proxy.newProxyInstance ( Clash.class . getClassLoader ( ) , new java.lang.Class < ? > [ ] { Interface4a.class , Interface4aa.class , Interface4base.class , Interface4b.class , Interface4bb.class } , handler ) ; java.lang.System.err.println ( "Clash4 did not throw expected exception" ) ; } catch ( java.lang.IllegalArgumentException iae ) { java.lang.System.out.println ( "Clash4 threw expected exception" ) ; } }

Target:
public static void main ( java.lang.String [ ] args ) { java.lang.reflect.InvocationHandler handler = new Clash4InvocationHandler ( ) ; try { java.lang.reflect.Proxy.newProxyInstance ( Clash.class . getClassLoader ( ) , new java.lang.Class < ? > [ ] { Interface4a.class , Interface4aa.class , Interface4base.class , Interface4b.class , Interface4bb.class } , handler ) ; java.lang.System.out.println ( "Clash4 did not throw expected exception" ) ; } catch ( java.lang.IllegalArgumentException iae ) { java.lang.System.out.println ( "Clash4 threw expected exception" ) ; } }