auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
synchronized void nAllocationData1D ( int id , int off , int mip , int count , short [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData1D ( mContext , id , off , mip , count , d , sizeBytes ) ; }

Target:
synchronized void nAllocationData1D ( long id , int off , int mip , int count , int [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData1D ( mContext , id , off , mip , count , d , sizeBytes ) ; }
Source:
public com.android.build.gradle.internal.dsl.Set < java.lang.String > getCheck ( ) { return check ; }

Target:
public java.util.Set < java.lang.String > getCheck ( ) { return check ; }
Source:
public java.security.SignatureSpi getCurrentSpi ( ) { synchronized ( lock ) { return sigSpi ; } }

Target:
public java.security.SignatureSpi getCurrentSpi ( ) { if ( ( lock ) == null ) { return sigSpi ; } synchronized ( lock ) { return sigSpi ; } }
Source:
protected com.android.server.wifi.SupplicantStaNetworkHal getStaNetworkMockable ( android.hardware.wifi.supplicant.V1_0.ISupplicantStaNetwork iSupplicantStaNetwork , android.os.HandlerThread handlerThread ) { return mSupplicantStaNetworkMock ; }

Target:
protected com.android.server.wifi.SupplicantStaNetworkHal getStaNetworkMockable ( android.hardware.wifi.supplicant.V1_0.ISupplicantStaNetwork iSupplicantStaNetwork ) { return mSupplicantStaNetworkMock ; }
Source:
protected void init ( ) throws java.lang.Exception { myCollation = com.ibm.icu.text.Collator.getInstance ( java.util.Locale.KOREAN ) ; myCollation.setDecomposition ( Collator.CANONICAL_DECOMPOSITION ) ; }

Target:
public void init ( ) throws java.lang.Exception { myCollation = com.ibm.icu.text.Collator.getInstance ( java.util.Locale.KOREAN ) ; myCollation.setDecomposition ( Collator.CANONICAL_DECOMPOSITION ) ; }
Source:
public void removeImsFeature ( int subId , int feature ) throws android.os.RemoteException { this . removeImsFeature ( subId , feature ) ; }

Target:
public void removeImsFeature ( int slotId , int feature ) throws android.os.RemoteException { this . removeImsFeature ( slotId , feature ) ; }
Source:
public void removeTransportModeTransform ( java.io.FileDescriptor socket , android.net.IpSecTransform transform ) throws java.io.IOException { try ( android.os.ParcelFileDescriptor pfd = android.os.ParcelFileDescriptor.dup ( socket ) ) { removeTransportModeTransform ( pfd , transform ) ; } }

Target:
public void removeTransportModeTransform ( java.io.FileDescriptor socket , android.net.IpSecTransform transform ) throws java.io.IOException { removeTransportModeTransform ( new android.os.ParcelFileDescriptor ( socket ) , transform ) ; }
Source:
public long getSize ( com.android.ahat.heapdump.AhatHeap heap ) { int index = heap.getIndex ( ) ; return index < ( mSizesByHeap.length ) ? mSizesByHeap [ index ] : 0 ; }

Target:
public long getSize ( com.android.ahat.heapdump.AhatHeap heap ) { int index = heap.getIndex ( ) ; return ( index >= 0 ) && ( index < ( mSizesByHeap.length ) ) ? mSizesByHeap [ index ] : 0 ; }
Source:
private libcore.util.ZoneInfo createZoneInfo ( int [ ] [ ] transitionTimes , int [ ] [ ] transitionTypes ) throws java.lang.Exception { return createZoneInfo ( getName ( ) , transitionTimes , transitionTypes , java.lang.System.currentTimeMillis ( ) ) ; }

Target:
private libcore.util.ZoneInfo createZoneInfo ( int [ ] [ ] transitionTimes , int [ ] [ ] transitionTypes ) throws java.lang.Exception { return createZoneInfo ( transitionTimes , transitionTypes , java.lang.System.currentTimeMillis ( ) ) ; }
Source:
public org.objectweb.asm.AnnotationVisitor visitParameterAnnotation ( int parameter , java.lang.String desc , boolean visible ) { org.objectweb.asm.AnnotationVisitor av = mv.visitParameterAnnotation ( parameter , remapper.mapDesc ( desc ) , visible ) ; return av == null ? av : new org.objectweb.asm.commons.RemappingAnnotationAdapter ( av , remapper ) ; }

Target:
public org.objectweb.asm.AnnotationVisitor visitParameterAnnotation ( int parameter , java.lang.String desc , boolean visible ) { org.objectweb.asm.AnnotationVisitor av = super . visitParameterAnnotation ( parameter , remapper.mapDesc ( desc ) , visible ) ; return av == null ? av : new org.objectweb.asm.commons.RemappingAnnotationAdapter ( av , remapper ) ; }
Source:
public void test_getAnnotations ( ) throws java.lang.Exception { assertEquals ( 0 , getClass ( ) . getPackage ( ) . getAnnotations ( ) . length ) ; assertEquals ( 0 , getClass ( ) . getPackage ( ) . getDeclaredAnnotations ( ) . length ) ; }

Target:
public void test_getAnnotations ( ) throws java.lang.Exception { assertEquals ( 1 , getClass ( ) . getPackage ( ) . getAnnotations ( ) . length ) ; assertEquals ( 1 , getClass ( ) . getPackage ( ) . getDeclaredAnnotations ( ) . length ) ; }
Source:
public void setParseIntegerOnly ( boolean value ) { ndf.setParseIntegerOnly ( value ) ; }

Target:
public void setParseIntegerOnly ( boolean value ) { super . setParseIntegerOnly ( value ) ; ndf.setParseIntegerOnly ( value ) ; }
Source:
protected com.android.jack.dx.dex.file.DexFile createDexFile ( ) { com.android.jack.dx.dex.DexOptions options = new com.android.jack.dx.dex.DexOptions ( ) ; options.forceJumbo = forceJumbo ; return new com.android.jack.dx.dex.file.DexFile ( options ) ; }

Target:
private com.android.jack.dx.dex.file.DexFile createDexFile ( ) { com.android.jack.dx.dex.DexOptions options = new com.android.jack.dx.dex.DexOptions ( ) ; options.forceJumbo = forceJumbo ; return new com.android.jack.dx.dex.file.DexFile ( options ) ; }
Source:
public static int $noinline$mulPow2Plus1 ( int arg ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return arg * 9 ; }

Target:
public static int $noinline$mulPow2Plus1 ( int arg ) { return arg * 9 ; }
Source:
private void warningLog ( java.lang.String msg ) { if ( com.android.bluetooth.btservice.AdapterState.DBG ) android.util.Log.d ( com.android.bluetooth.btservice.AdapterState.TAG , msg ) ; }

Target:
private void warningLog ( java.lang.String msg ) { if ( com.android.bluetooth.btservice.AdapterState.DBG ) android.util.Log.w ( com.android.bluetooth.btservice.AdapterState.TAG , msg ) ; }
Source:
void startTimer ( android.content.Context context , java.lang.String timerEventName ) ;

Target:
void startTimer ( java.lang.String timerEventName ) ;
Source:
public boolean dispatchKeyEvent ( android.view.KeyEvent event ) { return event.dispatch ( this ) ; }

Target:
public boolean dispatchKeyEvent ( android.view.KeyEvent event ) { return event.dispatch ( this , null , null ) ; }
Source:
public boolean isValid ( ) { if ( ( protocol ) == null ) { return false ; } if ( isCarrierAppPreloaded ( ) ) { return false ; } return true ; }

Target:
public boolean isValid ( ) { if ( ( protocol ) == null ) { return false ; } return true ; }
Source:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { refreshTags ( ) ; refreshApps ( ) ; }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { refreshTags ( ) ; }
Source:
public boolean getKeepParameterNames ( ) { if ( obfuscate ) { return keepParameterNames ; } else { return true ; } }

Target:
public boolean getKeepParameterNames ( ) { assert obfuscate ; return keepParameterNames ; }
Source:
private final com.android.server.am.HistoryRecord finishCurrentActivityLocked ( com.android.server.am.HistoryRecord r , int mode ) { final int index = indexOfTokenLocked ( r , false ) ; if ( index < 0 ) { return null ; } return finishCurrentActivityLocked ( r , index , mode ) ; }

Target:
private final com.android.server.am.HistoryRecord finishCurrentActivityLocked ( com.android.server.am.HistoryRecord r , int mode ) { final int index = indexOfTokenLocked ( r ) ; if ( index < 0 ) { return null ; } return finishCurrentActivityLocked ( r , index , mode ) ; }
Source:
protected void setElements ( @ javax.annotation.Nonnull com.android.sched.util.codec.KeyValueCodec.Entry < T > [ ] entries ) { this . entries = java.util.Arrays.copyOf ( entries , entries.length ) ; if ( ignoreCase ) { ignoreCase ( ) ; } if ( sorted ) { sorted ( ) ; } }

Target:
protected void setElements ( @ javax.annotation.Nonnull com.android.sched.util.codec.KeyValueCodec.Entry < T > [ ] entries ) { this . entries = java.util.Arrays.copyOf ( entries , entries.length ) ; if ( sorted ) { sorted ( ) ; } }
Source:
private static void closeQuietly ( java.net.Socket socket ) { if ( socket != null ) { try { socket.close ( ) ; } catch ( java.io.IOException ignored ) { } } }

Target:
public static void closeQuietly ( java.net.Socket socket ) { if ( socket != null ) { try { socket.close ( ) ; } catch ( java.io.IOException ignored ) { } } }
Source:
public void testDefaultDisconnectedState ( ) { if ( skipTest ( ) ) return ; android.util.Log.i ( com.android.bluetooth.mapclient.MapClientStateMachineTest.TAG , "in testDefaultDisconnectedState" ) ; org.junit.Assert.assertEquals ( BluetoothProfile.STATE_CONNECTING , mMceStateMachine.getState ( ) ) ; }

Target:
public void testDefaultDisconnectedState ( ) { android.util.Log.i ( com.android.bluetooth.mapclient.MapClientStateMachineTest.TAG , "in testDefaultDisconnectedState" ) ; org.junit.Assert.assertEquals ( BluetoothProfile.STATE_CONNECTING , mMceStateMachine.getState ( ) ) ; }
Source:
public static synchronized com.android.ims.internal.Logger getLogger ( java.lang.String classname ) { return new com.android.ims.internal.Logger ( com.android.ims.internal.Logger.tagname , classname ) ; }

Target:
public static synchronized com.android.ims.internal.Logger getLogger ( java.lang.String classname ) { return new com.android.ims.internal.Logger ( com.android.ims.internal.Logger.TAG , classname ) ; }
Source:
public void onStreamingServicesUpdated ( java.util.List < android.telephony.mbms.StreamingServiceInfo > services ) { try { callback.streamingServicesUpdated ( services ) ; } catch ( android.os.RemoteException e ) { onAppCallbackDied ( uid , subscriptionId ) ; } }

Target:
public void onStreamingServicesUpdated ( java.util.List < android.telephony.mbms.StreamingServiceInfo > services ) { try { callback.onStreamingServicesUpdated ( services ) ; } catch ( android.os.RemoteException e ) { onAppCallbackDied ( uid , subscriptionId ) ; } }
Source:
synchronized void nScriptSetVarJ ( int id , int slot , long val ) { validate ( ) ; rsnScriptSetVarJ ( mContext , id , slot , val ) ; }

Target:
synchronized void nScriptSetVarJ ( long id , int slot , long val ) { validate ( ) ; rsnScriptSetVarJ ( mContext , id , slot , val ) ; }
Source:
public void checkServerTrusted ( java.security.cert.X509Certificate [ ] chain , java.lang.String authType ) throws java.security.cert.CertificateException { checkTrusted ( chain , authType , null ) ; }

Target:
public void checkServerTrusted ( java.security.cert.X509Certificate [ ] chain , java.lang.String authType ) throws java.security.cert.CertificateException { checkTrusted ( chain , authType , null , false ) ; }
Source:
private void doStagefrightTest ( final int rid ) throws java.lang.Exception { doStagefrightTestMediaPlayer ( rid ) ; doStagefrightTestMediaCodec ( rid ) ; doStagefrightTestMediaMetadataRetriever ( rid ) ; }

Target:
private void doStagefrightTest ( final int rid ) throws java.lang.Exception { doStagefrightTestMediaPlayer ( rid ) ; doStagefrightTestMediaCodec ( rid ) ; }
Source:
public void reset ( ) { super . reset ( ) ; if ( resetJack ) { session.reset ( ) ; astBuilder = new com.android.jack.ir.impl.JackIrBuilder ( lookupEnvironment , session ) ; resetJack = false ; } }

Target:
public void reset ( ) { resetJack = true ; super . reset ( ) ; }
Source:
protected abstract void doCompileFiles ( java.util.List < org.eclipse.core.resources.IFile > filesToCompile , com.android.ide.eclipse.adt.internal.build.builders.BaseBuilder builder , org.eclipse.core.resources.IProject project , com.android.sdklib.IAndroidTarget projectTarget , int targetApi , java.util.List < org.eclipse.core.runtime.IPath > sourceFolders , java.util.List < org.eclipse.core.resources.IFile > notCompiledOut , java.util.List < java.io.File > libraryProjectsOut , org.eclipse.core.runtime.IProgressMonitor monitor ) throws org.eclipse.core.runtime.CoreException ;

Target:
protected abstract void doCompileFiles ( java.util.List < org.eclipse.core.resources.IFile > filesToCompile , com.android.ide.eclipse.adt.internal.build.builders.BaseBuilder builder , org.eclipse.core.resources.IProject project , com.android.sdklib.IAndroidTarget projectTarget , java.util.List < org.eclipse.core.runtime.IPath > sourceFolders , java.util.List < org.eclipse.core.resources.IFile > notCompiledOut , java.util.List < java.io.File > libraryProjectsOut , org.eclipse.core.runtime.IProgressMonitor monitor ) throws org.eclipse.core.runtime.CoreException ;
Source:
public final java.security.CodeSource getCodeSource ( ) { return this . codesource ; }

Target:
public final java.security.CodeSource getCodeSource ( ) { return null ; }
Source:
synchronized void nAllocationRead ( int id , int [ ] d ) { validate ( ) ; rsnAllocationRead ( mContext , id , d ) ; }

Target:
synchronized void nAllocationRead ( long id , int [ ] d ) { validate ( ) ; rsnAllocationRead ( mContext , id , d ) ; }
Source:
public void testLogger1 ( ) throws java.lang.Exception { com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderLogger l = new com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderLogger ( "foo" ) ; assertFalse ( l.hasProblems ( ) ) ; }

Target:
public void testLogger1 ( ) throws java.lang.Exception { com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderLogger l = new com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderLogger ( "foo" , null ) ; assertFalse ( l.hasProblems ( ) ) ; }
Source:
public static int $noinline$Shl0 ( int arg ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return arg << 0 ; }

Target:
public static int $noinline$Shl0 ( int arg ) { return arg << 0 ; }
Source:
private void ensureMap ( ) { synchronized ( lock ) { if ( ( markers ) == null ) { markers = new java.util.concurrent.ConcurrentHashMap < java.lang.Class < ? extends com.android.sched.marker.Marker > , com.android.sched.marker.Marker > ( ) ; } } }

Target:
private void ensureMap ( ) { if ( ( markers ) == null ) { markers = new java.util.HashMap < java.lang.Class < ? extends com.android.sched.marker.Marker > , com.android.sched.marker.Marker > ( ) ; } }
Source:
public void onPause ( ) { mWatchDog.stop ( ) ; super . onPause ( ) ; setRenderMode ( android.openglperf.cts.RENDERMODE_WHEN_DIRTY ) ; }

Target:
public void onPause ( ) { super . onPause ( ) ; setRenderMode ( android.openglperf.cts.RENDERMODE_WHEN_DIRTY ) ; mWatchDog.stop ( ) ; }
Source:
public static void run ( ) throws java.lang.Exception { art.Main.bindAgentJNIForClass ( art.Test933.class ) ; art.Test933.testSigQuit ( ) ; java.lang.System.out.println ( "Done" ) ; }

Target:
public static void run ( ) throws java.lang.Exception { art.Test933.testSigQuit ( ) ; java.lang.System.out.println ( "Done" ) ; }
Source:
private void stopScan ( ) { if ( com.android.cts.verifier.bluetooth.BleClientService.DEBUG ) android.util.Log.d ( com.android.cts.verifier.bluetooth.BleClientService.TAG , "stopScan" ) ; mScanner.stopScan ( mScanCallback ) ; }

Target:
private void stopScan ( ) { if ( com.android.cts.verifier.bluetooth.BleClientService.DEBUG ) android.util.Log.d ( com.android.cts.verifier.bluetooth.BleClientService.TAG , "stopScan" ) ; if ( ( mScanner ) != null ) { mScanner.stopScan ( mScanCallback ) ; } }
Source:
static void native_setRotate ( int native_object , float degrees ) { android.graphics.Matrix_Delegate d = android.graphics.Matrix_Delegate.sManager.getDelegate ( native_object ) ; if ( d == null ) { return ; } android.graphics.Matrix_Delegate.setRotate ( d.mValues , degrees ) ; }

Target:
static void native_setRotate ( long native_object , float degrees ) { android.graphics.Matrix_Delegate d = android.graphics.Matrix_Delegate.sManager.getDelegate ( native_object ) ; if ( d == null ) { return ; } android.graphics.Matrix_Delegate.setRotate ( d.mValues , degrees ) ; }
Source:
public void test_ENGINE_by_id_Failure ( ) throws java.lang.Exception { org.apache.harmony.xnet.provider.jsse.NativeCrypto.ENGINE_load_dynamic ( ) ; try { int engine = org.apache.harmony.xnet.provider.jsse.NativeCrypto.ENGINE_by_id ( "non-existent" ) ; fail ( "Shouldn't load non-existent engine" ) ; } catch ( java.lang.RuntimeException e ) { } org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.assertNoErrors ( ) ; }

Target:
public void test_ENGINE_by_id_Failure ( ) throws java.lang.Exception { org.apache.harmony.xnet.provider.jsse.NativeCrypto.ENGINE_load_dynamic ( ) ; try { int engine = org.apache.harmony.xnet.provider.jsse.NativeCrypto.ENGINE_by_id ( "non-existent" ) ; fail ( "Shouldn't load non-existent engine" ) ; } catch ( java.lang.RuntimeException e ) { } }
Source:
public void callSessionMayHandover ( com.android.ims.internal.IImsCallSession session , int srcAccessTech , int targetAccessTech ) { if ( ( mListener ) != null ) { mListener.callSessionMayHandover ( this , srcAccessTech , targetAccessTech ) ; } }

Target:
public void callSessionMayHandover ( int srcAccessTech , int targetAccessTech ) { if ( ( mListener ) != null ) { mListener.callSessionMayHandover ( this , srcAccessTech , targetAccessTech ) ; } }
Source:
private static void doTestGeographicalScopeValue ( byte [ ] pdu , byte b , int expectedGs ) { pdu [ 0 ] = b ; android.telephony.SmsCbMessage msg = com.android.internal.telephony.gsm.GsmSmsCbTest.createFromPdu ( pdu ) ; assertEquals ( "Unexpected geographical scope decoded" , expectedGs , msg.getGeographicalScope ( ) ) ; }

Target:
private void doTestGeographicalScopeValue ( byte [ ] pdu , byte b , int expectedGs ) { pdu [ 0 ] = b ; android.telephony.SmsCbMessage msg = createFromPdu ( pdu ) ; assertEquals ( "Unexpected geographical scope decoded" , expectedGs , msg.getGeographicalScope ( ) ) ; }
Source:
abstract int doPostInstall ( int status ) ;

Target:
abstract int doPostInstall ( int status , int uid ) ;
Source:
public android.net.wifi.hotspot2.PasspointConfiguration getConfig ( ) { return mConfig ; }

Target:
public android.net.wifi.hotspot2.PasspointConfiguration getConfig ( ) { return new android.net.wifi.hotspot2.PasspointConfiguration ( mConfig ) ; }
Source:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JType x ) { endVisit ( ( ( com.android.jack.ir.ast.JNode ) ( x ) ) ) ; }

Target:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JType type ) { endVisit ( ( ( com.android.jack.ir.ast.JNode ) ( type ) ) ) ; }
Source:
static boolean nativeHasAlpha ( int nativeBitmap ) { android.graphics.Bitmap_Delegate delegate = android.graphics.Bitmap_Delegate.sManager.getDelegate ( nativeBitmap ) ; if ( delegate == null ) { return true ; } return delegate.mHasAlpha ; }

Target:
static boolean nativeHasAlpha ( long nativeBitmap ) { android.graphics.Bitmap_Delegate delegate = android.graphics.Bitmap_Delegate.sManager.getDelegate ( nativeBitmap ) ; if ( delegate == null ) { return true ; } return delegate.mHasAlpha ; }
Source:
private android.bluetooth.BluetoothGattCharacteristic getCharacteristic ( java.util.UUID uuid ) { android.bluetooth.BluetoothGattCharacteristic characteristic = mService.getCharacteristic ( uuid ) ; if ( characteristic == null ) { showMessage ( "Characteristic not found" ) ; return null ; } return characteristic ; }

Target:
private android.bluetooth.BluetoothGattCharacteristic getCharacteristic ( java.util.UUID uuid ) { android.bluetooth.BluetoothGattCharacteristic characteristic = mService.getCharacteristic ( uuid ) ; if ( characteristic == null ) { showMessage ( "Characteristic not found" ) ; } return characteristic ; }
Source:
public static int ReturnInt33 ( ) { long imm = Main.$inline$long ( 33L ) ; return ( ( int ) ( imm ) ) ; }

Target:
public static int ReturnInt33 ( ) { long imm = 33L ; return ( ( int ) ( imm ) ) ; }
Source:
public void onCancel ( android.content.DialogInterface dialog ) { mWebViewCore.sendMessage ( EventHub.SINGLE_LISTBOX_CHOICE , ( - 2 ) , 0 ) ; mListBoxDialog = null ; }

Target:
public void onCancel ( android.content.DialogInterface dialog ) { if ( ( mWebViewCore ) != null ) { mWebViewCore.sendMessage ( EventHub.SINGLE_LISTBOX_CHOICE , ( - 2 ) , 0 ) ; } mListBoxDialog = null ; }
Source:
public void bleAddAdvertiseDataServiceData ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "serviceDataUuid" ) java.lang.String serviceDataUuid , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "serviceData" ) java.lang.String serviceData ) { mAdvertiseDataBuilder.addServiceData ( android.os.ParcelUuid.fromString ( serviceDataUuid ) , com.googlecode.android_scripting.ConvertUtils.convertStringToByteArray ( serviceData ) ) ; }

Target:
public void bleAddAdvertiseDataServiceData ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "serviceDataUuid" ) java.lang.String serviceDataUuid , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "serviceData" ) byte [ ] serviceData ) { mAdvertiseDataBuilder.addServiceData ( android.os.ParcelUuid.fromString ( serviceDataUuid ) , serviceData ) ; }
Source:
public void registerTextAnnotation ( @ org.jetbrains.annotations.NotNull com.intellij.openapi.editor.impl.TextAnnotationGutterProvider provider , @ org.jetbrains.annotations.NotNull com.intellij.openapi.editor.impl.EditorGutterAction action ) { myTextAnnotationGutters.add ( provider ) ; myProviderToListener.put ( provider , action ) ; myTextAnnotationGutterSizes.add ( 0 ) ; updateSize ( ) ; }

Target:
public void registerTextAnnotation ( @ org.jetbrains.annotations.NotNull com.intellij.openapi.editor.impl.TextAnnotationGutterProvider provider ) { myTextAnnotationGutters.add ( provider ) ; myTextAnnotationGutterSizes.add ( 0 ) ; updateSize ( ) ; }
Source:
public void visitStringConstant ( proguard.classfile.visitor.Clazz clazz , proguard.classfile.visitor.StringConstant stringConstant ) { println ( ( ( ( ( visitorInfo ( stringConstant ) ) + " String [" ) + ( clazz.getString ( stringConstant.u2stringIndex ) ) ) + "]" ) ) ; }

Target:
public void visitStringConstant ( proguard.classfile.visitor.Clazz clazz , proguard.classfile.visitor.StringConstant stringConstant ) { println ( ( ( ( ( visitorInfo ( stringConstant ) ) + " String [" ) + ( stringConstant.getString ( clazz ) ) ) + "]" ) ) ; }
Source:
native void rsnAllocationRead ( int con , int id , byte [ ] d ) ;

Target:
native void rsnAllocationRead ( long con , long id , byte [ ] d ) ;
Source:
public void recordExistingFile ( @ com.android.annotations.NonNull java.io.File file ) { recordExistingFile ( getAgnosticAbsPath ( file ) , 0 , null ) ; }

Target:
public void recordExistingFile ( @ com.android.annotations.NonNull java.io.File file ) { recordExistingFile ( getAgnosticAbsPath ( file ) , 0 , ( ( byte [ ] ) ( null ) ) ) ; }
Source:
public static long $noinline$Add0 ( long arg ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return 0 + arg ; }

Target:
public static long $noinline$Add0 ( long arg ) { return 0 + arg ; }
Source:
native void rsnAllocationData3D ( int con , int id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , float [ ] d , int sizeBytes ) ;

Target:
native void rsnAllocationData3D ( long con , long id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , float [ ] d , int sizeBytes ) ;
Source:
public boolean hasRegisteredReceivers ( java.lang.String action ) { return ( mCachedWakeSignalConfigs.containsKey ( action.toLowerCase ( ) ) ) || ( mCachedNoWakeSignalConfigs.containsKey ( action.toLowerCase ( ) ) ) ; }

Target:
public boolean hasRegisteredReceivers ( java.lang.String action ) { return ( mCachedWakeSignalConfigs.containsKey ( action ) ) || ( mCachedNoWakeSignalConfigs.containsKey ( action ) ) ; }
Source:
public static double $noinline$longToIntToDouble ( long value ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return ( ( double ) ( ( int ) ( value ) ) ) ; }

Target:
public static double $noinline$longToIntToDouble ( long value ) { return ( ( double ) ( ( int ) ( value ) ) ) ; }
Source:
public void setMiracastMode ( int mode ) { if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { mSupplicantP2pIfaceHal.setMiracastMode ( mode ) ; } else { doBooleanCommand ( ( "DRIVER MIRACAST " + mode ) ) ; } }

Target:
public void setMiracastMode ( int mode ) { mSupplicantP2pIfaceHal.setMiracastMode ( mode ) ; }
Source:
public void endTrace ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JField type ) { composedStatus.pop ( ) ; for ( com.android.jack.analysis.tracer.TracerBrush config : brushes ) { config.endTrace ( type ) ; } }

Target:
public void endTrace ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JField field ) { composedStatus.pop ( ) ; for ( com.android.jack.analysis.tracer.TracerBrush config : brushes ) { config.endTrace ( field ) ; } }
Source:
public int getTargetSdkVersion ( ) { java.lang.String injectedTargetVersion = mSystemPropertyResolver.getValue ( SystemProperty.TARGET_SDK_VERSION ) ; if ( injectedTargetVersion != null ) { return java.lang.Integer.parseInt ( injectedTargetVersion ) ; } return getRawTargetSdkVersion ( ) ; }

Target:
private java.lang.String getTargetSdkVersion ( ) { java.lang.String injectedTargetVersion = mSystemPropertyResolver.getValue ( SystemProperty.TARGET_SDK_VERSION ) ; if ( injectedTargetVersion != null ) { return injectedTargetVersion ; } return getRawTargetSdkVersion ( ) ; }
Source:
public void timeMaxI ( int reps ) { for ( int rep = 0 ; rep < reps ; ++ rep ) { java.lang.Math.max ( i , i ) ; } }

Target:
public int timeMaxI ( int reps ) { int result = i ; for ( int rep = 0 ; rep < reps ; ++ rep ) { result = java.lang.Math.max ( i , i ) ; } return result ; }
Source:
public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.Builder setBuildIdBytes ( com.android.vts.proto.ByteString value ) { if ( value == null ) { throw new java.lang.NullPointerException ( ) ; } bitField0_ |= 8 ; buildId_ = value ; onChanged ( ) ; return this ; }

Target:
public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.Builder setBuildIdBytes ( com.android.vts.proto.ByteString value ) { if ( value == null ) { throw new java.lang.NullPointerException ( ) ; } bitField0_ |= 16 ; buildId_ = value ; onChanged ( ) ; return this ; }
Source:
public java.text.CollationKey getCollationKey ( java.lang.String source ) { if ( source == null ) { return null ; } return new libcore.icu.CollationKeyICU ( source , icuColl.getCollationKey ( source ) ) ; }

Target:
public java.text.CollationKey getCollationKey ( java.lang.String source ) { return icuColl.getCollationKey ( source ) ; }
Source:
public com.android.internal.telephony.IccCard getIccCard ( ) { return mIccCard ; }

Target:
public synchronized com.android.internal.telephony.IccCard getIccCard ( ) { return mIccCard ; }
Source:
public com.android.tools.r8.utils.AndroidApp.Builder addProgramFiles ( java.nio.file.Path ... files ) throws java.io.IOException { return addProgramFiles ( java.util.Arrays.asList ( files ) ) ; }

Target:
public com.android.tools.r8.utils.AndroidApp.Builder addProgramFiles ( java.nio.file.Path ... files ) throws java.io.IOException { return addProgramFiles ( java.util.Arrays.asList ( files ) , false ) ; }
Source:
public java.io.OutputStream getOutputStream ( ) throws com.android.sched.util.file.WrongPermissionException { return file.getOutputStream ( ) ; }

Target:
public java.io.OutputStream getOutputStream ( boolean append ) throws com.android.sched.util.file.WrongPermissionException { return file.getOutputStream ( append ) ; }
Source:
void getUnchecked ( int pos , long [ ] dst , int dstOffset , int length ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
abstract void getUnchecked ( int pos , long [ ] dst , int dstOffset , int length ) ;
Source:
protected final void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; if ( ! ( isSupported ( ) ) ) return ; setUpMeteredNetwork ( ) ; removePowerSaveModeWhitelist ( com.android.cts.net.hostside.TEST_APP2_PKG ) ; setDozeMode ( false ) ; registerBroadcastReceiver ( ) ; }

Target:
protected final void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; if ( ! ( isSupported ( ) ) ) return ; removePowerSaveModeWhitelist ( com.android.cts.net.hostside.TEST_APP2_PKG ) ; setDozeMode ( false ) ; registerBroadcastReceiver ( ) ; }
Source:
public static < T > org.hamcrest.Matcher < java.lang.Iterable < ? extends T > > containsInAnyOrder ( org.hamcrest.Matcher < ? super T > ... itemMatchers ) { return org.hamcrest.collection.IsIterableContainingInAnyOrder.containsInAnyOrder ( java.util.Arrays.asList ( itemMatchers ) ) ; }

Target:
public static < T > org.hamcrest.Matcher < java.lang.Iterable < ? extends T > > containsInAnyOrder ( org.hamcrest.Matcher < ? super T > ... itemMatchers ) { return org.hamcrest.collection.IsIterableContainingInAnyOrder.containsInAnyOrder ( ( ( java.util.List ) ( java.util.Arrays.asList ( itemMatchers ) ) ) ) ; }
Source:
public void testDefaultDisconnectedState ( ) { org.junit.Assert.assertEquals ( BluetoothProfile.STATE_DISCONNECTED , mHeadsetStateMachine.getConnectionState ( null ) ) ; org.junit.Assert.assertThat ( mHeadsetStateMachine.getCurrentState ( ) , org.hamcrest.core.IsInstanceOf.instanceOf ( HeadsetStateMachine.Disconnected.class ) ) ; }

Target:
public void testDefaultDisconnectedState ( ) { org.junit.Assert.assertEquals ( BluetoothProfile.STATE_DISCONNECTED , mHeadsetStateMachine.getConnectionState ( ) ) ; org.junit.Assert.assertThat ( mHeadsetStateMachine.getCurrentState ( ) , org.hamcrest.core.IsInstanceOf.instanceOf ( HeadsetStateMachine.Disconnected.class ) ) ; }
Source:
boolean getTextReport ( ) { return textReport ; }

Target:
public boolean getTextReport ( ) { return textReport ; }
Source:
public int getFeatureStatus ( ) throws android.os.RemoteException { synchronized ( mLock ) { return this . getFeatureState ( ) ; } }

Target:
public int getFeatureState ( ) throws android.os.RemoteException { synchronized ( mLock ) { return this . getFeatureState ( ) ; } }
Source:
public void test_getLocalPort ( ) throws java.net.SocketException { java.net.DatagramSocket ds = new java.net.DatagramSocket ( ) ; assertTrue ( "Returned incorrect port" , ( ( ds.getLocalPort ( ) ) != 0 ) ) ; }

Target:
public void test_getLocalPort ( ) throws java.net.SocketException { try ( java.net.DatagramSocket ds = new java.net.DatagramSocket ( ) ) { assertTrue ( "Returned incorrect port" , ( ( ds.getLocalPort ( ) ) != 0 ) ) ; } }
Source:
protected final void clearPostDialListeners ( ) { mPostDialListeners.clear ( ) ; }

Target:
protected final void clearPostDialListeners ( ) { if ( ( mPostDialListeners ) != null ) { mPostDialListeners.clear ( ) ; } }
Source:
public int getConnectionState ( android.bluetooth.BluetoothDevice device ) { com.android.bluetooth.btservice.AdapterService service = getService ( ) ; if ( service == null ) return 0 ; return service.getConnectionState ( device ) ; }

Target:
public int getConnectionState ( android.bluetooth.BluetoothDevice device ) { com.android.bluetooth.btservice.AdapterService service = getService ( ) ; if ( service == null ) { return 0 ; } return service.getConnectionState ( device ) ; }
Source:
public static java.util.List < java.security.Provider > getProvidersList ( ) { return new java.util.ArrayList < java.security.Provider > ( org.apache.harmony.security.fortress.Services.providers ) ; }

Target:
public static java.util.List < java.security.Provider > getProvidersList ( ) { synchronized ( org.apache.harmony.security.fortress.Services.providers ) { return new java.util.ArrayList < java.security.Provider > ( org.apache.harmony.security.fortress.Services.providers ) ; } }
Source:
public void sendMessageWithSessionInfo ( int message ) { sendMessage ( message , 0 , 0 , android.telecom.Log.createSubsession ( ) ) ; }

Target:
public void sendMessageWithSessionInfo ( int message , int arg ) { sendMessageWithSessionInfo ( message , arg , null ) ; }
Source:
public void addressRemoved ( android.net.LinkAddress address , java.lang.String iface , int flags , int scope ) { }

Target:
public void addressRemoved ( java.lang.String iface , android.net.LinkAddress address ) { }
Source:
public void run ( final com.android.cts.TestDevice device , final com.android.cts.Test test , android.annotation.cts.Profile profile ) throws com.android.cts.ADBServerNeedRestartException , com.android.cts.DeviceDisconnectedException { mTestStop = false ; mCurrentTest = test ; mCurrentTest.run ( device , profile ) ; }

Target:
public void run ( final com.android.cts.TestDevice device , final com.android.cts.Test test ) throws com.android.cts.ADBServerNeedRestartException , com.android.cts.DeviceDisconnectedException { mTestStop = false ; mCurrentTest = test ; mCurrentTest.run ( device ) ; }
Source:
public void answer ( ) { try { if ( mConnected ) { mConnectionService.answer ( mConnectionId ) ; } } catch ( android.os.RemoteException ignored ) { } }

Target:
public void answer ( ) { try { if ( mConnected ) { mConnectionService.answer ( mConnectionId , null ) ; } } catch ( android.os.RemoteException ignored ) { } }
Source:
public void testRefactor2_renamesub_norefs ( ) throws java.lang.Exception { renamePackage ( com.android.ide.eclipse.adt.internal.refactorings.core.TEST_PROJECT2 , true , false , "my.pkg.name" , ( "CHANGES:\n" + ( "-------\n" + "* Rename package 'com.example.refactoringtest' and subpackages to 'my.pkg.name'" ) ) ) ; }

Target:
public void testRefactor2_renamesub_norefs ( ) throws java.lang.Exception { renamePackage ( com.android.ide.eclipse.adt.internal.refactorings.core.TEST_PROJECT2 , true , false , "my.pkg.name" , ( "CHANGES:\n" + ( "-------\n" + "* Rename package 'com.example.refactoringtest' and subpackages to 'my.pkg.name'" ) ) , false ) ; }
Source:
public java.io.File getGeneratedPngsOutputDir ( ) { return getGeneratedResourcesDir ( "pngs" ) ; }

Target:
java.io.File getGeneratedPngsOutputDir ( ) ;
Source:
static void native_offset ( int nPath , float dx , float dy ) { android.graphics.Path_Delegate.native_offset ( nPath , dx , dy , 0 ) ; }

Target:
static void native_offset ( long nPath , float dx , float dy ) { android.graphics.Path_Delegate.native_offset ( nPath , dx , dy , 0 ) ; }
Source:
public static synchronized java.security.Provider [ ] getProviders ( ) { return org.apache.harmony.security.fortress.Services.providers.toArray ( new java.security.Provider [ org.apache.harmony.security.fortress.Services.providers.size ( ) ] ) ; }

Target:
public static synchronized java.util.ArrayList < java.security.Provider > getProviders ( ) { return org.apache.harmony.security.fortress.Services.providers ; }
Source:
public com.android.ahat.DocString append ( java.lang.String format , java.lang.Object ... args ) { java.lang.String text = java.lang.String.format ( format , args ) ; mStringBuilder.append ( com.google.common.html.HtmlEscapers.htmlEscaper ( ) . escape ( text ) ) ; return this ; }

Target:
public com.android.ahat.DocString append ( java.lang.String text ) { mStringBuilder.append ( com.google.common.html.HtmlEscapers.htmlEscaper ( ) . escape ( text ) ) ; return this ; }
Source:
public com.android.ahat.heapdump.Size getSize ( com.android.ahat.heapdump.AhatHeap heap ) { int index = heap.getIndex ( ) ; return ( index >= 0 ) && ( index < ( mSizesByHeap.length ) ) ? mSizesByHeap [ index ] : Size.ZERO ; }

Target:
public com.android.ahat.heapdump.Size getSize ( com.android.ahat.heapdump.AhatHeap heap ) { return mSizesByHeap [ heap.getIndex ( ) ] ; }
Source:
native boolean blurTest ( int X , int Y , byte [ ] input , byte [ ] output , boolean singleChannel ) ;

Target:
native boolean blurTest ( java.lang.String path , int X , int Y , byte [ ] input , byte [ ] output , boolean singleChannel ) ;
Source:
public java.util.List < java.lang.String > getIncludedBy ( java.lang.String included ) { ensureInitialized ( ) ; return mIncludedBy.get ( included ) ; }

Target:
java.util.List < java.lang.String > getIncludedBy ( java.lang.String included ) { ensureInitialized ( ) ; return mIncludedBy.get ( included ) ; }
Source:
public void tearDown ( ) throws java.lang.Exception { mFactory = null ; if ( mTestProc.exists ( ) ) { libcore.io.IoUtils.deleteContents ( mTestProc ) ; } super . tearDown ( ) ; }

Target:
public void tearDown ( ) throws java.lang.Exception { mFactory = null ; if ( mTestProc.exists ( ) ) { libcore.io.IoUtils.deleteContents ( mTestProc ) ; } }
Source:
public static long AndLongInt ( ) { long lhs = Main.$inline$long ( 10L ) ; int rhs = Main.$inline$int ( 3 ) ; return lhs & rhs ; }

Target:
public static long AndLongInt ( ) { long lhs = 10 ; int rhs = 3 ; return lhs & rhs ; }
Source:
public static java.security.Provider getProvider ( java.lang.String name ) { if ( name == null ) { return null ; } synchronized ( org.apache.harmony.security.fortress.Services.providers ) { return org.apache.harmony.security.fortress.Services.providersNames.get ( name ) ; } }

Target:
public static synchronized java.security.Provider getProvider ( java.lang.String name ) { if ( name == null ) { return null ; } return org.apache.harmony.security.fortress.Services.providersNames.get ( name ) ; }
Source:
public void afterCheckProject ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Context context ) { if ( ( ( mAlwaysFields ) != null ) && ( ! ( mHasIfRoomRefs ) ) ) { for ( com.android.tools.lint.detector.api.Location location : mAlwaysFields ) { context.report ( com.android.tools.lint.checks.AlwaysShowActionDetector.ISSUE , location , "Prefer \"`SHOW_AS_ACTION_IF_ROOM`\" instead of \"`SHOW_AS_ACTION_ALWAYS`\"" , null ) ; } } }

Target:
public void afterCheckProject ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Context context ) { if ( ( ( mAlwaysFields ) != null ) && ( ! ( mHasIfRoomRefs ) ) ) { for ( com.android.tools.lint.detector.api.Location location : mAlwaysFields ) { context.report ( com.android.tools.lint.checks.AlwaysShowActionDetector.ISSUE , location , "Prefer \"`SHOW_AS_ACTION_IF_ROOM`\" instead of \"`SHOW_AS_ACTION_ALWAYS`\"" ) ; } } }
Source:
public final native void writeDoubleVector ( double [ ] val ) ;

Target:
private final native void writeDoubleVector ( double [ ] val ) ;
Source:
public java.lang.String getIccSerialNumber ( ) { com.android.internal.telephony.uicc.IccRecords r = mIccRecords.get ( ) ; return r != null ? r.iccid : "" ; }

Target:
public java.lang.String getIccSerialNumber ( ) { com.android.internal.telephony.uicc.IccRecords r = mIccRecords.get ( ) ; return r != null ? r.iccid : null ; }
Source:
public static com.android.io.IAbstractFile getManifest ( com.android.io.IAbstractFolder projectFolder ) { com.android.io.IAbstractFile file = projectFolder.getFile ( SdkConstants.FN_ANDROID_MANIFEST_XML ) ; if ( file.exists ( ) ) { return file ; } return null ; }

Target:
public static com.android.io.IAbstractFile getManifest ( com.android.io.IAbstractFolder projectFolder ) { com.android.io.IAbstractFile file = projectFolder.getFile ( SdkConstants.FN_ANDROID_MANIFEST_XML ) ; if ( ( file != null ) && ( file.exists ( ) ) ) { return file ; } return null ; }
Source:
android.net.INetd getNetdInstance ( ) throws android.os.RemoteException { final android.net.INetd netd = android.net.util.NetdService.getInstance ( ) ; if ( netd == null ) { throw new android.os.RemoteException ( "Failed to Get Netd Instance" ) ; } return netd ; }

Target:
public android.net.INetd getNetdInstance ( ) throws android.os.RemoteException { final android.net.INetd netd = android.net.util.NetdService.getInstance ( ) ; if ( netd == null ) { throw new android.os.RemoteException ( "Failed to Get Netd Instance" ) ; } return netd ; }
Source:
public void testResourceType ( ) throws java.lang.Exception { assertEquals ( ( ( ( ( ( ( ( ( com.android.tools.lint.checks.SupportAnnotationDetectorTest.SDK_ANNOTATIONS_AVAILABLE ? "" + ( ( ( ( ( "src/p1/p2/Flow.java:13: Error: Expected resource of type drawable [ResourceType]\n" + " resources.getDrawable(10); // ERROR\n" ) + " ~~\n" ) + "src/p1/p2/Flow.java:18: Error: Expected resource of type drawable [ResourceType]\n" ) + " resources.getDrawable(R.string.my_string); // ERROR\n" ) + " ~~~~~~~~~~~~~~~~~~\n" ) : "" ) + "src/p1/p2/Flow.java:22: Error: Expected resource of type drawable [ResourceType]\n" ) + " myMethod(R.string.my_string); // ERROR\n" ) + " ~~~~~~~~~~~~~~~~~~\n" ) + "src/p1/p2/Flow.java:32: Error: Expected resource identifier (R.type.name) [ResourceType]\n" ) + " myAnyResMethod(50); // ERROR\n" ) + " ~~\n" ) + ( com.android.tools.lint.checks.SupportAnnotationDetectorTest.SDK_ANNOTATIONS_AVAILABLE ? "4 errors, 0 warnings\n" : "2 errors, 0 warnings\n" ) ) , lintProject ( "src/p1/p2/Flow.java.txt=>src/p1/p2/Flow.java" , "src/android/support/annotation/DrawableRes.java.txt=>src/android/support/annotation/DrawableRes.java" ) ) ; }

Target:
public void testResourceType ( ) throws java.lang.Exception { assertEquals ( ( ( ( ( ( ( ( ( ( ( ( com.android.tools.lint.checks.SupportAnnotationDetectorTest.SDK_ANNOTATIONS_AVAILABLE ? "" + ( ( ( ( ( "src/p1/p2/Flow.java:13: Error: Expected resource of type drawable [ResourceType]\n" + " resources.getDrawable(10); // ERROR\n" ) + " ~~\n" ) + "src/p1/p2/Flow.java:18: Error: Expected resource of type drawable [ResourceType]\n" ) + " resources.getDrawable(R.string.my_string); // ERROR\n" ) + " ~~~~~~~~~~~~~~~~~~\n" ) : "" ) + "src/p1/p2/Flow.java:22: Error: Expected resource of type drawable [ResourceType]\n" ) + " myMethod(R.string.my_string); // ERROR\n" ) + " ~~~~~~~~~~~~~~~~~~\n" ) + "src/p1/p2/Flow.java:32: Error: Expected resource identifier (R.type.name) [ResourceType]\n" ) + " myAnyResMethod(50); // ERROR\n" ) + " ~~\n" ) + "src/p1/p2/Flow.java:68: Error: Expected resource of type drawable [ResourceType]\n" ) + " myMethod(z); // ERROR\n" ) + " ~\n" ) + ( com.android.tools.lint.checks.SupportAnnotationDetectorTest.SDK_ANNOTATIONS_AVAILABLE ? "5 errors, 0 warnings\n" : "3 errors, 0 warnings\n" ) ) , lintProject ( "src/p1/p2/Flow.java.txt=>src/p1/p2/Flow.java" , "src/android/support/annotation/DrawableRes.java.txt=>src/android/support/annotation/DrawableRes.java" ) ) ; }
Source:
private static void failNotEquals ( java.lang.String message , java.lang.Object expected , java.lang.Object actual ) { junit.framework.Assert.fail ( junit.framework.Assert.format ( message , expected , actual ) ) ; }

Target:
public static void failNotEquals ( java.lang.String message , java.lang.Object expected , java.lang.Object actual ) { junit.framework.Assert.fail ( junit.framework.Assert.format ( message , expected , actual ) ) ; }
Source:
public void debugPrintf ( java.lang.String msg , java.lang.Object ... params ) { com.android.ide.eclipse.adt.AdtPlugin.printToConsole ( ( ( mNode ) == null ? "Groovy" : ( mNode.getDescriptor ( ) . getXmlLocalName ( ) ) + ".groovy" ) , java.lang.String.format ( msg , params ) ) ; }

Target:
private void debugPrintf ( java.lang.String msg , java.lang.Object ... params ) { com.android.ide.eclipse.adt.AdtPlugin.printToConsole ( ( ( mNode ) == null ? "Groovy" : ( mNode.getDescriptor ( ) . getXmlLocalName ( ) ) + ".groovy" ) , java.lang.String.format ( msg , params ) ) ; }
Source:
public void before ( ) throws android.os.RemoteException { mStubContext = mActivityRule.getActivity ( ) . getApplication ( ) . getApplicationContext ( ) ; }

Target:
public void before ( ) throws android.os.RemoteException { mContext = mActivityRule.getActivity ( ) . getApplication ( ) . getApplicationContext ( ) ; }
Source:
private static < T > void assertLength ( int expected , T [ ] got ) { int length = got.length ; assertEquals ( java.lang.String.format ( "expected array of length %s, but length was %s for %s" , expected , length , java.util.Arrays.toString ( got ) ) , expected , length ) ; }

Target:
private static < T > void assertLength ( int expected , T [ ] got ) { int length = got.length ; org.junit.Assert.assertEquals ( java.lang.String.format ( "expected array of length %s, but length was %s for %s" , expected , length , java.util.Arrays.toString ( got ) ) , expected , length ) ; }
Source:
public void terminate ( ) { model.removeWindowChangeListener ( this ) ; boldFont.dispose ( ) ; }

Target:
public void dispose ( ) { super . dispose ( ) ; model.removeWindowChangeListener ( this ) ; boldFont.dispose ( ) ; }
Source:
public int countCombinations ( ) { int product = 1 ; for ( com.google.gct.testing.GoogleCloudTestingDimension dimension : getDimensions ( ) ) { product *= dimension.getEnabledTypes ( ) . size ( ) ; } return product ; }

Target:
public int count ( ) { int product = 1 ; for ( com.google.gct.testing.GoogleCloudTestingDimension dimension : getDimensions ( ) ) { product *= dimension.getEnabledTypes ( ) . size ( ) ; } return product ; }
Source:
protected boolean requestUpstreamMobileConnection ( ) { mUpstreamNetworkMonitor.updateMobileRequiresDun ( mConfig.isDunRequired ) ; mUpstreamNetworkMonitor.registerMobileNetworkRequest ( ) ; return true ; }

Target:
protected void requestUpstreamMobileConnection ( ) { mUpstreamNetworkMonitor.updateMobileRequiresDun ( mConfig.isDunRequired ) ; mUpstreamNetworkMonitor.registerMobileNetworkRequest ( ) ; }
Source:
private void addKeyPending ( android.view.KeyEvent event ) { synchronized ( mPassthroughPending ) { mPassthroughPending.add ( new com.android.bluetooth.avrcp.Avrcp.MediaKeyLog ( java.lang.System.currentTimeMillis ( ) , event ) ) ; } }

Target:
private void addKeyPending ( android.view.KeyEvent event ) { mPassthroughPending.add ( new com.android.bluetooth.avrcp.Avrcp.MediaKeyLog ( java.lang.System.currentTimeMillis ( ) , event ) ) ; }
Source:
protected void checkOwnerOrSystemAndThrow ( ) { if ( ( ( uid ) != ( android.os.Binder.getCallingUid ( ) ) ) && ( ( android.os.Process.SYSTEM_UID ) != ( android.os.Binder.getCallingUid ( ) ) ) ) { throw new java.lang.SecurityException ( "Only the owner may access managed resources!" ) ; } }

Target:
public void checkOwnerOrSystemAndThrow ( ) { if ( ( ( uid ) != ( android.os.Binder.getCallingUid ( ) ) ) && ( ( android.os.Process.SYSTEM_UID ) != ( android.os.Binder.getCallingUid ( ) ) ) ) { throw new java.lang.SecurityException ( "Only the owner may access managed resources!" ) ; } }
Source:
private void releaseEffectsRecorder ( ) { android.util.Log.v ( com.android.camera.VideoCamera.TAG , "Releasing effects recorder." ) ; if ( ( mEffectsRecorder ) != null ) { cleanupEmptyFile ( ) ; mEffectsRecorder.release ( ) ; mEffectsRecorder = null ; mEffectType = EffectsRecorder.EFFECT_NONE ; } mVideoFilename = null ; }

Target:
private void releaseEffectsRecorder ( ) { android.util.Log.v ( com.android.camera.VideoCamera.TAG , "Releasing effects recorder." ) ; if ( ( mEffectsRecorder ) != null ) { cleanupEmptyFile ( ) ; mEffectsRecorder.release ( ) ; mEffectsRecorder = null ; } mEffectType = EffectsRecorder.EFFECT_NONE ; mVideoFilename = null ; }
Source:
public void test002c ( ) throws java.lang.Exception { java.io.File jackOutput ; jackOutput = runTest002 ( false , "keep-first" ) ; checkResourceContent ( jackOutput , com.android.jack.fileconflict.FileConflictTests.RESOURCE1_LONGPATH , "Res1" ) ; checkResourceContent ( jackOutput , com.android.jack.fileconflict.FileConflictTests.RESOURCE2_LONGPATH , "Res2" ) ; checkResourceContent ( jackOutput , com.android.jack.fileconflict.FileConflictTests.RESOURCE3_LONGPATH , "Res3" ) ; }

Target:
public void test002c ( ) throws java.lang.Exception { java.io.File jackOutput ; jackOutput = runTest002 ( false , "keep-first" , false ) ; checkResourceContent ( jackOutput , com.android.jack.fileconflict.FileConflictTests.RESOURCE1_LONGPATH , "Res1" ) ; checkResourceContent ( jackOutput , com.android.jack.fileconflict.FileConflictTests.RESOURCE2_LONGPATH , "Res2" ) ; checkResourceContent ( jackOutput , com.android.jack.fileconflict.FileConflictTests.RESOURCE3_LONGPATH , "Res3" ) ; }
Source:
public native boolean isAssignableFrom ( java.lang.Class < ? > cls ) ;

Target:
public native boolean isAssignableFrom ( java.lang.Class < ? > c ) ;
Source:
public void test_oneJar_init ( ) throws java.lang.Exception { java.lang.ClassLoader cl = createLoader ( jar1 ) ; java.io.File [ ] files = optimizedDir.listFiles ( dalvik.system.DexClassLoaderTest.DEX_FILE_NAME_FILTER ) ; assertNotNull ( files ) ; assertEquals ( 1 , files.length ) ; }

Target:
public void test_oneJar_init ( ) throws java.lang.Exception { java.lang.ClassLoader cl = createLoader ( jar1 ) ; }